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.1.1 to 1.2.0

20

index.js

@@ -55,2 +55,3 @@ 'use strict';

return graphql.visit(input, {
// Request/Operation:
FragmentDefinition: transformNode,

@@ -64,2 +65,21 @@ OperationDefinition: transformNode,

Directive: transformNode,
// Schema Definition:
SchemaDefinition: transformNode,
ScalarTypeDefinition: transformNode,
ObjectTypeDefinition: transformNode,
InterfaceTypeDefinition: transformNode,
UnionTypeDefinition: transformNode,
EnumTypeDefinition: transformNode,
EnumValueDefinition: transformNode,
InputObjectTypeDefinition: transformNode,
FieldDefinition: transformNode,
InputValueDefinition: transformNode,
// Schema Extension:
SchemaExtension: transformNode,
ScalarTypeExtension: transformNode,
ObjectTypeExtension: transformNode,
InterfaceTypeExtension: transformNode,
UnionTypeExtension: transformNode,
EnumTypeExtension: transformNode,
InputObjectTypeExtension: transformNode,
});

@@ -66,0 +86,0 @@ };

5

package.json
{
"name": "@graphql-tools/optimize",
"version": "1.1.1",
"version": "1.2.0",
"description": "A set of utils for faster development of GraphQL tools",

@@ -32,4 +32,5 @@ "sideEffects": false,

"import": "./*.mjs"
}
},
"./package.json": "./package.json"
}
}

2

README.md

@@ -42,5 +42,5 @@ # GraphQL Tools: `DocumentNode` Optimizer

```ts
export type DocumentOptimizer = (input: DocumentNode) => DocumentNode;
export type DocumentOptimizer = (input: DocumentNode) => DocumentNode
```
Take a look at [./optimizers](this directory for inspiration and implementation reference).

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