Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@graphql-tools/optimize

Package Overview
Dependencies
Maintainers
3
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-tools/optimize - npm Package Compare versions

Comparing version 1.3.2-alpha-20220815193214-83898018 to 1.4.0-rc-20230417072755-b8f23eb8

3

cjs/optimizers/remove-description.js
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc