@envelop/prometheus 6.3.2 → 6.3.3

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 +7 -9
  2. package/index.mjs +7 -9
  3. package/package.json +3 -3
package/index.js CHANGED
@@ -23,17 +23,15 @@ function createInternalContext(parseResult) {
23
23
  if (parseResult === null) {
24
24
  return null;
25
25
  }
26
- else if (parseResult instanceof Error) {
26
+ if (parseResult instanceof Error) {
27
27
  return null;
28
28
  }
29
- else {
30
- const operation = getOperation(parseResult);
31
- return {
32
- document: parseResult,
33
- operationName: ((_a = operation.name) === null || _a === void 0 ? void 0 : _a.value) || 'Anonymous',
34
- operationType: operation.operation,
35
- };
36
- }
29
+ const operation = getOperation(parseResult);
30
+ return {
31
+ document: parseResult,
32
+ operationName: ((_a = operation.name) === null || _a === void 0 ? void 0 : _a.value) || 'Anonymous',
33
+ operationType: operation.operation,
34
+ };
37
35
  }
38
36
  function createHistogram(options) {
39
37
  return options;
package/index.mjs CHANGED
@@ -19,17 +19,15 @@ function createInternalContext(parseResult) {
19
19
  if (parseResult === null) {
20
20
  return null;
21
21
  }
22
- else if (parseResult instanceof Error) {
22
+ if (parseResult instanceof Error) {
23
23
  return null;
24
24
  }
25
- else {
26
- const operation = getOperation(parseResult);
27
- return {
28
- document: parseResult,
29
- operationName: ((_a = operation.name) === null || _a === void 0 ? void 0 : _a.value) || 'Anonymous',
30
- operationType: operation.operation,
31
- };
32
- }
25
+ const operation = getOperation(parseResult);
26
+ return {
27
+ document: parseResult,
28
+ operationName: ((_a = operation.name) === null || _a === void 0 ? void 0 : _a.value) || 'Anonymous',
29
+ operationType: operation.operation,
30
+ };
33
31
  }
34
32
  function createHistogram(options) {
35
33
  return options;
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@envelop/prometheus",
3
- "version": "6.3.2",
3
+ "version": "6.3.3",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@envelop/core": "^2.3.2",
6
+ "@envelop/core": "^2.3.3",
7
7
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0",
8
8
  "prom-client": "^13 || ^14.0.0"
9
9
  },
10
10
  "repository": {
11
11
  "type": "git",
12
- "url": "https://github.com/dotansimha/envelop.git",
12
+ "url": "https://github.com/n1ru4l/envelop.git",
13
13
  "directory": "packages/plugins/prometheus"
14
14
  },
15
15
  "author": "Dotan Simha <dotansimha@gmail.com>",