Socket
Socket
Sign inDemoInstall

@graphql-tools/utils

Package Overview
Dependencies
Maintainers
3
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.3.0-alpha-20240606221026-cd2a4fabe51906319f8dc07745f98f37ffbcbdee to 10.3.0-alpha-20240606224953-6d3be8381f7a6b24f2793457d1f05f89f1ae953a

25

cjs/mergeIncrementalResult.js

@@ -13,19 +13,10 @@ "use strict";

];
if (incrementalResult.pending) {
let paths = pathsMap.get(executionResult);
if (paths === undefined) {
paths = new Map();
pathsMap.set(executionResult, paths);
}
for (const { id, path } of incrementalResult.pending) {
paths.set(id, ['data', ...path]);
}
}
if (incrementalResult.pending) {
const paths = pathsMap.get(executionResult);
for (const { id, path } of incrementalResult.pending) {
if (id !== undefined) {
if (paths === undefined) {
throw new Error('Invalid incremental delivery format.');
}
for (const result of [executionResult, incrementalResult]) {
if (result.pending) {
let paths = pathsMap.get(executionResult);
if (paths === undefined) {
paths = new Map();
pathsMap.set(executionResult, paths);
}
for (const { id, path } of result.pending) {
paths.set(id, ['data', ...path]);

@@ -32,0 +23,0 @@ }

@@ -9,19 +9,10 @@ import dlv from 'dlv';

];
if (incrementalResult.pending) {
let paths = pathsMap.get(executionResult);
if (paths === undefined) {
paths = new Map();
pathsMap.set(executionResult, paths);
}
for (const { id, path } of incrementalResult.pending) {
paths.set(id, ['data', ...path]);
}
}
if (incrementalResult.pending) {
const paths = pathsMap.get(executionResult);
for (const { id, path } of incrementalResult.pending) {
if (id !== undefined) {
if (paths === undefined) {
throw new Error('Invalid incremental delivery format.');
}
for (const result of [executionResult, incrementalResult]) {
if (result.pending) {
let paths = pathsMap.get(executionResult);
if (paths === undefined) {
paths = new Map();
pathsMap.set(executionResult, paths);
}
for (const { id, path } of result.pending) {
paths.set(id, ['data', ...path]);

@@ -28,0 +19,0 @@ }

{
"name": "@graphql-tools/utils",
"version": "10.3.0-alpha-20240606221026-cd2a4fabe51906319f8dc07745f98f37ffbcbdee",
"version": "10.3.0-alpha-20240606224953-6d3be8381f7a6b24f2793457d1f05f89f1ae953a",
"description": "Common package containing utils and types for 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