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.0 to 1.3.1-alpha-33fb2950.0

2

cjs/optimizers/remove-description.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.removeDescriptions = void 0;
const graphql_1 = require("graphql");
const graphql_1 = require("@graphql-tools/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");
const graphql_1 = require("@graphql-tools/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");
const graphql_1 = require("@graphql-tools/graphql");
/**

@@ -6,0 +6,0 @@ * This optimizer removes "loc" fields

@@ -1,2 +0,2 @@

import { visit } from 'graphql';
import { visit } from '@graphql-tools/graphql';
/**

@@ -3,0 +3,0 @@ * This optimizer removes "description" field from schema AST definitions.

@@ -1,2 +0,2 @@

import { visit } from 'graphql';
import { visit } from '@graphql-tools/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';
import { visit } from '@graphql-tools/graphql';
/**

@@ -3,0 +3,0 @@ * This optimizer removes "loc" fields

{
"name": "@graphql-tools/optimize",
"version": "1.3.0",
"version": "1.3.1-alpha-33fb2950.0",
"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-33fb2950.0",
"tslib": "^2.4.0"

@@ -11,0 +9,0 @@ },

@@ -1,2 +0,2 @@

import { DocumentNode } from 'graphql';
import { DocumentNode } from '@graphql-tools/graphql';
import { DocumentOptimizer } from './types.js';

@@ -3,0 +3,0 @@ /**

@@ -1,2 +0,2 @@

import { DocumentNode } from 'graphql';
import { DocumentNode } from '@graphql-tools/graphql';
export declare type DocumentOptimizer = (input: DocumentNode) => DocumentNode;
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