@graphql-mesh/graphql 1.0.0-alpha-20230523160518-5443a1139 → 1.0.0-alpha-20230524100919-8dfab7640
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/cjs/index.js +2 -3
- package/esm/index.js +2 -3
- package/package.json +13 -10
package/cjs/index.js
CHANGED
|
@@ -169,7 +169,7 @@ class GraphQLHandler {
|
|
|
169
169
|
});
|
|
170
170
|
}
|
|
171
171
|
else if (typeof schemaOrStringOrDocumentNode === 'object' &&
|
|
172
|
-
|
|
172
|
+
schemaOrStringOrDocumentNode?.kind === graphql_1.Kind.DOCUMENT) {
|
|
173
173
|
schema = (0, graphql_1.buildASTSchema)(schemaOrStringOrDocumentNode, {
|
|
174
174
|
assumeValid: true,
|
|
175
175
|
assumeValidSDL: true,
|
|
@@ -192,13 +192,12 @@ class GraphQLHandler {
|
|
|
192
192
|
}
|
|
193
193
|
getFallbackExecutor(executors) {
|
|
194
194
|
return async function fallbackExecutor(params) {
|
|
195
|
-
var _a;
|
|
196
195
|
let error;
|
|
197
196
|
let response;
|
|
198
197
|
for (const executor of executors) {
|
|
199
198
|
try {
|
|
200
199
|
const executorResponse = await executor(params);
|
|
201
|
-
if ('errors' in executorResponse &&
|
|
200
|
+
if ('errors' in executorResponse && executorResponse.errors?.length) {
|
|
202
201
|
response = executorResponse;
|
|
203
202
|
continue;
|
|
204
203
|
}
|
package/esm/index.js
CHANGED
|
@@ -166,7 +166,7 @@ export default class GraphQLHandler {
|
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
168
|
else if (typeof schemaOrStringOrDocumentNode === 'object' &&
|
|
169
|
-
|
|
169
|
+
schemaOrStringOrDocumentNode?.kind === Kind.DOCUMENT) {
|
|
170
170
|
schema = buildASTSchema(schemaOrStringOrDocumentNode, {
|
|
171
171
|
assumeValid: true,
|
|
172
172
|
assumeValidSDL: true,
|
|
@@ -189,13 +189,12 @@ export default class GraphQLHandler {
|
|
|
189
189
|
}
|
|
190
190
|
getFallbackExecutor(executors) {
|
|
191
191
|
return async function fallbackExecutor(params) {
|
|
192
|
-
var _a;
|
|
193
192
|
let error;
|
|
194
193
|
let response;
|
|
195
194
|
for (const executor of executors) {
|
|
196
195
|
try {
|
|
197
196
|
const executorResponse = await executor(params);
|
|
198
|
-
if ('errors' in executorResponse &&
|
|
197
|
+
if ('errors' in executorResponse && executorResponse.errors?.length) {
|
|
199
198
|
response = executorResponse;
|
|
200
199
|
continue;
|
|
201
200
|
}
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/graphql",
|
|
3
|
-
"version": "1.0.0-alpha-
|
|
3
|
+
"version": "1.0.0-alpha-20230524100919-8dfab7640",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@graphql-mesh/cross-helpers": "0.4.0-alpha-
|
|
7
|
-
"@graphql-mesh/store": "1.0.0-alpha-
|
|
8
|
-
"@graphql-mesh/types": "1.0.0-alpha-
|
|
9
|
-
"@graphql-mesh/utils": "1.0.0-alpha-
|
|
10
|
-
"@graphql-tools/utils": "^9.2.1",
|
|
6
|
+
"@graphql-mesh/cross-helpers": "0.4.0-alpha-20230524100919-8dfab7640",
|
|
7
|
+
"@graphql-mesh/store": "1.0.0-alpha-20230524100919-8dfab7640",
|
|
8
|
+
"@graphql-mesh/types": "1.0.0-alpha-20230524100919-8dfab7640",
|
|
9
|
+
"@graphql-mesh/utils": "1.0.0-alpha-20230524100919-8dfab7640",
|
|
10
|
+
"@graphql-tools/utils": "^9.2.1 || ^10.0.0",
|
|
11
11
|
"graphql": "*",
|
|
12
12
|
"tslib": "^2.4.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@graphql-mesh/string-interpolation": "0.5.0-alpha-
|
|
16
|
-
"@graphql-tools/delegate": "^
|
|
17
|
-
"@graphql-tools/url-loader": "^
|
|
18
|
-
"@graphql-tools/wrap": "^
|
|
15
|
+
"@graphql-mesh/string-interpolation": "0.5.0-alpha-20230524100919-8dfab7640",
|
|
16
|
+
"@graphql-tools/delegate": "^10.0.0",
|
|
17
|
+
"@graphql-tools/url-loader": "^8.0.0",
|
|
18
|
+
"@graphql-tools/wrap": "^10.0.0",
|
|
19
19
|
"lodash.get": "^4.4.2"
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
"directory": "packages/handlers/graphql"
|
|
25
25
|
},
|
|
26
26
|
"license": "MIT",
|
|
27
|
+
"engines": {
|
|
28
|
+
"node": ">=16.0.0"
|
|
29
|
+
},
|
|
27
30
|
"main": "cjs/index.js",
|
|
28
31
|
"module": "esm/index.js",
|
|
29
32
|
"typings": "typings/index.d.ts",
|