Socket
Socket
Sign inDemoInstall

@graphql-tools/utils

Package Overview
Dependencies
Maintainers
0
Versions
1273
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-tools/utils - npm Package Compare versions

Comparing version 10.4.0-rc-20240811225323-321cd80afe0915b627cb853227633b1e1c2e9a82 to 10.4.0-rc-20240811232600-9b06170cff247148838e24f0a1412a2172b2459e

7

cjs/getDirectiveExtensions.js

@@ -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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc