@graphql-tools/optimize 1.3.0 → 1.3.1-alpha-f3868574.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.
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.removeDescriptions = void 0;
4
- const graphql_1 = require("graphql");
4
+ const graphql_1 = require("@graphql-tools/graphql");
5
5
  /**
6
6
  * This optimizer removes "description" field from schema AST definitions.
7
7
  * @param input
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.removeEmptyNodes = void 0;
4
- const graphql_1 = require("graphql");
4
+ const graphql_1 = require("@graphql-tools/graphql");
5
5
  /**
6
6
  * This optimizer removes empty nodes/arrays (directives/argument/variableDefinitions) from a given DocumentNode of operation/fragment.
7
7
  * @param input
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.removeLoc = void 0;
4
- const graphql_1 = require("graphql");
4
+ const graphql_1 = require("@graphql-tools/graphql");
5
5
  /**
6
6
  * This optimizer removes "loc" fields
7
7
  * @param input
@@ -1,4 +1,4 @@
1
- import { visit } from 'graphql';
1
+ import { visit } from '@graphql-tools/graphql';
2
2
  /**
3
3
  * This optimizer removes "description" field from schema AST definitions.
4
4
  * @param input
@@ -1,4 +1,4 @@
1
- import { visit } from 'graphql';
1
+ import { visit } from '@graphql-tools/graphql';
2
2
  /**
3
3
  * This optimizer removes empty nodes/arrays (directives/argument/variableDefinitions) from a given DocumentNode of operation/fragment.
4
4
  * @param input
@@ -1,4 +1,4 @@
1
- import { visit } from 'graphql';
1
+ import { visit } from '@graphql-tools/graphql';
2
2
  /**
3
3
  * This optimizer removes "loc" fields
4
4
  * @param input
package/package.json CHANGED
@@ -1,12 +1,10 @@
1
1
  {
2
2
  "name": "@graphql-tools/optimize",
3
- "version": "1.3.0",
3
+ "version": "1.3.1-alpha-f3868574.0",
4
4
  "description": "A set of utils for faster development of GraphQL tools",
5
5
  "sideEffects": false,
6
- "peerDependencies": {
7
- "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
8
- },
9
6
  "dependencies": {
7
+ "@graphql-tools/graphql": "0.1.0-alpha-f3868574.0",
10
8
  "tslib": "^2.4.0"
11
9
  },
12
10
  "repository": {
@@ -1,4 +1,4 @@
1
- import { DocumentNode } from 'graphql';
1
+ import { DocumentNode } from '@graphql-tools/graphql';
2
2
  import { DocumentOptimizer } from './types.js';
3
3
  /**
4
4
  * This method accept a DocumentNode and applies the optimizations you wish to use.
@@ -1,2 +1,2 @@
1
- import { DocumentNode } from 'graphql';
1
+ import { DocumentNode } from '@graphql-tools/graphql';
2
2
  export declare type DocumentOptimizer = (input: DocumentNode) => DocumentNode;