@graphql-tools/optimize
Advanced tools
Comparing version 1.3.2-alpha-20220815193214-83898018 to 1.4.0-rc-20230417072755-b8f23eb8
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.removeDescriptions = void 0; | ||
const graphql_1 = require("@graphql-tools/graphql"); | ||
const graphql_1 = require("graphql"); | ||
/** | ||
@@ -26,4 +26,5 @@ * This optimizer removes "description" field from schema AST definitions. | ||
FieldDefinition: transformNode, | ||
DirectiveDefinition: transformNode, | ||
}); | ||
}; | ||
exports.removeDescriptions = removeDescriptions; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.removeEmptyNodes = void 0; | ||
const graphql_1 = require("@graphql-tools/graphql"); | ||
const graphql_1 = require("graphql"); | ||
/** | ||
@@ -6,0 +6,0 @@ * This optimizer removes empty nodes/arrays (directives/argument/variableDefinitions) from a given DocumentNode of operation/fragment. |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.removeLoc = void 0; | ||
const graphql_1 = require("@graphql-tools/graphql"); | ||
const graphql_1 = require("graphql"); | ||
/** | ||
@@ -6,0 +6,0 @@ * This optimizer removes "loc" fields |
@@ -1,2 +0,2 @@ | ||
import { visit } from '@graphql-tools/graphql'; | ||
import { visit } from 'graphql'; | ||
/** | ||
@@ -23,3 +23,4 @@ * This optimizer removes "description" field from schema AST definitions. | ||
FieldDefinition: transformNode, | ||
DirectiveDefinition: transformNode, | ||
}); | ||
}; |
@@ -1,2 +0,2 @@ | ||
import { visit } from '@graphql-tools/graphql'; | ||
import { visit } from 'graphql'; | ||
/** | ||
@@ -3,0 +3,0 @@ * This optimizer removes empty nodes/arrays (directives/argument/variableDefinitions) from a given DocumentNode of operation/fragment. |
@@ -1,2 +0,2 @@ | ||
import { visit } from '@graphql-tools/graphql'; | ||
import { visit } from 'graphql'; | ||
/** | ||
@@ -3,0 +3,0 @@ * This optimizer removes "loc" fields |
{ | ||
"name": "@graphql-tools/optimize", | ||
"version": "1.3.2-alpha-20220815193214-83898018", | ||
"version": "1.4.0-rc-20230417072755-b8f23eb8", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
"sideEffects": false, | ||
"peerDependencies": { | ||
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" | ||
}, | ||
"dependencies": { | ||
"@graphql-tools/graphql": "0.1.0-alpha-20220815193214-83898018", | ||
"tslib": "^2.4.0" | ||
@@ -9,0 +11,0 @@ }, |
@@ -1,2 +0,2 @@ | ||
import { DocumentNode } from '@graphql-tools/graphql'; | ||
import { DocumentNode } from 'graphql'; | ||
import { DocumentOptimizer } from './types.js'; | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import { DocumentNode } from '@graphql-tools/graphql'; | ||
export declare type DocumentOptimizer = (input: DocumentNode) => DocumentNode; | ||
import { DocumentNode } from 'graphql'; | ||
export type DocumentOptimizer = (input: DocumentNode) => DocumentNode; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16149
304
+ Addedgraphql@16.9.0(transitive)
- Removed@graphql-tools/graphql@0.1.0-alpha-20220815193214-83898018
- Removed@graphql-tools/graphql@0.1.0-alpha-20220815193214-83898018(transitive)