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

codemirror-graphql

Package Overview
Dependencies
Maintainers
11
Versions
249
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

codemirror-graphql - npm Package Compare versions

Comparing version 2.0.13 to 2.1.0

8

package.json
{
"name": "codemirror-graphql",
"version": "2.0.13",
"version": "2.1.0",
"description": "GraphQL mode and helpers for CodeMirror.",

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

"codemirror": "^5.65.3",
"graphql": "^15.5.0 || ^16.0.0"
"graphql": "^15.5.0 || ^16.0.0 || ^17.0.0-alpha.2"
},

@@ -49,3 +49,3 @@ "// TEMPORARILY PINNED until we fix graphql 15 support": "",

"@types/codemirror": "^0.0.90",
"graphql-language-service": "5.2.2"
"graphql-language-service": "5.3.0"
},

@@ -56,3 +56,3 @@ "devDependencies": {

"cross-env": "^7.0.2",
"graphql": "^16.8.1",
"graphql": "^17.0.0-alpha.5",
"rimraf": "^3.0.2",

@@ -59,0 +59,0 @@ "sane": "2.0.0"

@@ -14,3 +14,3 @@ /**

import { join } from 'node:path';
import { GraphQLError, OperationDefinitionNode } from 'graphql';
import { GraphQLError, OperationDefinitionNode, version } from 'graphql';
import '../lint';

@@ -65,3 +65,9 @@ import '../mode';

if (node.operation === 'mutation') {
context.reportError(new GraphQLError('I like turtles.', node));
context.reportError(
new GraphQLError(
'I like turtles.',
// @ts-expect-error
parseInt(version, 10) > 16 ? { nodes: node } : node,
),
);
}

@@ -68,0 +74,0 @@ return false;

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