Socket
Socket
Sign inDemoInstall

@graphql-tools/executor

Package Overview
Dependencies
Maintainers
3
Versions
337
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 1.2.6 to 1.2.7-alpha-20240619190959-244270581fa4f13efdc1b28b09cc98185189df0e

25

cjs/execution/execute.js

@@ -623,5 +623,4 @@ "use strict";

// releases before 16.0.0 supported returning `GraphQLObjectType` from `resolveType`
// TODO: remove in 17.0.0 release
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.');
runtimeTypeName = runtimeTypeName.name;
}

@@ -1212,2 +1211,12 @@ if (typeof runtimeTypeName !== 'string') {

class DeferredFragmentRecord {
type;
errors;
label;
path;
promise;
data;
parentContext;
isCompleted;
_exeContext;
_resolve;
constructor(opts) {

@@ -1242,2 +1251,14 @@ this.type = 'defer';

class StreamRecord {
type;
errors;
label;
path;
items;
promise;
parentContext;
iterator;
isCompletedIterator;
isCompleted;
_exeContext;
_resolve;
constructor(opts) {

@@ -1244,0 +1265,0 @@ this.type = 'stream';

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

// releases before 16.0.0 supported returning `GraphQLObjectType` from `resolveType`
// TODO: remove in 17.0.0 release
if (isObjectType(runtimeTypeName)) {
throw createGraphQLError('Support for returning GraphQLObjectType from resolveType was removed in graphql-js@16.0.0 please return type name instead.');
runtimeTypeName = runtimeTypeName.name;
}

@@ -1200,2 +1199,12 @@ if (typeof runtimeTypeName !== 'string') {

class DeferredFragmentRecord {
type;
errors;
label;
path;
promise;
data;
parentContext;
isCompleted;
_exeContext;
_resolve;
constructor(opts) {

@@ -1230,2 +1239,14 @@ this.type = 'defer';

class StreamRecord {
type;
errors;
label;
path;
items;
promise;
parentContext;
iterator;
isCompletedIterator;
isCompleted;
_exeContext;
_resolve;
constructor(opts) {

@@ -1232,0 +1253,0 @@ this.type = 'stream';

2

package.json
{
"name": "@graphql-tools/executor",
"version": "1.2.6",
"version": "1.2.7-alpha-20240619190959-244270581fa4f13efdc1b28b09cc98185189df0e",
"sideEffects": false,

@@ -5,0 +5,0 @@ "peerDependencies": {

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