@graphql-codegen/graphql-modules-preset 2.3.12 → 2.3.14
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.
- package/index.js +3 -4
- package/index.mjs +3 -4
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -76,11 +76,10 @@ function collectUsedTypes(doc) {
|
|
|
76
76
|
node.arguments.forEach(findRelated);
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
|
-
else if (node.kind === graphql.Kind.NAMED_TYPE
|
|
79
|
+
else if (node.kind === graphql.Kind.NAMED_TYPE &&
|
|
80
80
|
// Named type
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
81
|
+
!isGraphQLPrimitive(node.name.value)) {
|
|
82
|
+
markAsUsed(node.name.value);
|
|
84
83
|
}
|
|
85
84
|
}
|
|
86
85
|
return used;
|
package/index.mjs
CHANGED
|
@@ -70,11 +70,10 @@ function collectUsedTypes(doc) {
|
|
|
70
70
|
node.arguments.forEach(findRelated);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
else if (node.kind === Kind.NAMED_TYPE
|
|
73
|
+
else if (node.kind === Kind.NAMED_TYPE &&
|
|
74
74
|
// Named type
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
}
|
|
75
|
+
!isGraphQLPrimitive(node.name.value)) {
|
|
76
|
+
markAsUsed(node.name.value);
|
|
78
77
|
}
|
|
79
78
|
}
|
|
80
79
|
return used;
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/graphql-modules-preset",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.14",
|
|
4
4
|
"description": "GraphQL Code Generator preset for modularized schema",
|
|
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 || ^16.0.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@graphql-codegen/plugin-helpers": "^2.4.0",
|
|
10
|
-
"@graphql-codegen/visitor-plugin-common": "2.
|
|
11
|
-
"@graphql-tools/utils": "8.
|
|
10
|
+
"@graphql-codegen/visitor-plugin-common": "2.10.0",
|
|
11
|
+
"@graphql-tools/utils": "8.8.0",
|
|
12
12
|
"change-case-all": "1.0.14",
|
|
13
13
|
"parse-filepath": "^1.0.2",
|
|
14
14
|
"tslib": "~2.4.0"
|