@envelop/preload-assets 1.1.0-alpha-e8998c9.0 → 1.1.0-alpha-15b486f.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 +3 -1
- package/index.mjs +3 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -9,7 +9,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
9
9
|
* Source: https://github.com/graphql/graphql-js/blob/main/src/jsutils/isAsyncIterable.ts
|
|
10
10
|
*/
|
|
11
11
|
function isAsyncIterable(maybeAsyncIterable) {
|
|
12
|
-
return
|
|
12
|
+
return (maybeAsyncIterable != null &&
|
|
13
|
+
typeof maybeAsyncIterable === 'object' &&
|
|
14
|
+
typeof maybeAsyncIterable[Symbol.asyncIterator] === 'function');
|
|
13
15
|
}
|
|
14
16
|
/**
|
|
15
17
|
* A utility function for hanlding `onExecuteDone` hook result, for simplifying the hanlding of AsyncIterable returned from `execute`.
|
package/index.mjs
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
* Source: https://github.com/graphql/graphql-js/blob/main/src/jsutils/isAsyncIterable.ts
|
|
6
6
|
*/
|
|
7
7
|
function isAsyncIterable(maybeAsyncIterable) {
|
|
8
|
-
return
|
|
8
|
+
return (maybeAsyncIterable != null &&
|
|
9
|
+
typeof maybeAsyncIterable === 'object' &&
|
|
10
|
+
typeof maybeAsyncIterable[Symbol.asyncIterator] === 'function');
|
|
9
11
|
}
|
|
10
12
|
/**
|
|
11
13
|
* A utility function for hanlding `onExecuteDone` hook result, for simplifying the hanlding of AsyncIterable returned from `execute`.
|