@envelop/prometheus 5.0.0-alpha-e8998c9.0 → 5.0.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 +2 -2
package/index.js
CHANGED
|
@@ -13,7 +13,9 @@ const core = require('@envelop/core');
|
|
|
13
13
|
* Source: https://github.com/graphql/graphql-js/blob/main/src/jsutils/isAsyncIterable.ts
|
|
14
14
|
*/
|
|
15
15
|
function isAsyncIterable(maybeAsyncIterable) {
|
|
16
|
-
return
|
|
16
|
+
return (maybeAsyncIterable != null &&
|
|
17
|
+
typeof maybeAsyncIterable === 'object' &&
|
|
18
|
+
typeof maybeAsyncIterable[Symbol.asyncIterator] === 'function');
|
|
17
19
|
}
|
|
18
20
|
|
|
19
21
|
function shouldTraceFieldResolver(info, whitelist) {
|
package/index.mjs
CHANGED
|
@@ -9,7 +9,9 @@ import { isIntrospectionOperationString } from '@envelop/core';
|
|
|
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
|
function shouldTraceFieldResolver(info, whitelist) {
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envelop/prometheus",
|
|
3
|
-
"version": "5.0.0-alpha-
|
|
3
|
+
"version": "5.0.0-alpha-15b486f.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@envelop/core": "1.4.0-alpha-
|
|
6
|
+
"@envelop/core": "1.4.0-alpha-15b486f.0",
|
|
7
7
|
"graphql": "^14.0.0 || ^15.0.0",
|
|
8
8
|
"prom-client": "^13 || ^14.0.0"
|
|
9
9
|
},
|