Skip to content

Commit 86575a9

Browse files
author
c3b5aw
committed
fix(deps): apollo imported type
1 parent 0f182a5 commit 86575a9

File tree

4 files changed

+23
-5
lines changed

4 files changed

+23
-5
lines changed

.github/workflows/ci.yaml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ on:
55
types: [opened, reopened]
66

77
jobs:
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
@@ -28,3 +28,21 @@ jobs:
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

packages/graphql-armor/src/apollo/protections/max-aliases.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { ApolloProtection, ApolloServerConfigurationEnhancement } from './base-protection';
22
import { MaxAliasesOptions } from '../../config';
33
import { maxAliasesRule } from '../../validationRules/max-aliases';
4-
import { ApolloError } from 'apollo-server';
4+
import { ApolloError } from 'apollo-server-core';
55

66
export class ApolloMaxAliasesProtection extends ApolloProtection {
77
get isEnabled(): boolean {

packages/graphql-armor/src/apollo/protections/max-depth.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ApolloProtection, ApolloServerConfigurationEnhancement } from './base-protection';
22
import { MaxDepthOptions } from '../../config';
3-
import { ApolloError } from 'apollo-server';
3+
import { ApolloError } from 'apollo-server-core';
44
import { maxDepthRule } from '../../validationRules/max-depth';
55

66
export class ApolloMaxDepthProtection extends ApolloProtection {

packages/graphql-armor/src/apollo/protections/max-directives.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ApolloProtection, ApolloServerConfigurationEnhancement } from './base-protection';
22
import { MaxDirectivesOptions } from '../../config';
3-
import { ApolloError } from 'apollo-server';
3+
import { ApolloError } from 'apollo-server-core';
44
import { maxDirectivesRule } from '../../validationRules/max-directives';
55

66
export class ApolloMaxDirectivesProtection extends ApolloProtection {

0 commit comments

Comments
 (0)