@envelop/statsd 0.0.1 → 0.2.0-alpha-e8998c9.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 +7 -0
- package/index.mjs +7 -0
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -14,6 +14,13 @@ function isAsyncIterable(maybeAsyncIterable) {
|
|
|
14
14
|
return typeof (maybeAsyncIterable === null || maybeAsyncIterable === void 0 ? void 0 : maybeAsyncIterable[Symbol.asyncIterator]) === 'function';
|
|
15
15
|
}
|
|
16
16
|
|
|
17
|
+
/**
|
|
18
|
+
* This enum is used only internally in order to create nominal type for the disabled plugin
|
|
19
|
+
*/
|
|
20
|
+
var EnableIfBranded;
|
|
21
|
+
(function (EnableIfBranded) {
|
|
22
|
+
EnableIfBranded[EnableIfBranded["DisabledPlugin"] = 0] = "DisabledPlugin";
|
|
23
|
+
})(EnableIfBranded || (EnableIfBranded = {}));
|
|
17
24
|
function isIntrospectionOperationString(operation) {
|
|
18
25
|
return (typeof operation === 'string' ? operation : operation.body).indexOf('__schema') !== -1;
|
|
19
26
|
}
|
package/index.mjs
CHANGED
|
@@ -10,6 +10,13 @@ function isAsyncIterable(maybeAsyncIterable) {
|
|
|
10
10
|
return typeof (maybeAsyncIterable === null || maybeAsyncIterable === void 0 ? void 0 : maybeAsyncIterable[Symbol.asyncIterator]) === 'function';
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
+
/**
|
|
14
|
+
* This enum is used only internally in order to create nominal type for the disabled plugin
|
|
15
|
+
*/
|
|
16
|
+
var EnableIfBranded;
|
|
17
|
+
(function (EnableIfBranded) {
|
|
18
|
+
EnableIfBranded[EnableIfBranded["DisabledPlugin"] = 0] = "DisabledPlugin";
|
|
19
|
+
})(EnableIfBranded || (EnableIfBranded = {}));
|
|
13
20
|
function isIntrospectionOperationString(operation) {
|
|
14
21
|
return (typeof operation === 'string' ? operation : operation.body).indexOf('__schema') !== -1;
|
|
15
22
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envelop/statsd",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.2.0-alpha-e8998c9.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"graphql": "^14.0.0 || ^15.0.0",
|
|
6
|
+
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0",
|
|
7
7
|
"hot-shots": "^8.0.0"
|
|
8
8
|
},
|
|
9
9
|
"repository": {
|