@envelop/statsd 2.5.0 → 2.5.1-alpha-20220824152235-afd061e6

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/cjs/index.js CHANGED
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useStatsD = exports.metricNames = void 0;
4
4
  const core_1 = require("@envelop/core");
5
- const graphql_1 = require("graphql");
6
5
  exports.metricNames = {
7
6
  operationCount: 'operations.count',
8
7
  errorCount: 'operations.error_count',
@@ -11,7 +10,7 @@ exports.metricNames = {
11
10
  const statsDPluginTagsSymbol = Symbol('statsDPluginTagsSymbol');
12
11
  const statsDPluginExecutionStartTimeSymbol = Symbol('statsDPluginExecutionStartTimeSymbol');
13
12
  function getOperation(document) {
14
- return document.definitions.find(def => def.kind === graphql_1.Kind.OPERATION_DEFINITION);
13
+ return document.definitions.find((def) => def.kind === 'OperationDefinition');
15
14
  }
16
15
  function isParseFailure(parseResult) {
17
16
  return parseResult === null || parseResult instanceof Error;
package/esm/index.js CHANGED
@@ -1,5 +1,4 @@
1
1
  import { isIntrospectionOperationString, isAsyncIterable } from '@envelop/core';
2
- import { Kind } from 'graphql';
3
2
  export const metricNames = {
4
3
  operationCount: 'operations.count',
5
4
  errorCount: 'operations.error_count',
@@ -8,7 +7,7 @@ export const metricNames = {
8
7
  const statsDPluginTagsSymbol = Symbol('statsDPluginTagsSymbol');
9
8
  const statsDPluginExecutionStartTimeSymbol = Symbol('statsDPluginExecutionStartTimeSymbol');
10
9
  function getOperation(document) {
11
- return document.definitions.find(def => def.kind === Kind.OPERATION_DEFINITION);
10
+ return document.definitions.find((def) => def.kind === 'OperationDefinition');
12
11
  }
13
12
  function isParseFailure(parseResult) {
14
13
  return parseResult === null || parseResult instanceof Error;
package/package.json CHANGED
@@ -1,10 +1,9 @@
1
1
  {
2
2
  "name": "@envelop/statsd",
3
- "version": "2.5.0",
3
+ "version": "2.5.1-alpha-20220824152235-afd061e6",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@envelop/core": "^2.5.0",
7
- "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0",
6
+ "@envelop/core": "2.5.1-alpha-20220824152235-afd061e6",
8
7
  "hot-shots": "^8.0.0 || ^9.0.0"
9
8
  },
10
9
  "dependencies": {},