Socket
Socket
Sign inDemoInstall

@types/graphql

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/graphql - npm Package Compare versions

Comparing version 0.11.3 to 0.11.4

0

graphql/error/formatError.d.ts

@@ -0,0 +0,0 @@ import { GraphQLError } from './GraphQLError';

@@ -0,0 +0,0 @@ import { getLocation } from '../language';

@@ -0,0 +0,0 @@ export { GraphQLError } from './GraphQLError';

@@ -0,0 +0,0 @@ import { GraphQLError } from './GraphQLError';

@@ -0,0 +0,0 @@ import { Source } from '../language/source';

13

graphql/execution/execute.d.ts

@@ -39,2 +39,12 @@ import { GraphQLError, locatedError } from '../error';

export type ExecutionArgs = {
schema: GraphQLSchema,
document: DocumentNode,
rootValue?: any,
contextValue?: any,
variableValues?: {[key: string]: any},
operationName?: string,
fieldResolver?: GraphQLFieldResolver<any, any>
};
/**

@@ -47,3 +57,6 @@ * Implements the "Evaluating requests" section of the GraphQL specification.

* a GraphQLError will be thrown immediately explaining the invalid input.
*
* Accepts either an object with named arguments, or individual arguments.
*/
export function execute(args: ExecutionArgs): Promise<ExecutionResult>;
export function execute(

@@ -50,0 +63,0 @@ schema: GraphQLSchema,

@@ -5,2 +5,3 @@ export {

responsePathAsArray,
ExecutionArgs,
ExecutionResult

@@ -7,0 +8,0 @@ } from './execute';

@@ -0,0 +0,0 @@ import { GraphQLInputType, GraphQLField, GraphQLArgument } from '../type/definition';

@@ -0,1 +1,3 @@

import { Source } from './language/source';
import { GraphQLFieldResolver } from './type/definition';
import { GraphQLSchema } from './type/schema';

@@ -13,5 +15,7 @@ import { ExecutionResult } from './execution/execute';

*
* Accepts either an object with named arguments, or individual arguments:
*
* schema:
* The GraphQL type system to use when validating and executing a query.
* requestString:
* source:
* A GraphQL language formatted string representing the requested operation.

@@ -28,6 +32,21 @@ * rootValue:

* one operation.
* fieldResolver:
* A resolver function to use when one is not provided by the schema.
* If not provided, the default field resolver is used (which looks for a
* value or method on the source value with the field's name).
*/
export function graphql(args: {
schema: GraphQLSchema,
source: string | Source,
rootValue?: any,
contextValue?: any,
variableValues?: {
[key: string]: any
},
operationName?: string,
fieldResolver?: GraphQLFieldResolver<any, any>
}): Promise<ExecutionResult>;
export function graphql(
schema: GraphQLSchema,
requestString: string,
source: string | Source,
rootValue?: any,

@@ -38,3 +57,4 @@ contextValue?: any,

},
operationName?: string
operationName?: string,
fieldResolver?: GraphQLFieldResolver<any, any>
): Promise<ExecutionResult>;

@@ -33,2 +33,3 @@ // Type definitions for graphql 0.11

getDirectiveValues,
ExecutionArgs,
ExecutionResult,

@@ -35,0 +36,0 @@ } from './execution';

@@ -0,0 +0,0 @@ import { Source } from './source';

@@ -9,2 +9,8 @@ export * from './ast';

export { Source } from './source';
export { visit, visitInParallel, visitWithTypeInfo, BREAK } from './visitor';
export {
visit,
visitInParallel,
visitWithTypeInfo,
getVisitFn,
BREAK
} from './visitor';

@@ -0,0 +0,0 @@ // Name

@@ -0,0 +0,0 @@ import { Token } from './ast';

@@ -0,0 +0,0 @@ import { Source } from "./source";

@@ -0,0 +0,0 @@ import { NamedTypeNode, TypeNode, ValueNode, DocumentNode } from "./ast";

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

@@ -0,0 +0,0 @@ export class Source {

@@ -50,1 +50,7 @@ export const QueryDocumentKeys: {

export function visitWithTypeInfo(typeInfo: any, visitor: any): any;
/**
* Given a visitor instance, if it is leaving or not, and a node kind, return
* the function the visitor runtime should call.
*/
export function getVisitFn(visitor: any, kind: any, isLeaving: any): any;

4

graphql/package.json
{
"name": "@types/graphql",
"version": "0.11.3",
"version": "0.11.4",
"description": "TypeScript definitions for graphql",

@@ -55,4 +55,4 @@ "license": "MIT",

"dependencies": {},
"typesPublisherContentHash": "e372ca77cc2e89e1405807e972dbf80576e96f871f888ff9763ef40597a83561",
"typesPublisherContentHash": "b2a953334a228e548c4a26ca527faf7a1ae86ec46ab9c1cc8807fab8b44c57e7",
"typeScriptVersion": "2.3"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Mon, 11 Sep 2017 15:18:39 GMT
* Last updated: Mon, 18 Sep 2017 14:08:00 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

export { subscribe, createSourceEventStream } from './subscribe';

@@ -0,0 +0,0 @@ import { GraphQLSchema } from '../type/schema';

@@ -0,0 +0,0 @@ import {

@@ -0,0 +0,0 @@ import {

@@ -0,0 +0,0 @@ // GraphQL Schema definition

@@ -0,0 +0,0 @@ import {

@@ -0,0 +0,0 @@ import { GraphQLScalarType } from './definition';

@@ -0,0 +0,0 @@ import {

// Helper to assert that provided names are valid.
export function assertValidName(name: string): void;

@@ -0,0 +0,0 @@ import {

@@ -0,0 +0,0 @@ import { DocumentNode, Location } from '../language/ast';

@@ -0,0 +0,0 @@ import { IntrospectionQuery } from './introspectionQuery';

@@ -0,0 +0,0 @@ import { DocumentNode } from '../language/ast';

@@ -0,0 +0,0 @@ import { DocumentNode } from '../language/ast';

@@ -0,0 +0,0 @@ import { GraphQLSchema } from '../type/schema';

@@ -0,0 +0,0 @@ import { DocumentNode, OperationDefinitionNode } from '../language/ast';

@@ -0,0 +0,0 @@ // The GraphQL query recommended for a full schema introspection.

@@ -0,0 +0,0 @@ import { DirectiveLocationEnum } from '../type/directives';

@@ -0,0 +0,0 @@ import { GraphQLInputType } from '../type/definition';

@@ -0,0 +0,0 @@ import { ValueNode } from '../language/ast';

@@ -0,0 +0,0 @@ import { GraphQLSchema } from '../type/schema';

@@ -0,0 +0,0 @@ import { TypeNode } from '../language/ast';

@@ -0,0 +0,0 @@ import { GraphQLSchema } from '../type/schema';

@@ -0,0 +0,0 @@ import { GraphQLInputType } from '../type/definition';

@@ -0,0 +0,0 @@ export { validate, ValidationContext } from './validate';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

import { ValidationContext } from '../index';
export function NoFragmentCycles(context: ValidationContext): any;

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from '../index';

@@ -0,0 +0,0 @@ import { ValidationContext } from './validate'; // It needs to check.

@@ -0,0 +0,0 @@ import { GraphQLError } from '../error';

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