@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.
Files changed (3) hide show
  1. package/index.js +3 -1
  2. package/index.mjs +3 -1
  3. 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 typeof (maybeAsyncIterable === null || maybeAsyncIterable === void 0 ? void 0 : maybeAsyncIterable[Symbol.asyncIterator]) === 'function';
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 typeof (maybeAsyncIterable === null || maybeAsyncIterable === void 0 ? void 0 : maybeAsyncIterable[Symbol.asyncIterator]) === 'function';
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`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@envelop/preload-assets",
3
- "version": "1.1.0-alpha-e8998c9.0",
3
+ "version": "1.1.0-alpha-15b486f.0",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"