@graphql-tools/utils 8.6.3 → 8.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +16 -2
  2. package/index.mjs +16 -2
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -2369,10 +2369,24 @@ function transformInputValue(type, value, inputLeafValueTransformer = null, inpu
2369
2369
  // unreachable, no other possible return value
2370
2370
  }
2371
2371
  function serializeInputValue(type, value) {
2372
- return transformInputValue(type, value, (t, v) => t.serialize(v));
2372
+ return transformInputValue(type, value, (t, v) => {
2373
+ try {
2374
+ return t.serialize(v);
2375
+ }
2376
+ catch (_a) {
2377
+ return v;
2378
+ }
2379
+ });
2373
2380
  }
2374
2381
  function parseInputValue(type, value) {
2375
- return transformInputValue(type, value, (t, v) => t.parseValue(v));
2382
+ return transformInputValue(type, value, (t, v) => {
2383
+ try {
2384
+ return t.parseValue(v);
2385
+ }
2386
+ catch (_a) {
2387
+ return v;
2388
+ }
2389
+ });
2376
2390
  }
2377
2391
  function parseInputValueLiteral(type, value) {
2378
2392
  return transformInputValue(type, value, (t, v) => t.parseLiteral(v, {}));
package/index.mjs CHANGED
@@ -2367,10 +2367,24 @@ function transformInputValue(type, value, inputLeafValueTransformer = null, inpu
2367
2367
  // unreachable, no other possible return value
2368
2368
  }
2369
2369
  function serializeInputValue(type, value) {
2370
- return transformInputValue(type, value, (t, v) => t.serialize(v));
2370
+ return transformInputValue(type, value, (t, v) => {
2371
+ try {
2372
+ return t.serialize(v);
2373
+ }
2374
+ catch (_a) {
2375
+ return v;
2376
+ }
2377
+ });
2371
2378
  }
2372
2379
  function parseInputValue(type, value) {
2373
- return transformInputValue(type, value, (t, v) => t.parseValue(v));
2380
+ return transformInputValue(type, value, (t, v) => {
2381
+ try {
2382
+ return t.parseValue(v);
2383
+ }
2384
+ catch (_a) {
2385
+ return v;
2386
+ }
2387
+ });
2374
2388
  }
2375
2389
  function parseInputValueLiteral(type, value) {
2376
2390
  return transformInputValue(type, value, (t, v) => t.parseLiteral(v, {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-tools/utils",
3
- "version": "8.6.3",
3
+ "version": "8.6.4",
4
4
  "description": "Common package containing utils and types for GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {