@graphql-tools/url-loader 7.17.0 → 7.17.1-alpha-20230112161633-d3f484e6
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 +1 -1
- package/esm/index.js +1 -1
- package/package.json +2 -2
package/cjs/index.js
CHANGED
|
@@ -178,7 +178,7 @@ class UrlLoader {
|
|
|
178
178
|
const defaultMethod = this.getDefaultMethodFromOptions(options === null || options === void 0 ? void 0 : options.method, 'GET');
|
|
179
179
|
return new value_or_promise_1.ValueOrPromise(() => fetch(pointer, {
|
|
180
180
|
method: defaultMethod,
|
|
181
|
-
headers: options.headers,
|
|
181
|
+
headers: typeof (options === null || options === void 0 ? void 0 : options.headers) === 'function' ? options.headers() : options === null || options === void 0 ? void 0 : options.headers,
|
|
182
182
|
}))
|
|
183
183
|
.then(response => response.text())
|
|
184
184
|
.then(schemaString => (0, utils_1.parseGraphQLSDL)(pointer, schemaString, options))
|
package/esm/index.js
CHANGED
|
@@ -174,7 +174,7 @@ export class UrlLoader {
|
|
|
174
174
|
const defaultMethod = this.getDefaultMethodFromOptions(options === null || options === void 0 ? void 0 : options.method, 'GET');
|
|
175
175
|
return new ValueOrPromise(() => fetch(pointer, {
|
|
176
176
|
method: defaultMethod,
|
|
177
|
-
headers: options.headers,
|
|
177
|
+
headers: typeof (options === null || options === void 0 ? void 0 : options.headers) === 'function' ? options.headers() : options === null || options === void 0 ? void 0 : options.headers,
|
|
178
178
|
}))
|
|
179
179
|
.then(response => response.text())
|
|
180
180
|
.then(schemaString => parseGraphQLSDL(pointer, schemaString, options))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/url-loader",
|
|
3
|
-
"version": "7.17.
|
|
3
|
+
"version": "7.17.1-alpha-20230112161633-d3f484e6",
|
|
4
4
|
"description": "A set of utils for faster development of GraphQL tools",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@graphql-tools/delegate": "9.0.22",
|
|
11
|
-
"@graphql-tools/executor-http": "0.0
|
|
11
|
+
"@graphql-tools/executor-http": "0.1.0-alpha-20230112161633-d3f484e6",
|
|
12
12
|
"@graphql-tools/executor-graphql-ws": "0.0.6",
|
|
13
13
|
"@graphql-tools/executor-legacy-ws": "0.0.6",
|
|
14
14
|
"@graphql-tools/utils": "9.1.4",
|