graphql-language-service
Advanced tools
Comparing version 5.2.2 to 5.3.0
@@ -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; |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
827949
15718