@envelop/statsd 3.0.0-alpha-4ba70ab.0 → 3.0.0-alpha-d0d0776.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 +1 -2
- package/index.mjs +1 -2
- package/package.json +19 -7
package/index.js
CHANGED
|
@@ -43,7 +43,6 @@ const useStatsD = (options) => {
|
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
45
|
return function onParseDone(payload) {
|
|
46
|
-
var _a;
|
|
47
46
|
if (isParseFailure(payload.result)) {
|
|
48
47
|
increaseErrorCount();
|
|
49
48
|
increaseOperationCount();
|
|
@@ -52,7 +51,7 @@ const useStatsD = (options) => {
|
|
|
52
51
|
const operation = getOperation(payload.result);
|
|
53
52
|
extendContext({
|
|
54
53
|
[statsDPluginTagsSymbol]: {
|
|
55
|
-
operation:
|
|
54
|
+
operation: operation?.name?.value || 'anonymous',
|
|
56
55
|
},
|
|
57
56
|
});
|
|
58
57
|
}
|
package/index.mjs
CHANGED
|
@@ -39,7 +39,6 @@ const useStatsD = (options) => {
|
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
41
|
return function onParseDone(payload) {
|
|
42
|
-
var _a;
|
|
43
42
|
if (isParseFailure(payload.result)) {
|
|
44
43
|
increaseErrorCount();
|
|
45
44
|
increaseOperationCount();
|
|
@@ -48,7 +47,7 @@ const useStatsD = (options) => {
|
|
|
48
47
|
const operation = getOperation(payload.result);
|
|
49
48
|
extendContext({
|
|
50
49
|
[statsDPluginTagsSymbol]: {
|
|
51
|
-
operation:
|
|
50
|
+
operation: operation?.name?.value || 'anonymous',
|
|
52
51
|
},
|
|
53
52
|
});
|
|
54
53
|
}
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@envelop/statsd",
|
|
3
|
-
"version": "3.0.0-alpha-
|
|
3
|
+
"version": "3.0.0-alpha-d0d0776.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@envelop/core": "
|
|
6
|
+
"@envelop/core": "3.0.0-alpha-d0d0776.0",
|
|
7
7
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0",
|
|
8
8
|
"hot-shots": "^8.0.0 || ^9.0.0"
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
12
|
-
"url": "https://github.com/
|
|
12
|
+
"url": "https://github.com/n1ru4l/envelop.git",
|
|
13
13
|
"directory": "packages/plugins/statsd"
|
|
14
14
|
},
|
|
15
15
|
"keywords": [
|
|
@@ -29,12 +29,24 @@
|
|
|
29
29
|
},
|
|
30
30
|
"exports": {
|
|
31
31
|
".": {
|
|
32
|
-
"require":
|
|
33
|
-
|
|
32
|
+
"require": {
|
|
33
|
+
"default": "./index.js",
|
|
34
|
+
"types": "./index.d.ts"
|
|
35
|
+
},
|
|
36
|
+
"import": {
|
|
37
|
+
"default": "./index.mjs",
|
|
38
|
+
"types": "./index.d.ts"
|
|
39
|
+
}
|
|
34
40
|
},
|
|
35
41
|
"./*": {
|
|
36
|
-
"require":
|
|
37
|
-
|
|
42
|
+
"require": {
|
|
43
|
+
"default": "./*.js",
|
|
44
|
+
"types": "./*.d.ts"
|
|
45
|
+
},
|
|
46
|
+
"import": {
|
|
47
|
+
"default": "./*.mjs",
|
|
48
|
+
"types": "./*.d.ts"
|
|
49
|
+
}
|
|
38
50
|
},
|
|
39
51
|
"./package.json": "./package.json"
|
|
40
52
|
}
|