Socket
Socket
Sign inDemoInstall

graphql-language-service-types

Package Overview
Dependencies
Maintainers
8
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-language-service-types - npm Package Compare versions

Comparing version 1.6.0-alpha.5 to 1.6.0-alpha.6

12

CHANGELOG.md

@@ -6,2 +6,14 @@ # Change Log

# [1.6.0-alpha.6](https://github.com/graphql/graphiql/compare/graphql-language-service-types@1.6.0-alpha.5...graphql-language-service-types@1.6.0-alpha.6) (2020-05-17)
### Bug Fixes
- remove problematic file resolution module from webpack sco… ([#1489](https://github.com/graphql/graphiql/issues/1489)) ([8dab038](https://github.com/graphql/graphiql/commit/8dab0385772f443f73b559e2c668080733168236))
### Features
- introduce proper vscode completion kinds ([#1488](https://github.com/graphql/graphiql/issues/1488)) ([f19aa0d](https://github.com/graphql/graphiql/commit/f19aa0ddde6109526c101c8a487f43bbb8238394))
- monaco-graphql docs, api, improvements ([#1521](https://github.com/graphql/graphiql/issues/1521)) ([c79158c](https://github.com/graphql/graphiql/commit/c79158c72e976ab286e7ec3fded7f3e2d24e50d0))
- new graphql-languageservice package ([#1485](https://github.com/graphql/graphiql/issues/1485)) ([6bb3ddd](https://github.com/graphql/graphiql/commit/6bb3dddf1f97db4bc193bb7fd9de1ada8d8c8ef9))
# [1.6.0-alpha.5](https://github.com/graphql/graphiql/compare/graphql-language-service-types@1.6.0-alpha.4...graphql-language-service-types@1.6.0-alpha.5) (2020-04-06)

@@ -8,0 +20,0 @@

93

dist/index.d.ts

@@ -1,43 +0,9 @@

import { Diagnostic as DiagnosticType, Position as PositionType, CompletionItem as CompletionItemType } from 'vscode-languageserver-protocol';
import { GraphQLSchema, KindEnum } from 'graphql';
import { ASTNode, DocumentNode, FragmentDefinitionNode, NamedTypeNode, TypeDefinitionNode, NameNode } from 'graphql/language';
import { GraphQLArgument, GraphQLEnumValue, GraphQLField, GraphQLInputFieldMap, GraphQLType } from 'graphql/type/definition';
import { GraphQLDirective } from 'graphql/type/directives';
import type { Diagnostic as DiagnosticType, CompletionItem as CompletionItemType } from 'vscode-languageserver-types';
import type { ASTNode, GraphQLSchema } from 'graphql';
import type { DocumentNode, FragmentDefinitionNode, NamedTypeNode, TypeDefinitionNode, NameNode } from 'graphql/language';
import type { GraphQLArgument, GraphQLEnumValue, GraphQLField, GraphQLInputFieldMap, GraphQLType } from 'graphql/type/definition';
import type { GraphQLDirective } from 'graphql/type/directives';
export declare type Maybe<T> = T | null | undefined;
export { GraphQLConfig, GraphQLProjectConfig };
import { GraphQLConfig, GraphQLProjectConfig } from 'graphql-config';
export declare type TokenPattern = string | ((char: string) => boolean) | RegExp;
export interface CharacterStream {
getStartOfToken: () => number;
getCurrentPosition: () => number;
eol: () => boolean;
sol: () => boolean;
peek: () => string | null;
next: () => string;
eat: (pattern: TokenPattern) => string | undefined;
eatWhile: (match: TokenPattern) => boolean;
eatSpace: () => boolean;
skipToEnd: () => void;
skipTo: (position: number) => void;
match: (pattern: TokenPattern, consume?: Maybe<boolean>, caseFold?: Maybe<boolean>) => string[] | boolean;
backUp: (num: number) => void;
column: () => number;
indentation: () => number;
current: () => string;
}
export declare type GraphQLConfiguration = GraphQLProjectConfiguration & {
projects?: {
[projectName: string]: GraphQLProjectConfiguration;
};
};
export declare type GraphQLProjectConfiguration = {
name?: string;
schemaPath?: string;
includes?: string[];
excludes?: string[];
extensions?: GraphQLConfigurationExtension;
};
export declare type GraphQLConfigurationExtension = {
[name: string]: unknown;
};
import type { GraphQLConfig, GraphQLProjectConfig, GraphQLExtensionDeclaration } from 'graphql-config';
export type { GraphQLConfig, GraphQLProjectConfig, GraphQLExtensionDeclaration, };
export interface GraphQLCache {

@@ -57,3 +23,3 @@ getGraphQLConfig: () => GraphQLConfig;

}
export declare type Position = PositionType & {
export declare type Position = {
line: number;

@@ -72,30 +38,2 @@ character: number;

};
export declare type RuleOrString = Rule | string;
export declare type ParseRule = RuleOrString[] | ((token: Token, stream: CharacterStream) => string | null | void);
export declare type Token = {
kind: string;
value: string;
};
export declare type Rule = {
style?: string;
match?: (token: Token) => boolean;
update?: (state: State, token: Token) => void;
separator?: string | Rule;
isList?: boolean;
ofRule?: Rule | string;
};
export declare type RuleKind = KindEnum | 'AliasedField' | 'Arguments' | 'ShortQuery' | 'Query' | 'Mutation' | 'Subscription' | 'TypeCondition' | 'Invalid' | 'Comment' | 'SchemaDef' | 'ScalarDef' | 'ObjectTypeDef' | 'InterfaceDef' | 'UnionDef' | 'EnumDef' | 'FieldDef' | 'InputDef' | 'InputValueDef' | 'ArgumentsDef' | 'ExtendDef' | 'DirectiveDef';
export declare type State = {
level: number;
levels?: number[];
prevState: Maybe<State>;
rule: Maybe<ParseRule>;
kind: Maybe<RuleKind>;
name: Maybe<string>;
type: Maybe<string>;
step: number;
needsSeperator: boolean;
needsAdvance?: boolean;
indentLevel?: number;
};
export declare type Uri = string;

@@ -115,17 +53,2 @@ export declare type GraphQLFileMetadata = {

};
export declare type ContextToken = {
start: number;
end: number;
string: string;
state: State;
style: string;
};
export declare type ContextTokenForCodeMirror = {
start: number;
end: number;
string: string;
type: string | null;
state: State;
};
export declare type ContextTokenUnion = ContextToken | ContextTokenForCodeMirror;
export declare type AllTypeInfo = {

@@ -132,0 +55,0 @@ type: Maybe<GraphQLType>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const graphql_config_1 = require("graphql-config");
exports.GraphQLConfig = graphql_config_1.GraphQLConfig;
exports.GraphQLProjectConfig = graphql_config_1.GraphQLProjectConfig;
exports.FileChangeTypeKind = {

@@ -7,0 +4,0 @@ Created: 1,

@@ -1,43 +0,9 @@

import { Diagnostic as DiagnosticType, Position as PositionType, CompletionItem as CompletionItemType } from 'vscode-languageserver-protocol';
import { GraphQLSchema, KindEnum } from 'graphql';
import { ASTNode, DocumentNode, FragmentDefinitionNode, NamedTypeNode, TypeDefinitionNode, NameNode } from 'graphql/language';
import { GraphQLArgument, GraphQLEnumValue, GraphQLField, GraphQLInputFieldMap, GraphQLType } from 'graphql/type/definition';
import { GraphQLDirective } from 'graphql/type/directives';
import type { Diagnostic as DiagnosticType, CompletionItem as CompletionItemType } from 'vscode-languageserver-types';
import type { ASTNode, GraphQLSchema } from 'graphql';
import type { DocumentNode, FragmentDefinitionNode, NamedTypeNode, TypeDefinitionNode, NameNode } from 'graphql/language';
import type { GraphQLArgument, GraphQLEnumValue, GraphQLField, GraphQLInputFieldMap, GraphQLType } from 'graphql/type/definition';
import type { GraphQLDirective } from 'graphql/type/directives';
export declare type Maybe<T> = T | null | undefined;
export { GraphQLConfig, GraphQLProjectConfig };
import { GraphQLConfig, GraphQLProjectConfig } from 'graphql-config';
export declare type TokenPattern = string | ((char: string) => boolean) | RegExp;
export interface CharacterStream {
getStartOfToken: () => number;
getCurrentPosition: () => number;
eol: () => boolean;
sol: () => boolean;
peek: () => string | null;
next: () => string;
eat: (pattern: TokenPattern) => string | undefined;
eatWhile: (match: TokenPattern) => boolean;
eatSpace: () => boolean;
skipToEnd: () => void;
skipTo: (position: number) => void;
match: (pattern: TokenPattern, consume?: Maybe<boolean>, caseFold?: Maybe<boolean>) => string[] | boolean;
backUp: (num: number) => void;
column: () => number;
indentation: () => number;
current: () => string;
}
export declare type GraphQLConfiguration = GraphQLProjectConfiguration & {
projects?: {
[projectName: string]: GraphQLProjectConfiguration;
};
};
export declare type GraphQLProjectConfiguration = {
name?: string;
schemaPath?: string;
includes?: string[];
excludes?: string[];
extensions?: GraphQLConfigurationExtension;
};
export declare type GraphQLConfigurationExtension = {
[name: string]: unknown;
};
import type { GraphQLConfig, GraphQLProjectConfig, GraphQLExtensionDeclaration } from 'graphql-config';
export type { GraphQLConfig, GraphQLProjectConfig, GraphQLExtensionDeclaration, };
export interface GraphQLCache {

@@ -57,3 +23,3 @@ getGraphQLConfig: () => GraphQLConfig;

}
export declare type Position = PositionType & {
export declare type Position = {
line: number;

@@ -72,30 +38,2 @@ character: number;

};
export declare type RuleOrString = Rule | string;
export declare type ParseRule = RuleOrString[] | ((token: Token, stream: CharacterStream) => string | null | void);
export declare type Token = {
kind: string;
value: string;
};
export declare type Rule = {
style?: string;
match?: (token: Token) => boolean;
update?: (state: State, token: Token) => void;
separator?: string | Rule;
isList?: boolean;
ofRule?: Rule | string;
};
export declare type RuleKind = KindEnum | 'AliasedField' | 'Arguments' | 'ShortQuery' | 'Query' | 'Mutation' | 'Subscription' | 'TypeCondition' | 'Invalid' | 'Comment' | 'SchemaDef' | 'ScalarDef' | 'ObjectTypeDef' | 'InterfaceDef' | 'UnionDef' | 'EnumDef' | 'FieldDef' | 'InputDef' | 'InputValueDef' | 'ArgumentsDef' | 'ExtendDef' | 'DirectiveDef';
export declare type State = {
level: number;
levels?: number[];
prevState: Maybe<State>;
rule: Maybe<ParseRule>;
kind: Maybe<RuleKind>;
name: Maybe<string>;
type: Maybe<string>;
step: number;
needsSeperator: boolean;
needsAdvance?: boolean;
indentLevel?: number;
};
export declare type Uri = string;

@@ -115,17 +53,2 @@ export declare type GraphQLFileMetadata = {

};
export declare type ContextToken = {
start: number;
end: number;
string: string;
state: State;
style: string;
};
export declare type ContextTokenForCodeMirror = {
start: number;
end: number;
string: string;
type: string | null;
state: State;
};
export declare type ContextTokenUnion = ContextToken | ContextTokenForCodeMirror;
export declare type AllTypeInfo = {

@@ -132,0 +55,0 @@ type: Maybe<GraphQLType>;

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

export { GraphQLConfig, GraphQLProjectConfig };
import { GraphQLConfig, GraphQLProjectConfig } from 'graphql-config';
export const FileChangeTypeKind = {

@@ -4,0 +2,0 @@ Created: 1,

{
"name": "graphql-language-service-types",
"version": "1.6.0-alpha.5",
"version": "1.6.0-alpha.6",
"description": "Types for building GraphQL language services for IDEs",

@@ -33,3 +33,3 @@ "contributors": [

},
"gitHead": "b8f9af6a35ce599d381c77ace06a239144618680"
"gitHead": "ce926bb7ab1e6fbf978ec53a0449c33869073c7d"
}

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