Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphql-codegen-core

Package Overview
Dependencies
Maintainers
1
Versions
1651
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-codegen-core - npm Package Compare versions

Comparing version 0.6.0-alpha.3744e90e to 0.6.0-alpha.4e12bbc7

dist/operations/build-selection-set.d.ts

3

dist/index.d.ts
export { schemaToTemplateContext } from './schema/schema-to-template-context';
export { transformDocument } from './operations/transform-document';
export { validateIntrospection, introspectionToGraphQLSchema } from './utils/introspection-to-schema';
export { Argument, Field, Type, Scalar, Enum, EnumValue, Union, Interface, SchemaTemplateContext } from './types';
export { Argument, Field, Type, Scalar, Enum, EnumValue, Union, Interface, SchemaTemplateContext, Document, Variable, Operation, Fragment, SelectionSetItem, SelectionSetFieldNode, SelectionSetFragmentSpread, SelectionSetInlineFragment, isFieldNode, isFragmentSpreadNode, isInlineFragmentNode } from './types';

@@ -5,5 +5,11 @@ "use strict";

exports.schemaToTemplateContext = schema_to_template_context_1.schemaToTemplateContext;
var transform_document_1 = require("./operations/transform-document");
exports.transformDocument = transform_document_1.transformDocument;
var introspection_to_schema_1 = require("./utils/introspection-to-schema");
exports.validateIntrospection = introspection_to_schema_1.validateIntrospection;
exports.introspectionToGraphQLSchema = introspection_to_schema_1.introspectionToGraphQLSchema;
var types_1 = require("./types");
exports.isFieldNode = types_1.isFieldNode;
exports.isFragmentSpreadNode = types_1.isFragmentSpreadNode;
exports.isInlineFragmentNode = types_1.isInlineFragmentNode;
//# sourceMappingURL=index.js.map

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

import { GraphQLInputType, GraphQLOutputType } from 'graphql';
import { GraphQLInputType, GraphQLOutputType, GraphQLType } from 'graphql';
export interface ResolvedType {

@@ -9,2 +9,2 @@ name: string;

export declare function isArray(type: GraphQLOutputType | GraphQLInputType): boolean;
export declare function resolveType(type: GraphQLOutputType | GraphQLInputType): ResolvedType;
export declare function resolveType(type: GraphQLType): ResolvedType;

@@ -65,1 +65,48 @@ export interface Argument {

}
export interface SelectionSetItem {
isFragmentSpread: boolean;
isInlineFragment: boolean;
isField: boolean;
isLeaf: boolean;
}
export interface SelectionSetInlineFragment extends SelectionSetItem {
selectionSet: SelectionSetItem[];
onType: string;
}
export interface SelectionSetFragmentSpread extends SelectionSetItem {
fragmentName: string;
}
export interface SelectionSetFieldNode extends SelectionSetItem {
name: string;
selectionSet: SelectionSetItem[];
type: string;
isRequired: boolean;
isArray: boolean;
}
export declare function isFieldNode(node: SelectionSetItem): node is SelectionSetFieldNode;
export declare function isFragmentSpreadNode(node: SelectionSetItem): node is SelectionSetFragmentSpread;
export declare function isInlineFragmentNode(node: SelectionSetItem): node is SelectionSetInlineFragment;
export interface Fragment {
name: string;
selectionSet: SelectionSetItem[];
onType: string;
}
export interface Operation {
name: string;
selectionSet: SelectionSetItem[];
operationType: string;
variables: Variable[];
hasVariables: boolean;
}
export interface Variable {
name: string;
type: string;
isRequired: boolean;
isArray: boolean;
}
export interface Document {
fragments: Fragment[];
operations: Operation[];
hasFragments: boolean;
hasOperations: boolean;
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function isFieldNode(node) {
return node['name'] !== undefined && node['selectionSet'] !== undefined && node['type'] !== undefined;
}
exports.isFieldNode = isFieldNode;
function isFragmentSpreadNode(node) {
return node['fragmentName'] !== undefined;
}
exports.isFragmentSpreadNode = isFragmentSpreadNode;
function isInlineFragmentNode(node) {
return node['selectionSet'] !== undefined && node['onType'] !== undefined;
}
exports.isInlineFragmentNode = isInlineFragmentNode;
//# sourceMappingURL=types.js.map
{
"name": "graphql-codegen-core",
"version": "0.6.0-alpha.3744e90e",
"version": "0.6.0-alpha.4e12bbc7",
"description": "GraphQL types and code generator based on schema",

@@ -88,3 +88,5 @@ "main": "dist/index.js",

"@types/node": "7",
"graphql-tag": "^2.4.2",
"jest": "^20.0.4",
"rimraf": "^2.6.1",
"tslint": "^5.4.3",

@@ -91,0 +93,0 @@ "typescript": "^2.4.1"

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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