@graphql-tools/delegate 8.4.4-alpha-b935d9b2.0 → 8.4.4-alpha-85817943.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +1 -3
  2. package/index.mjs +2 -4
  3. package/package.json +4 -5
package/index.js CHANGED
@@ -4,7 +4,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const graphql = require('graphql');
6
6
  const utils = require('@graphql-tools/utils');
7
- const graphqlExecutor = require('graphql-executor');
8
7
  const valueOrPromise = require('value-or-promise');
9
8
  const batchExecute = require('@graphql-tools/batch-execute');
10
9
 
@@ -1263,7 +1262,6 @@ function getExecutor(delegationContext) {
1263
1262
  return executor;
1264
1263
  }
1265
1264
  const createDefaultExecutor = utils.memoize1(function createDefaultExecutor(schema) {
1266
- const executor = new graphqlExecutor.Executor({ schema });
1267
1265
  return function defaultExecutor(request) {
1268
1266
  const operationAst = utils.getOperationASTFromRequest(request);
1269
1267
  const executionArgs = {
@@ -1277,7 +1275,7 @@ const createDefaultExecutor = utils.memoize1(function createDefaultExecutor(sche
1277
1275
  if (operationAst.operation === 'subscription') {
1278
1276
  return graphql.subscribe(executionArgs);
1279
1277
  }
1280
- return executor.execute(executionArgs);
1278
+ return graphql.execute(executionArgs);
1281
1279
  };
1282
1280
  });
1283
1281
 
package/index.mjs CHANGED
@@ -1,6 +1,5 @@
1
- import { Kind, isAbstractType, isInterfaceType, TypeInfo, visit, visitWithTypeInfo, getNamedType, isObjectType, versionInfo, TypeNameMetaFieldDef, responsePathAsArray, GraphQLError, locatedError, getNullableType, isCompositeType, isListType, typeFromAST, defaultFieldResolver, validate, subscribe } from 'graphql';
1
+ import { Kind, isAbstractType, isInterfaceType, TypeInfo, visit, visitWithTypeInfo, getNamedType, isObjectType, versionInfo, TypeNameMetaFieldDef, responsePathAsArray, GraphQLError, locatedError, getNullableType, isCompositeType, isListType, typeFromAST, defaultFieldResolver, validate, subscribe, execute } from 'graphql';
2
2
  import { memoize2, implementsAbstractType, getRootTypeNames, getDefinedRootType, createVariableNameGenerator, updateArgument, serializeInputValue, inspect, collectFields, relocatedError, AggregateError, getResponseKeyFromInfo, isAsyncIterable, mapAsyncIterator, getOperationASTFromRequest, memoize1 } from '@graphql-tools/utils';
3
- import { Executor } from 'graphql-executor';
4
3
  import { ValueOrPromise } from 'value-or-promise';
5
4
  import { getBatchingExecutor } from '@graphql-tools/batch-execute';
6
5
 
@@ -1259,7 +1258,6 @@ function getExecutor(delegationContext) {
1259
1258
  return executor;
1260
1259
  }
1261
1260
  const createDefaultExecutor = memoize1(function createDefaultExecutor(schema) {
1262
- const executor = new Executor({ schema });
1263
1261
  return function defaultExecutor(request) {
1264
1262
  const operationAst = getOperationASTFromRequest(request);
1265
1263
  const executionArgs = {
@@ -1273,7 +1271,7 @@ const createDefaultExecutor = memoize1(function createDefaultExecutor(schema) {
1273
1271
  if (operationAst.operation === 'subscription') {
1274
1272
  return subscribe(executionArgs);
1275
1273
  }
1276
- return executor.execute(executionArgs);
1274
+ return execute(executionArgs);
1277
1275
  };
1278
1276
  });
1279
1277
 
package/package.json CHANGED
@@ -1,17 +1,16 @@
1
1
  {
2
2
  "name": "@graphql-tools/delegate",
3
- "version": "8.4.4-alpha-b935d9b2.0",
3
+ "version": "8.4.4-alpha-85817943.0",
4
4
  "description": "A set of utils for faster development of GraphQL tools",
5
5
  "sideEffects": false,
6
6
  "peerDependencies": {
7
7
  "graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
8
8
  },
9
9
  "dependencies": {
10
- "@graphql-tools/batch-execute": "8.3.2-alpha-b935d9b2.0",
11
- "@graphql-tools/schema": "8.3.2-alpha-b935d9b2.0",
12
- "@graphql-tools/utils": "8.6.1-alpha-b935d9b2.0",
10
+ "@graphql-tools/batch-execute": "8.3.2-alpha-85817943.0",
11
+ "@graphql-tools/schema": "8.3.2-alpha-85817943.0",
12
+ "@graphql-tools/utils": "8.6.1-alpha-85817943.0",
13
13
  "dataloader": "2.0.0",
14
- "graphql-executor": "0.0.14",
15
14
  "tslib": "~2.3.0",
16
15
  "value-or-promise": "1.0.11"
17
16
  },