@graphql-tools/wrap 9.2.13 → 9.2.14-alpha-20221114133606-dae9ff99

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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- const utils_1 = require("@graphql-tools/utils");
4
+ const graphql_1 = require("graphql");
5
5
  const TransformObjectFields_js_1 = tslib_1.__importDefault(require("./TransformObjectFields.js"));
6
6
  class FilterObjectFieldDirectives {
7
7
  constructor(filter) {
@@ -12,7 +12,7 @@ class FilterObjectFieldDirectives {
12
12
  var _a, _b, _c, _d;
13
13
  const keepDirectives = (_c = (_b = (_a = fieldConfig.astNode) === null || _a === void 0 ? void 0 : _a.directives) === null || _b === void 0 ? void 0 : _b.filter(dir => {
14
14
  const directiveDef = originalWrappingSchema.getDirective(dir.name.value);
15
- const directiveValue = directiveDef ? (0, utils_1.getArgumentValues)(directiveDef, dir) : undefined;
15
+ const directiveValue = directiveDef ? (0, graphql_1.getArgumentValues)(directiveDef, dir) : undefined;
16
16
  return this.filter(dir.name.value, directiveValue);
17
17
  })) !== null && _c !== void 0 ? _c : [];
18
18
  if (((_d = fieldConfig.astNode) === null || _d === void 0 ? void 0 : _d.directives) != null &&
@@ -1,4 +1,4 @@
1
- import { getArgumentValues } from '@graphql-tools/utils';
1
+ import { getArgumentValues } from 'graphql';
2
2
  import TransformObjectFields from './TransformObjectFields.js';
3
3
  export default class FilterObjectFieldDirectives {
4
4
  constructor(filter) {
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@graphql-tools/wrap",
3
- "version": "9.2.13",
3
+ "version": "9.2.14-alpha-20221114133606-dae9ff99",
4
4
  "description": "A set of utils for faster development of GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
7
7
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
8
8
  },
9
9
  "dependencies": {
10
- "@graphql-tools/delegate": "9.0.17",
11
- "@graphql-tools/schema": "9.0.10",
12
- "@graphql-tools/utils": "9.1.1",
10
+ "@graphql-tools/delegate": "9.0.18-alpha-20221114133606-dae9ff99",
11
+ "@graphql-tools/schema": "9.0.11-alpha-20221114133606-dae9ff99",
12
+ "@graphql-tools/utils": "9.1.2-alpha-20221114133606-dae9ff99",
13
13
  "tslib": "^2.4.0",
14
14
  "value-or-promise": "1.0.11"
15
15
  },