@graphql-codegen/fragment-matcher 3.1.1-alpha-7f84a4ff7.0 → 3.2.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.
- package/index.js +2 -2
- package/index.mjs +2 -2
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -22,7 +22,7 @@ const plugin = async (schema, _documents, pluginConfig, info) => {
|
|
|
22
22
|
const apolloClientVersion = parseInt(config.apolloClientVersion);
|
|
23
23
|
const cleanSchema = config.federation ? pluginHelpers.removeFederation(schema) : schema;
|
|
24
24
|
const useExplicitTyping = config.useExplicitTyping;
|
|
25
|
-
const introspection = await graphql.execute({
|
|
25
|
+
const introspection = (await graphql.execute({
|
|
26
26
|
schema: cleanSchema,
|
|
27
27
|
document: graphql.parse(`
|
|
28
28
|
{
|
|
@@ -37,7 +37,7 @@ const plugin = async (schema, _documents, pluginConfig, info) => {
|
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
`),
|
|
40
|
-
});
|
|
40
|
+
}));
|
|
41
41
|
const ext = path.extname(info.outputFile).toLowerCase();
|
|
42
42
|
if (!introspection.data) {
|
|
43
43
|
throw new Error(`Plugin "fragment-matcher" couldn't introspect the schema`);
|
package/index.mjs
CHANGED
|
@@ -18,7 +18,7 @@ const plugin = async (schema, _documents, pluginConfig, info) => {
|
|
|
18
18
|
const apolloClientVersion = parseInt(config.apolloClientVersion);
|
|
19
19
|
const cleanSchema = config.federation ? removeFederation(schema) : schema;
|
|
20
20
|
const useExplicitTyping = config.useExplicitTyping;
|
|
21
|
-
const introspection = await execute({
|
|
21
|
+
const introspection = (await execute({
|
|
22
22
|
schema: cleanSchema,
|
|
23
23
|
document: parse(`
|
|
24
24
|
{
|
|
@@ -33,7 +33,7 @@ const plugin = async (schema, _documents, pluginConfig, info) => {
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
`),
|
|
36
|
-
});
|
|
36
|
+
}));
|
|
37
37
|
const ext = extname(info.outputFile).toLowerCase();
|
|
38
38
|
if (!introspection.data) {
|
|
39
39
|
throw new Error(`Plugin "fragment-matcher" couldn't introspect the schema`);
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-codegen/fragment-matcher",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "graphql-code-generate plugin for generating fragments matcher introspection file",
|
|
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
|
-
"@graphql-codegen/plugin-helpers": "2.
|
|
9
|
+
"@graphql-codegen/plugin-helpers": "^2.3.0",
|
|
10
10
|
"tslib": "~2.3.0"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|