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-20240702150657-b50b1dda80c0083a63896cdbfd42efdcdf4c0b98 to 2.0.0-alpha-20240702193427-1ce4b1efdef732d2635b657df6273a975a19d217

5

cjs/execution/execute.js

@@ -765,3 +765,6 @@ "use strict";

if ((0, graphql_1.isObjectType)(runtimeTypeName)) {
throw (0, utils_1.createGraphQLError)('Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.');
if (graphql_1.versionInfo.major >= 16) {
throw (0, utils_1.createGraphQLError)('Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.');
}
runtimeTypeName = runtimeTypeName.name;
}

@@ -768,0 +771,0 @@ if (typeof runtimeTypeName !== 'string') {

3

cjs/execution/IncrementalGraph.js

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

const invariant_js_1 = require("./invariant.js");
const promiseWithResolvers_js_1 = require("./promiseWithResolvers.js");
const types_js_1 = require("./types.js");

@@ -51,3 +50,3 @@ /**

}
const { promise, resolve } = (0, promiseWithResolvers_js_1.promiseWithResolvers)();
const { promise, resolve } = (0, utils_1.createDeferred)();
this._nextQueue.push(resolve);

@@ -54,0 +53,0 @@ return promise;

@@ -75,3 +75,3 @@ "use strict";

nodes: varDefNode,
originalError: error.originalError,
originalError: error,
}));

@@ -78,0 +78,0 @@ });

@@ -1,2 +0,2 @@

import { assertValidSchema, getDirectiveValues, GraphQLError, isAbstractType, isLeafType, isListType, isNonNullType, isObjectType, Kind, locatedError, SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef, } from 'graphql';
import { assertValidSchema, getDirectiveValues, GraphQLError, isAbstractType, isLeafType, isListType, isNonNullType, isObjectType, Kind, locatedError, SchemaMetaFieldDef, TypeMetaFieldDef, TypeNameMetaFieldDef, versionInfo, } from 'graphql';
import { addPath, createGraphQLError, getArgumentValues, getDefinedRootType, GraphQLStreamDirective, inspect, isAsyncIterable, isIterableObject, isObjectLike, isPromise, mapAsyncIterator, memoize1, memoize3, pathToArray, promiseReduce, } from '@graphql-tools/utils';

@@ -757,3 +757,6 @@ import { BoxedPromiseOrValue } from './BoxedPromiseOrValue.js';

if (isObjectType(runtimeTypeName)) {
throw createGraphQLError('Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.');
if (versionInfo.major >= 16) {
throw createGraphQLError('Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.');
}
runtimeTypeName = runtimeTypeName.name;
}

@@ -760,0 +763,0 @@ if (typeof runtimeTypeName !== 'string') {

@@ -1,5 +0,4 @@

import { isPromise } from '@graphql-tools/utils';
import { createDeferred, isPromise } from '@graphql-tools/utils';
import { BoxedPromiseOrValue } from './BoxedPromiseOrValue.js';
import { invariant } from './invariant.js';
import { promiseWithResolvers } from './promiseWithResolvers.js';
import { isDeferredFragmentRecord, isDeferredGroupedFieldSetRecord } from './types.js';

@@ -47,3 +46,3 @@ /**

}
const { promise, resolve } = promiseWithResolvers();
const { promise, resolve } = createDeferred();
this._nextQueue.push(resolve);

@@ -50,0 +49,0 @@ return promise;

@@ -71,3 +71,3 @@ import { coerceInputValue, isInputType, isNonNullType, print, typeFromAST, valueFromAST, } from 'graphql';

nodes: varDefNode,
originalError: error.originalError,
originalError: error,
}));

@@ -74,0 +74,0 @@ });

{
"name": "@graphql-tools/executor",
"version": "2.0.0-alpha-20240702150657-b50b1dda80c0083a63896cdbfd42efdcdf4c0b98",
"version": "2.0.0-alpha-20240702193427-1ce4b1efdef732d2635b657df6273a975a19d217",
"sideEffects": false,

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

"dependencies": {
"@graphql-tools/utils": "10.3.0-alpha-20240702150657-b50b1dda80c0083a63896cdbfd42efdcdf4c0b98",
"@graphql-tools/utils": "10.3.0-alpha-20240702193427-1ce4b1efdef732d2635b657df6273a975a19d217",
"@graphql-typed-document-node/core": "3.2.0",

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

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