@graphql-tools/utils
Advanced tools
Comparing version 10.4.0-rc-20240811225323-321cd80afe0915b627cb853227633b1e1c2e9a82 to 10.4.0-rc-20240811232600-9b06170cff247148838e24f0a1412a2172b2459e
@@ -27,8 +27,9 @@ "use strict"; | ||
if (argInDirective) { | ||
// @ts-expect-error valueFromASTUntyped is not typed correctly | ||
value[argName] = (0, graphql_1.valueFromAST)(argNode.value, argInDirective.type); | ||
try { | ||
value[argName] = (0, graphql_1.valueFromAST)(argNode.value, argInDirective.type); | ||
} | ||
catch (e) { } | ||
} | ||
} | ||
if (value[argName] == null) { | ||
// @ts-expect-error valueFromASTUntyped is not typed correctly | ||
value[argName] = (0, graphql_1.valueFromASTUntyped)(argNode.value); | ||
@@ -35,0 +36,0 @@ } |
@@ -24,8 +24,9 @@ import { valueFromAST, valueFromASTUntyped } from 'graphql'; | ||
if (argInDirective) { | ||
// @ts-expect-error valueFromASTUntyped is not typed correctly | ||
value[argName] = valueFromAST(argNode.value, argInDirective.type); | ||
try { | ||
value[argName] = valueFromAST(argNode.value, argInDirective.type); | ||
} | ||
catch (e) { } | ||
} | ||
} | ||
if (value[argName] == null) { | ||
// @ts-expect-error valueFromASTUntyped is not typed correctly | ||
value[argName] = valueFromASTUntyped(argNode.value); | ||
@@ -32,0 +33,0 @@ } |
{ | ||
"name": "@graphql-tools/utils", | ||
"version": "10.4.0-rc-20240811225323-321cd80afe0915b627cb853227633b1e1c2e9a82", | ||
"version": "10.4.0-rc-20240811232600-9b06170cff247148838e24f0a1412a2172b2459e", | ||
"description": "Common package containing utils and types for GraphQL tools", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
@@ -1,4 +0,4 @@ | ||
import type { ASTNode, ConstDirectiveNode, GraphQLSchema } from 'graphql'; | ||
import type { ASTNode, DirectiveNode, GraphQLSchema } from 'graphql'; | ||
export type DirectableASTNode = ASTNode & { | ||
directives?: readonly ConstDirectiveNode[]; | ||
directives?: readonly DirectiveNode[]; | ||
}; | ||
@@ -5,0 +5,0 @@ export type DirectableObject = { |
Sorry, the diff of this file is not supported yet
10950
508500