Socket
Socket
Sign inDemoInstall

graphql-language-service

Package Overview
Dependencies
Maintainers
14
Versions
241
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-language-service - npm Package Compare versions

Comparing version 5.2.2 to 5.3.0

3

dist/parser/types.d.ts

@@ -116,2 +116,5 @@ import { Kind } from 'graphql';

ARGUMENT: Kind.ARGUMENT;
LIST_NULLABILITY_OPERATOR: Kind.LIST_NULLABILITY_OPERATOR;
NON_NULL_ASSERTION: Kind.NON_NULL_ASSERTION;
ERROR_BOUNDARY: Kind.ERROR_BOUNDARY;
FRAGMENT_SPREAD: Kind.FRAGMENT_SPREAD;

@@ -118,0 +121,0 @@ INLINE_FRAGMENT: Kind.INLINE_FRAGMENT;

@@ -116,2 +116,5 @@ import { Kind } from 'graphql';

ARGUMENT: Kind.ARGUMENT;
LIST_NULLABILITY_OPERATOR: Kind.LIST_NULLABILITY_OPERATOR;
NON_NULL_ASSERTION: Kind.NON_NULL_ASSERTION;
ERROR_BOUNDARY: Kind.ERROR_BOUNDARY;
FRAGMENT_SPREAD: Kind.FRAGMENT_SPREAD;

@@ -118,0 +121,0 @@ INLINE_FRAGMENT: Kind.INLINE_FRAGMENT;

6

package.json
{
"name": "graphql-language-service",
"version": "5.2.2",
"version": "5.3.0",
"description": "The official, runtime independent Language Service for GraphQL",

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

"peerDependencies": {
"graphql": "^15.5.0 || ^16.0.0"
"graphql": "^15.5.0 || ^16.0.0 || ^17.0.0-alpha.2"
},

@@ -49,3 +49,3 @@ "dependencies": {

"benchmark": "^2.1.4",
"graphql": "^16.8.1",
"graphql": "^17.0.0-alpha.5",
"graphql-config": "5.0.3",

@@ -52,0 +52,0 @@ "lodash": "^4.17.15",

@@ -20,2 +20,3 @@ /**

FragmentDefinitionNode,
version,
} from 'graphql';

@@ -91,3 +92,9 @@ import path from 'node:path';

validationContext.reportError(
new GraphQLError('This is a custom error.', definition),
new GraphQLError(
'This is a custom error.',
// @ts-expect-error
parseInt(version, 10) > 16
? { nodes: definition }
: definition,
),
);

@@ -163,3 +170,9 @@ }

if (node.operation === 'query') {
context.reportError(new GraphQLError('No query allowed.', node.name));
context.reportError(
new GraphQLError(
'No query allowed.',
// @ts-expect-error
parseInt(version, 10) > 16 ? { nodes: node } : node,
),
);
}

@@ -166,0 +179,0 @@ },

@@ -17,2 +17,3 @@ /**

ArgumentNode,
version,
} from 'graphql';

@@ -41,3 +42,4 @@ import { join } from 'node:path';

'Argument ID must be a number written in string type.',
[node],
// @ts-expect-error
parseInt(version, 10) > 16 ? { nodes: node } : node,
),

@@ -44,0 +46,0 @@ );

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