File tree Expand file tree Collapse file tree 4 files changed +23
-5
lines changed
packages/graphql-armor/src/apollo/protections Expand file tree Collapse file tree 4 files changed +23
-5
lines changed Original file line number Diff line number Diff line change 55 types : [opened, reopened]
66
77jobs :
8- CI :
8+ examples :
99 runs-on : ubuntu-latest
1010 strategy :
1111 fail-fast : false
1212 matrix :
1313 node : [14, 16, 17, 18]
14- name : ${{ matrix.workspace }} - Node ${{ matrix.node }}
14+ name : Examples Node ${{ matrix.node }}
1515 steps :
1616 - uses : actions/checkout@v3
1717 - uses : actions/setup-node@v3
2828 - name : Tests workspaces
2929 if : always()
3030 run : yarn workspaces foreach -ptv run test
31+ pkg-focus :
32+ runs-on : ubuntu-latest
33+ strategy :
34+ fail-fast : false
35+ matrix :
36+ node : [14, 16, 17, 18]
37+ name : Pkg Node ${{ matrix.node }}
38+ steps :
39+ - uses : actions/checkout@v3
40+ - uses : actions/setup-node@v3
41+ with :
42+ node-version : ${{ matrix.node }}
43+ - name : Install dependencies
44+ run : |
45+ corepack enable
46+ cp README.md packages/graphql-armor/README.md
47+ - run : yarn workspaces focus @escape.tech/graphql-armor
48+ - run : yarn workspace @escape.tech/graphql-armor build
Original file line number Diff line number Diff line change 11import { ApolloProtection , ApolloServerConfigurationEnhancement } from './base-protection' ;
22import { MaxAliasesOptions } from '../../config' ;
33import { maxAliasesRule } from '../../validationRules/max-aliases' ;
4- import { ApolloError } from 'apollo-server' ;
4+ import { ApolloError } from 'apollo-server-core ' ;
55
66export class ApolloMaxAliasesProtection extends ApolloProtection {
77 get isEnabled ( ) : boolean {
Original file line number Diff line number Diff line change 11import { ApolloProtection , ApolloServerConfigurationEnhancement } from './base-protection' ;
22import { MaxDepthOptions } from '../../config' ;
3- import { ApolloError } from 'apollo-server' ;
3+ import { ApolloError } from 'apollo-server-core ' ;
44import { maxDepthRule } from '../../validationRules/max-depth' ;
55
66export class ApolloMaxDepthProtection extends ApolloProtection {
Original file line number Diff line number Diff line change 11import { ApolloProtection , ApolloServerConfigurationEnhancement } from './base-protection' ;
22import { MaxDirectivesOptions } from '../../config' ;
3- import { ApolloError } from 'apollo-server' ;
3+ import { ApolloError } from 'apollo-server-core ' ;
44import { maxDirectivesRule } from '../../validationRules/max-directives' ;
55
66export class ApolloMaxDirectivesProtection extends ApolloProtection {
You can’t perform that action at this time.
0 commit comments