@envelop/statsd 0.2.0-alpha-e8998c9.0 → 0.2.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
@@ -11,7 +11,9 @@ const graphql = require('graphql');
11
11
  * Source: https://github.com/graphql/graphql-js/blob/main/src/jsutils/isAsyncIterable.ts
12
12
  */
13
13
  function isAsyncIterable(maybeAsyncIterable) {
14
- return typeof (maybeAsyncIterable === null || maybeAsyncIterable === void 0 ? void 0 : maybeAsyncIterable[Symbol.asyncIterator]) === 'function';
14
+ return (maybeAsyncIterable != null &&
15
+ typeof maybeAsyncIterable === 'object' &&
16
+ typeof maybeAsyncIterable[Symbol.asyncIterator] === 'function');
15
17
  }
16
18
 
17
19
  /**
package/index.mjs CHANGED
@@ -7,7 +7,9 @@ import { Kind } from 'graphql';
7
7
  * Source: https://github.com/graphql/graphql-js/blob/main/src/jsutils/isAsyncIterable.ts
8
8
  */
9
9
  function isAsyncIterable(maybeAsyncIterable) {
10
- return typeof (maybeAsyncIterable === null || maybeAsyncIterable === void 0 ? void 0 : maybeAsyncIterable[Symbol.asyncIterator]) === 'function';
10
+ return (maybeAsyncIterable != null &&
11
+ typeof maybeAsyncIterable === 'object' &&
12
+ typeof maybeAsyncIterable[Symbol.asyncIterator] === 'function');
11
13
  }
12
14
 
13
15
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@envelop/statsd",
3
- "version": "0.2.0-alpha-e8998c9.0",
3
+ "version": "0.2.0-alpha-15b486f.0",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
6
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0",