Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@graphql-tools/merge

Package Overview
Dependencies
Maintainers
3
Versions
1119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-tools/merge - npm Package Compare versions

Comparing version 9.0.6 to 9.0.7-rc-20240829161457-b6c4c6cb7c5f30b5497436c6d71b8a3b9b9547bd

6

cjs/typedefs-mergers/merge-nodes.js

@@ -5,3 +5,2 @@ "use strict";

const graphql_1 = require("graphql");
const ast_js_1 = require("graphql/language/ast.js");
const utils_1 = require("@graphql-tools/utils");

@@ -65,3 +64,3 @@ const directives_js_1 = require("./directives.js");

if (isInheritedFromPrototype) {
if (!(0, ast_js_1.isNode)(mergedResultMap[name])) {
if (!isASTNode(mergedResultMap[name])) {
mergedResultMap[name] = undefined;

@@ -84,1 +83,4 @@ }

exports.mergeGraphQLNodes = mergeGraphQLNodes;
function isASTNode(node) {
return (node != null && typeof node === 'object' && 'kind' in node && typeof node.kind === 'string');
}
import { Kind, } from 'graphql';
import { isNode } from 'graphql/language/ast.js';
import { collectComment } from '@graphql-tools/utils';

@@ -60,3 +59,3 @@ import { mergeDirective } from './directives.js';

if (isInheritedFromPrototype) {
if (!isNode(mergedResultMap[name])) {
if (!isASTNode(mergedResultMap[name])) {
mergedResultMap[name] = undefined;

@@ -78,1 +77,4 @@ }

}
function isASTNode(node) {
return (node != null && typeof node === 'object' && 'kind' in node && typeof node.kind === 'string');
}
{
"name": "@graphql-tools/merge",
"version": "9.0.6",
"version": "9.0.7-rc-20240829161457-b6c4c6cb7c5f30b5497436c6d71b8a3b9b9547bd",
"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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc