Socket
Socket
Sign inDemoInstall

codemirror-graphql

Package Overview
Dependencies
4
Maintainers
1
Versions
241
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

7

hint.js

@@ -59,3 +59,3 @@ /**

if (kind === 'Document') {
return hintList(editor, options, cur, token, [{ text: 'query' }, { text: 'mutation' }, { text: 'fragment' }, { text: '{' }]);
return hintList(editor, options, cur, token, [{ text: 'query' }, { text: 'mutation' }, { text: 'subscription' }, { text: 'fragment' }, { text: '{' }]);
}

@@ -177,3 +177,3 @@

var directives = schema.getDirectives().filter(function (directive) {
return directive.onField && state.prevState.kind === 'Field' || directive.onFragment && (state.prevState.kind === 'FragmentDefinition' || state.prevState.kind === 'InlineFragment' || state.prevState.kind === 'FragmentSpread') || directive.onOperation && (state.prevState.kind === 'Query' || state.prevState.kind === 'Mutation');
return directive.onField && state.prevState.kind === 'Field' || directive.onFragment && (state.prevState.kind === 'FragmentDefinition' || state.prevState.kind === 'InlineFragment' || state.prevState.kind === 'FragmentSpread') || directive.onOperation && (state.prevState.kind === 'Query' || state.prevState.kind === 'Mutation' || state.prevState.kind === 'Subscription');
});

@@ -211,2 +211,5 @@ return hintList(editor, options, cur, token, directives.map(function (directive) {

break;
case 'Subscription':
info.type = schema.getSubscriptionType();
break;
case 'InlineFragment':

@@ -213,0 +216,0 @@ case 'FragmentDefinition':

@@ -331,2 +331,4 @@ /**

return 'Mutation';
case 'subscription':
return 'Subscription';
case 'fragment':

@@ -342,2 +344,3 @@ return 'FragmentDefinition';

Mutation: [word('mutation'), opt(name('def')), opt('VariableDefinitions'), list('Directive'), 'SelectionSet'],
Subscription: [word('subscription'), opt(name('def')), opt('VariableDefinitions'), list('Directive'), 'SelectionSet'],
VariableDefinitions: [p('('), list('VariableDefinition'), p(')')],

@@ -344,0 +347,0 @@ VariableDefinition: ['Variable', p(':'), 'Type', opt('DefaultValue')],

{
"name": "codemirror-graphql",
"version": "0.2.0",
"version": "0.2.1",
"description": "GraphQL mode and helpers for CodeMirror.",

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

"peerDependencies": {
"graphql": "^0.4.7",
"graphql": "^0.4.8",
"codemirror": "^5.6.0"

@@ -62,3 +62,3 @@ },

"flow-bin": "0.16.0",
"graphql": "0.4.7",
"graphql": "0.4.8",
"jsdom": "6.5.1",

@@ -65,0 +65,0 @@ "mocha": "2.2.5",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc