New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

graphql-tool-utilities

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-tool-utilities - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

58

ast.d.ts

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

import { GraphQLSchema, DocumentNode, GraphQLType } from 'graphql';
import { GraphQLSchema, DocumentNode, GraphQLType, GraphQLOutputType, GraphQLInputType, GraphQLInterfaceType, GraphQLObjectType } from 'graphql';
export interface Variable {
name: string;
type: GraphQLInputType;
}
export interface Field {
responseName: string;
fieldName: string;
type: GraphQLOutputType;
fields?: Field[];
fragmentSpreads?: string[];
inlineFragments?: InlineFragment[];
}
export interface InlineFragment {
typeCondition: GraphQLObjectType | GraphQLInterfaceType;
possibleTypes: (GraphQLObjectType | GraphQLInterfaceType)[];
fields: Field[];
fragmentSpreads: string[];
inlineFragments?: InlineFragment[];
}
export interface Fragment extends InlineFragment {
filePath: string;
fragmentName: string;
source: string;
fragmentsReferenced: string[];
fields: Field[];
}
export interface Operation {
filePath: string;
operationName: string;
operationType: 'query' | 'mutation' | 'subscription';
variables: Variable[];
fields: Field[];
fragmentsReferenced: string[];
fragmentSpreads?: string[];
}
export interface AST {

@@ -7,22 +42,7 @@ operations: {

fragments: {
[key: string]: FragmentSpread;
[key: string]: Fragment;
};
typesUsed: GraphQLType[];
schema: GraphQLSchema;
}
export interface Operation {
fields: Field[];
operationType: 'query' | 'mutation';
filePath?: string;
}
export interface FragmentSpread {
fields: Field[];
typeCondition: GraphQLType;
possibleTypes: GraphQLType[];
}
export interface Field {
responseName: string;
fieldName: string;
type: GraphQLType;
fields?: Field[];
fragmentSpreads?: string[];
}
export interface Compile {

@@ -29,0 +49,0 @@ (schema: GraphQLSchema, document: DocumentNode): AST;

{
"name": "graphql-tool-utilities",
"description": "Common utilities for GraphQL developer tools",
"version": "0.4.0",
"version": "0.5.0",
"license": "MIT",

@@ -6,0 +6,0 @@ "repository": "https://github.com/lemonmade/graphql-tools/tree/master/packages/graphql-tool-utilities",

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