@graphql-tools/wrap
Advanced tools
Comparing version 10.0.3 to 10.0.4-rc-20240312140744-2c0be85897561fc52ce180f5b22d693008e1b294
@@ -99,3 +99,9 @@ "use strict"; | ||
else { | ||
const newValueNode = (0, graphql_1.astFromValue)(transformedValue, argType); | ||
let newValueNode; | ||
try { | ||
newValueNode = (0, graphql_1.astFromValue)(transformedValue, argType); | ||
} | ||
catch (e) { | ||
newValueNode = (0, utils_1.astFromValueUntyped)(transformedValue); | ||
} | ||
if (newValueNode != null) { | ||
@@ -102,0 +108,0 @@ argumentNodeMap[argName] = { |
import { astFromValue, isLeafType, Kind, TypeInfo, valueFromAST, valueFromASTUntyped, visit, visitWithTypeInfo, } from 'graphql'; | ||
import { transformInputValue, visitResult, } from '@graphql-tools/utils'; | ||
import { astFromValueUntyped, transformInputValue, visitResult, } from '@graphql-tools/utils'; | ||
export default class MapLeafValues { | ||
@@ -97,3 +97,9 @@ constructor(inputValueTransformer, outputValueTransformer) { | ||
else { | ||
const newValueNode = astFromValue(transformedValue, argType); | ||
let newValueNode; | ||
try { | ||
newValueNode = astFromValue(transformedValue, argType); | ||
} | ||
catch (e) { | ||
newValueNode = astFromValueUntyped(transformedValue); | ||
} | ||
if (newValueNode != null) { | ||
@@ -100,0 +106,0 @@ argumentNodeMap[argName] = { |
{ | ||
"name": "@graphql-tools/wrap", | ||
"version": "10.0.3", | ||
"version": "10.0.4-rc-20240312140744-2c0be85897561fc52ce180f5b22d693008e1b294", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
279615
4826
2