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.12.4 to 0.12.5

4

graphql/index.d.ts

@@ -15,2 +15,3 @@ // Type definitions for graphql 0.12

// Alessio Dionisi <https://github.com/adnsio>
// Divyendu Singh <https://github.com/divyenduz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

@@ -104,2 +105,5 @@ // TypeScript Version: 2.3

// Get the description of an AST node
getDescription,
// Extends an existing GraphQLSchema from a parsed GraphQL Schema

@@ -106,0 +110,0 @@ // language AST.

9

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

@@ -66,2 +66,7 @@ "license": "MIT",

"githubUsername": "adnsio"
},
{
"name": "Divyendu Singh",
"url": "https://github.com/divyenduz",
"githubUsername": "divyenduz"
}

@@ -76,4 +81,4 @@ ],

"dependencies": {},
"typesPublisherContentHash": "f7bae798345c296c53e9b5c93fe310a377146b88e88dc62162f4a76391a6176a",
"typesPublisherContentHash": "29c233b690dc18e1ac5ce094cc722d6e46eba70d2e1523a80fe4b490a703152f",
"typeScriptVersion": "2.3"
}

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

Additional Details
* Last updated: Wed, 14 Feb 2018 01:13:03 GMT
* Last updated: Thu, 15 Mar 2018 23:17:55 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by TonyYang <https://github.com/TonyPythoneer>, Caleb Meredith <https://github.com/calebmer>, Dominic Watson <https://github.com/intellix>, Firede <https://github.com/firede>, Kepennar <https://github.com/kepennar>, Mikhail Novikov <https://github.com/freiksenet>, Ivan Goncharov <https://github.com/IvanGoncharov>, Hagai Cohen <https://github.com/DxCx>, Ricardo Portugal <https://github.com/rportugal>, Tim Griesser <https://github.com/tgriesser>, Dylan Stewart <https://github.com/dyst5422>, Alessio Dionisi <https://github.com/adnsio>.
These definitions were written by TonyYang <https://github.com/TonyPythoneer>, Caleb Meredith <https://github.com/calebmer>, Dominic Watson <https://github.com/intellix>, Firede <https://github.com/firede>, Kepennar <https://github.com/kepennar>, Mikhail Novikov <https://github.com/freiksenet>, Ivan Goncharov <https://github.com/IvanGoncharov>, Hagai Cohen <https://github.com/DxCx>, Ricardo Portugal <https://github.com/rportugal>, Tim Griesser <https://github.com/tgriesser>, Dylan Stewart <https://github.com/dyst5422>, Alessio Dionisi <https://github.com/adnsio>, Divyendu Singh <https://github.com/divyenduz>.

@@ -64,2 +64,23 @@ import { GraphQLObjectType } from './definition';

export type GraphQLSchemaValidationOptions = {
/**
* When building a schema from a GraphQL service's introspection result, it
* might be safe to assume the schema is valid. Set to true to assume the
* produced schema is valid.
*
* Default: false
*/
assumeValid?: boolean;
/**
* If provided, the schema will consider fields or types with names included
* in this list valid, even if they do not adhere to the specification's
* schema validation rules.
*
* This option is provided to ease adoption and may be removed in a future
* major release.
*/
allowedLegacyNames?: ReadonlyArray<string>;
};
export interface GraphQLSchemaConfig {

@@ -66,0 +87,0 @@ query: GraphQLObjectType;

@@ -1,5 +0,16 @@

import { DocumentNode, Location } from '../language/ast';
import { DocumentNode, Location, StringValueNode } from '../language/ast';
import { Source } from '../language/source';
import { GraphQLSchema } from '../type/schema';
import { GraphQLSchema, GraphQLSchemaValidationOptions } from '../type/schema';
interface BuildSchemaOptions extends GraphQLSchemaValidationOptions {
/**
* Descriptions are defined as preceding string literals, however an older
* experimental version of the SDL supported preceding comments as
* descriptions. Set to true to enable this deprecated behavior.
*
* Default: false
*/
commentDescriptions?: boolean;
}
/**

@@ -18,6 +29,14 @@ * This takes the ast of a schema document produced by the parse function in

/**
* Given an ast node, returns its string description based on a contiguous
* block full-line of comments preceding it.
* Given an ast node, returns its string description.
*
* Accepts options as a second argument:
*
* - commentDescriptions:
* Provide true to use preceding comments as the description.
*
*/
export function getDescription(node: { loc?: Location }): string;
export function getDescription(
node: { description?: StringValueNode; loc?: Location },
options: BuildSchemaOptions
): string;

@@ -24,0 +43,0 @@ /**

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

// Build a GraphQLSchema from GraphQL Schema language.
export { buildASTSchema, buildSchema } from './buildASTSchema';
export { buildASTSchema, buildSchema, getDescription } from './buildASTSchema';

@@ -33,0 +33,0 @@ // Extends an existing GraphQLSchema from a parsed GraphQL Schema language AST.

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