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

@graphql-tools/executor

Package Overview
Dependencies
Maintainers
3
Versions
343
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-tools/executor - npm Package Compare versions

Comparing version 2.0.0-alpha-20240806151613-ec8ecec67a150b8b6e117cb473fb248e6cb92f47 to 2.0.0-alpha-20240808024617-ce2a11c8e367fb077059f28163c7d22edbcefde2

10

esm/execution/execute.js

@@ -5,5 +5,5 @@ import { assertValidSchema, getDirectiveValues, GraphQLError, isAbstractType, isLeafType, isListType, isNonNullType, isObjectType, Kind, locatedError, SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef, versionInfo, } from 'graphql';

import { BoxedPromiseOrValue } from './BoxedPromiseOrValue.js';
import { buildBranchingExecutionPlan, buildExecutionPlan, } from './buildExecutionPlan.js';
import { buildBranchingExecutionPlan, buildExecutionPlan } from './buildExecutionPlan.js';
import { coerceError } from './coerceError.js';
import { collectSubfields as _collectSubfields, collectFields, } from './collectFields.js';
import { collectSubfields as _collectSubfields, collectFields } from './collectFields.js';
import { flattenAsyncIterable } from './flattenAsyncIterable.js';

@@ -13,3 +13,3 @@ import { buildIncrementalResponse } from './IncrementalPublisher.js';

import { promiseForObject } from './promiseForObject.js';
import { DeferredFragmentRecord, } from './types.js';
import { DeferredFragmentRecord } from './types.js';
import { getVariableValues } from './values.js';

@@ -222,2 +222,4 @@ /**

errors: undefined,
cancellableStreams: undefined,
incrementalDataRecords: undefined,
};

@@ -1030,3 +1032,3 @@ }

// "ExecuteQuery" algorithm, for which `execute` is also used.
return flattenAsyncIterable(mapAsyncIterator(resultOrStream[Symbol.asyncIterator](), async (payload) => ensureAsyncIterable(await executeOperation(buildPerEventExecutionContext(exeContext, payload))), (error) => {
return flattenAsyncIterable(mapAsyncIterator(resultOrStream, async (payload) => ensureAsyncIterable(await executeOperation(buildPerEventExecutionContext(exeContext, payload))), (error) => {
if (error instanceof AggregateError) {

@@ -1033,0 +1035,0 @@ throw new AggregateError(error.errors.map(e => wrapError(e, exeContext.operation)), error.message);

4

package.json
{
"name": "@graphql-tools/executor",
"version": "2.0.0-alpha-20240806151613-ec8ecec67a150b8b6e117cb473fb248e6cb92f47",
"version": "2.0.0-alpha-20240808024617-ce2a11c8e367fb077059f28163c7d22edbcefde2",
"sideEffects": false,

@@ -9,3 +9,3 @@ "peerDependencies": {

"dependencies": {
"@graphql-tools/utils": "10.4.0-alpha-20240806151613-ec8ecec67a150b8b6e117cb473fb248e6cb92f47",
"@graphql-tools/utils": "10.4.0-alpha-20240808024617-ce2a11c8e367fb077059f28163c7d22edbcefde2",
"@graphql-typed-document-node/core": "3.2.0",

@@ -12,0 +12,0 @@ "@repeaterjs/repeater": "^3.0.4",

@@ -5,3 +5,3 @@ import { DocumentNode, FieldNode, FragmentDefinitionNode, GraphQLError, GraphQLField, GraphQLFieldResolver, GraphQLObjectType, GraphQLResolveInfo, GraphQLSchema, GraphQLTypeResolver, OperationDefinitionNode } from 'graphql';

import { AccumulatorMap } from './AccumulatorMap.js';
import { CancellableStreamRecord, IncrementalDataRecord, IncrementalExecutionResults, InitialIncrementalExecutionResult, SingularExecutionResult, SubsequentIncrementalExecutionResult } from './types.js';
import type { CancellableStreamRecord, IncrementalDataRecord, IncrementalExecutionResults, InitialIncrementalExecutionResult, SingularExecutionResult, SubsequentIncrementalExecutionResult } from './types.js';
/**

@@ -8,0 +8,0 @@ * Terminology

Sorry, the diff of this file is too big to display

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