@graphql-tools/url-loader 7.6.0-alpha-3d44eadc.0 → 7.7.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/event-stream/handleEventStreamResponse.d.ts +1 -1
- package/index.js +2 -2
- package/index.mjs +2 -2
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ExecutionResult } from 'graphql';
|
|
2
|
-
export declare function handleEventStreamResponse(response: Response): Promise<
|
|
2
|
+
export declare function handleEventStreamResponse(response: Response): Promise<AsyncGenerator<ExecutionResult>>;
|
package/index.js
CHANGED
|
@@ -670,7 +670,7 @@ class UrlLoader {
|
|
|
670
670
|
};
|
|
671
671
|
const fetch = await this.getFetch(options === null || options === void 0 ? void 0 : options.customFetch, asyncImport);
|
|
672
672
|
let executor = await this.getExecutorAsync(pointer, options);
|
|
673
|
-
if ((options === null || options === void 0 ? void 0 : options.handleAsSDL) || pointer.endsWith('.graphql')) {
|
|
673
|
+
if ((options === null || options === void 0 ? void 0 : options.handleAsSDL) || pointer.endsWith('.graphql') || pointer.endsWith('.graphqls')) {
|
|
674
674
|
source = await this.handleSDL(pointer, fetch, options);
|
|
675
675
|
if (!source.schema && !source.document && !source.rawSDL) {
|
|
676
676
|
throw new Error(`Invalid SDL response`);
|
|
@@ -707,7 +707,7 @@ class UrlLoader {
|
|
|
707
707
|
};
|
|
708
708
|
const fetch = this.getFetch(options === null || options === void 0 ? void 0 : options.customFetch, syncImport);
|
|
709
709
|
let executor = this.getExecutorSync(pointer, options);
|
|
710
|
-
if ((options === null || options === void 0 ? void 0 : options.handleAsSDL) || pointer.endsWith('.graphql')) {
|
|
710
|
+
if ((options === null || options === void 0 ? void 0 : options.handleAsSDL) || pointer.endsWith('.graphql') || pointer.endsWith('.graphqls')) {
|
|
711
711
|
source = this.handleSDL(pointer, fetch, options);
|
|
712
712
|
if (!source.schema && !source.document && !source.rawSDL) {
|
|
713
713
|
throw new Error(`Invalid SDL response`);
|
package/index.mjs
CHANGED
|
@@ -646,7 +646,7 @@ class UrlLoader {
|
|
|
646
646
|
};
|
|
647
647
|
const fetch = await this.getFetch(options === null || options === void 0 ? void 0 : options.customFetch, asyncImport);
|
|
648
648
|
let executor = await this.getExecutorAsync(pointer, options);
|
|
649
|
-
if ((options === null || options === void 0 ? void 0 : options.handleAsSDL) || pointer.endsWith('.graphql')) {
|
|
649
|
+
if ((options === null || options === void 0 ? void 0 : options.handleAsSDL) || pointer.endsWith('.graphql') || pointer.endsWith('.graphqls')) {
|
|
650
650
|
source = await this.handleSDL(pointer, fetch, options);
|
|
651
651
|
if (!source.schema && !source.document && !source.rawSDL) {
|
|
652
652
|
throw new Error(`Invalid SDL response`);
|
|
@@ -683,7 +683,7 @@ class UrlLoader {
|
|
|
683
683
|
};
|
|
684
684
|
const fetch = this.getFetch(options === null || options === void 0 ? void 0 : options.customFetch, syncImport);
|
|
685
685
|
let executor = this.getExecutorSync(pointer, options);
|
|
686
|
-
if ((options === null || options === void 0 ? void 0 : options.handleAsSDL) || pointer.endsWith('.graphql')) {
|
|
686
|
+
if ((options === null || options === void 0 ? void 0 : options.handleAsSDL) || pointer.endsWith('.graphql') || pointer.endsWith('.graphqls')) {
|
|
687
687
|
source = this.handleSDL(pointer, fetch, options);
|
|
688
688
|
if (!source.schema && !source.document && !source.rawSDL) {
|
|
689
689
|
throw new Error(`Invalid SDL response`);
|