Socket
Socket
Sign inDemoInstall

@graphql-tools/wrap

Package Overview
Dependencies
14
Maintainers
3
Versions
1301
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 10.0.3 to 10.0.4-rc-20240312140744-2c0be85897561fc52ce180f5b22d693008e1b294

8

cjs/transforms/MapLeafValues.js

@@ -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] = {

10

esm/transforms/MapLeafValues.js
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,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc