@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.
- package/cjs/optimizers/remove-description.js +1 -1
- package/cjs/optimizers/remove-empty-nodes.js +1 -1
- package/cjs/optimizers/remove-loc.js +1 -1
- package/esm/optimizers/remove-description.js +1 -1
- package/esm/optimizers/remove-empty-nodes.js +1 -1
- package/esm/optimizers/remove-loc.js +1 -1
- package/package.json +2 -4
- package/typings/optimize.d.ts +1 -1
- package/typings/types.d.ts +1 -1
|
@@ -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
|
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": {
|
package/typings/optimize.d.ts
CHANGED
package/typings/types.d.ts
CHANGED
|
@@ -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;
|