@envelop/newrelic 5.0.6 → 5.0.7-alpha-20230220175948-cdba6d9f

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
@@ -122,7 +122,7 @@ const useNewRelic = (rawOptions) => {
122
122
  // @ts-expect-error TODO: not sure how we will make it dev friendly
123
123
  definitionNode => definitionNode.kind === graphql_1.Kind.OPERATION_DEFINITION);
124
124
  const operationType = rootOperation.operation;
125
- const document = (0, graphql_1.print)(args.document);
125
+ const document = (0, core_1.getDocumentString)(args.document, graphql_1.print);
126
126
  const operationName = options.extractOperationName?.(args.contextValue) ||
127
127
  args.operationName ||
128
128
  rootOperation.name?.value ||
package/esm/index.js CHANGED
@@ -1,6 +1,6 @@
1
- import { isAsyncIterable } from '@envelop/core';
1
+ import { isAsyncIterable, getDocumentString } from '@envelop/core';
2
2
  import { useOnResolve } from '@envelop/on-resolve';
3
- import { print, Kind } from 'graphql';
3
+ import { Kind, print } from 'graphql';
4
4
  var AttributeName;
5
5
  (function (AttributeName) {
6
6
  AttributeName["COMPONENT_NAME"] = "Envelop_NewRelic_Plugin";
@@ -97,7 +97,7 @@ export const useNewRelic = (rawOptions) => {
97
97
  // @ts-expect-error TODO: not sure how we will make it dev friendly
98
98
  definitionNode => definitionNode.kind === Kind.OPERATION_DEFINITION);
99
99
  const operationType = rootOperation.operation;
100
- const document = print(args.document);
100
+ const document = getDocumentString(args.document, print);
101
101
  const operationName = options.extractOperationName?.(args.contextValue) ||
102
102
  args.operationName ||
103
103
  rootOperation.name?.value ||
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@envelop/newrelic",
3
- "version": "5.0.6",
3
+ "version": "5.0.7-alpha-20230220175948-cdba6d9f",
4
4
  "sideEffects": false,
5
5
  "peerDependencies": {
6
- "@envelop/core": "^3.0.6",
6
+ "@envelop/core": "3.0.7-alpha-20230220175948-cdba6d9f",
7
7
  "newrelic": "^7 || ^8.0.0",
8
8
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
9
9
  },
10
10
  "dependencies": {
11
- "@envelop/on-resolve": "^2.0.6",
11
+ "@envelop/on-resolve": "2.0.7-alpha-20230220175948-cdba6d9f",
12
12
  "tslib": "^2.5.0"
13
13
  },
14
14
  "repository": {