@graphql-mesh/graphql 0.34.8 → 0.34.10
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 +3 -0
- package/esm/index.js +4 -1
- package/package.json +4 -4
package/cjs/index.js
CHANGED
|
@@ -333,6 +333,9 @@ class GraphQLHandler {
|
|
|
333
333
|
this.getExecutorForHTTPSourceConfig(this.config),
|
|
334
334
|
]);
|
|
335
335
|
if (schemaResult.status === 'rejected') {
|
|
336
|
+
if (schemaResult.reason instanceof store_1.ValidationError) {
|
|
337
|
+
throw schemaResult.reason;
|
|
338
|
+
}
|
|
336
339
|
throw new Error(`Failed to fetch introspection from ${this.config.endpoint}: ${cross_helpers_1.util.inspect(schemaResult.reason)}`);
|
|
337
340
|
}
|
|
338
341
|
if (executorResult.status === 'rejected') {
|
package/esm/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { buildASTSchema, buildClientSchema, buildSchema, GraphQLSchema, Kind, print, } from 'graphql';
|
|
2
2
|
import lodashGet from 'lodash.get';
|
|
3
3
|
import { process, util } from '@graphql-mesh/cross-helpers';
|
|
4
|
-
import { PredefinedProxyOptions } from '@graphql-mesh/store';
|
|
4
|
+
import { PredefinedProxyOptions, ValidationError } from '@graphql-mesh/store';
|
|
5
5
|
import { getInterpolatedHeadersFactory, getInterpolatedStringFactory, parseInterpolationStrings, } from '@graphql-mesh/string-interpolation';
|
|
6
6
|
import { isUrl, loadFromModuleExportExpression, readFile, readFileOrUrl, readUrl, } from '@graphql-mesh/utils';
|
|
7
7
|
import { UrlLoader } from '@graphql-tools/url-loader';
|
|
@@ -330,6 +330,9 @@ export default class GraphQLHandler {
|
|
|
330
330
|
this.getExecutorForHTTPSourceConfig(this.config),
|
|
331
331
|
]);
|
|
332
332
|
if (schemaResult.status === 'rejected') {
|
|
333
|
+
if (schemaResult.reason instanceof ValidationError) {
|
|
334
|
+
throw schemaResult.reason;
|
|
335
|
+
}
|
|
333
336
|
throw new Error(`Failed to fetch introspection from ${this.config.endpoint}: ${util.inspect(schemaResult.reason)}`);
|
|
334
337
|
}
|
|
335
338
|
if (executorResult.status === 'rejected') {
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/graphql",
|
|
3
|
-
"version": "0.34.
|
|
3
|
+
"version": "0.34.10",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "*"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@graphql-mesh/cross-helpers": "0.3.3",
|
|
10
|
-
"@graphql-mesh/store": "0.9.
|
|
10
|
+
"@graphql-mesh/store": "0.9.17",
|
|
11
11
|
"@graphql-mesh/string-interpolation": "0.4.2",
|
|
12
|
-
"@graphql-mesh/types": "0.91.
|
|
13
|
-
"@graphql-mesh/utils": "0.43.
|
|
12
|
+
"@graphql-mesh/types": "0.91.9",
|
|
13
|
+
"@graphql-mesh/utils": "0.43.17",
|
|
14
14
|
"@graphql-tools/delegate": "9.0.28",
|
|
15
15
|
"@graphql-tools/url-loader": "7.17.13",
|
|
16
16
|
"@graphql-tools/utils": "9.2.1",
|