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 1.2.7-alpha-20240619190959-244270581fa4f13efdc1b28b09cc98185189df0e to 1.2.7-alpha-20240619191149-cd1ab96503149b7ed7feaeae653872e1579a89ca

4

cjs/execution/execute.js

@@ -623,3 +623,7 @@ "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)) {
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;

@@ -626,0 +630,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 { ValueOrPromise } from 'value-or-promise';

@@ -615,3 +615,7 @@ import { collectSubFields as _collectSubfields, addPath, collectFields, createGraphQLError, getArgumentValues, getDefinedRootType, GraphQLStreamDirective, inspect, isAsyncIterable, isIterableObject, isObjectLike, isPromise, mapAsyncIterator, memoize1, memoize3, pathToArray, promiseReduce, } from '@graphql-tools/utils';

// releases before 16.0.0 supported returning `GraphQLObjectType` from `resolveType`
// TODO: remove in 17.0.0 release
if (isObjectType(runtimeTypeName)) {
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;

@@ -618,0 +622,0 @@ }

2

package.json
{
"name": "@graphql-tools/executor",
"version": "1.2.7-alpha-20240619190959-244270581fa4f13efdc1b28b09cc98185189df0e",
"version": "1.2.7-alpha-20240619191149-cd1ab96503149b7ed7feaeae653872e1579a89ca",
"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