@graphql-tools/optimize
Advanced tools
Comparing version 1.3.1-alpha-fbf97581.0 to 1.3.1
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.removeDescriptions = void 0; | ||
const graphql_1 = require("@graphql-tools/graphql"); | ||
const graphql_1 = require("graphql"); | ||
/** | ||
@@ -6,0 +6,0 @@ * This optimizer removes "description" field from schema AST definitions. |
"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'; | ||
/** | ||
@@ -3,0 +3,0 @@ * This optimizer removes "description" field from schema AST definitions. |
@@ -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.1-alpha-fbf97581.0", | ||
"version": "1.3.1", | ||
"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-fbf97581.0", | ||
"tslib": "^2.4.0" | ||
@@ -26,3 +28,3 @@ }, | ||
"require": { | ||
"types": "./typings/index.d.ts", | ||
"types": "./typings/index.d.cts", | ||
"default": "./cjs/index.js" | ||
@@ -41,3 +43,3 @@ }, | ||
"require": { | ||
"types": "./typings/*.d.ts", | ||
"types": "./typings/*.d.cts", | ||
"default": "./cjs/*.js" | ||
@@ -44,0 +46,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'; | ||
import { DocumentNode } from 'graphql'; | ||
export declare type DocumentOptimizer = (input: DocumentNode) => DocumentNode; |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
16138
27
1
+ Addedgraphql@16.9.0(transitive)
- Removed@graphql-tools/graphql@0.1.0-alpha-fbf97581.0(transitive)