@graphql-eslint/eslint-plugin 2.4.1-alpha-7542cbd.0 → 2.5.0-alpha-f60e6aa.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +6 -1
  2. package/index.mjs +6 -1
  3. package/package.json +1 -2
package/index.js CHANGED
@@ -3634,7 +3634,12 @@ function getReachableTypes(schema) {
3634
3634
  Directive: collect,
3635
3635
  NamedType: collect,
3636
3636
  };
3637
- for (const type of [schema.getQueryType(), schema.getMutationType(), schema.getSubscriptionType()]) {
3637
+ for (const type of [
3638
+ schema,
3639
+ schema.getQueryType(),
3640
+ schema.getMutationType(),
3641
+ schema.getSubscriptionType(),
3642
+ ]) {
3638
3643
  if (type) {
3639
3644
  graphql.visit(type.astNode, visitor);
3640
3645
  }
package/index.mjs CHANGED
@@ -3628,7 +3628,12 @@ function getReachableTypes(schema) {
3628
3628
  Directive: collect,
3629
3629
  NamedType: collect,
3630
3630
  };
3631
- for (const type of [schema.getQueryType(), schema.getMutationType(), schema.getSubscriptionType()]) {
3631
+ for (const type of [
3632
+ schema,
3633
+ schema.getQueryType(),
3634
+ schema.getMutationType(),
3635
+ schema.getSubscriptionType(),
3636
+ ]) {
3632
3637
  if (type) {
3633
3638
  visit(type.astNode, visitor);
3634
3639
  }
package/package.json CHANGED
@@ -1,12 +1,11 @@
1
1
  {
2
2
  "name": "@graphql-eslint/eslint-plugin",
3
- "version": "2.4.1-alpha-7542cbd.0",
3
+ "version": "2.5.0-alpha-f60e6aa.0",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0"
7
7
  },
8
8
  "dependencies": {
9
- "@babel/code-frame": "7.16.0",
10
9
  "@graphql-tools/code-file-loader": "^7.0.2",
11
10
  "@graphql-tools/graphql-tag-pluck": "^7.0.2",
12
11
  "@graphql-tools/import": "^6.3.1",