@graphql-tools/delegate 7.0.11-alpha-2575037f.0 → 7.1.1

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.
package/es5/index.d.ts CHANGED
@@ -9,3 +9,4 @@ export * from './resolveExternalValue';
9
9
  export * from './subschemaConfig';
10
10
  export * from './transforms';
11
11
  export * from './types';
12
+ export { Executor, Subscriber, AsyncExecutor, SyncExecutor, ExecutionParams } from '@graphql-tools/utils';
package/es5/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { cloneSchema, serializeInputValue, updateArgument, collectFields, relocatedError, mergeDeep, getResponseKeyFromInfo, implementsAbstractType, mapAsyncIterator } from '@graphql-tools/utils/es5';
2
- import { __assign, __spread, __values, __read } from 'tslib';
2
+ import { __assign, __spreadArray, __read, __values } from 'tslib';
3
3
  import { Kind, typeFromAST, GraphQLError, responsePathAsArray, getNamedType, getNullableType, isLeafType, isCompositeType, isListType, isAbstractType, locatedError, defaultFieldResolver, TypeInfo, visit, visitWithTypeInfo, print, isInterfaceType, isObjectType, TypeNameMetaFieldDef, getOperationAST, subscribe, validate, execute } from 'graphql';
4
4
  import AggregateError from '@ardatan/aggregate-error';
5
5
  import isPromise from 'is-promise';
@@ -230,7 +230,7 @@ function isSubschemaConfig(value) {
230
230
  return Boolean(value === null || value === void 0 ? void 0 : value.schema);
231
231
  }
232
232
  function cloneSubschemaConfig(subschemaConfig) {
233
- var newSubschemaConfig = __assign(__assign({}, subschemaConfig), { transforms: subschemaConfig.transforms != null ? __spread(subschemaConfig.transforms) : undefined });
233
+ var newSubschemaConfig = __assign(__assign({}, subschemaConfig), { transforms: subschemaConfig.transforms != null ? __spreadArray([], __read(subschemaConfig.transforms)) : undefined });
234
234
  if (newSubschemaConfig.merge != null) {
235
235
  newSubschemaConfig.merge = __assign({}, subschemaConfig.merge);
236
236
  Object.keys(newSubschemaConfig.merge).forEach(function (typeName) {
@@ -974,7 +974,7 @@ function expandAbstractTypes(targetSchema, possibleTypesMap, reversePossibleType
974
974
  });
975
975
  }
976
976
  });
977
- var newDocument = __assign(__assign({}, document), { definitions: __spread(operations, newFragments) });
977
+ var newDocument = __assign(__assign({}, document), { definitions: __spreadArray(__spreadArray([], __read(operations)), __read(newFragments)) });
978
978
  var typeInfo = new TypeInfo(targetSchema);
979
979
  return visit(newDocument, visitWithTypeInfo(typeInfo, (_a = {},
980
980
  _a[Kind.SELECTION_SET] = function (node) {
@@ -1217,7 +1217,7 @@ function filterToSchema(targetSchema, document, variables) {
1217
1217
  return {
1218
1218
  document: {
1219
1219
  kind: Kind.DOCUMENT,
1220
- definitions: __spread(newOperations, newFragments),
1220
+ definitions: __spreadArray(__spreadArray([], __read(newOperations)), __read(newFragments)),
1221
1221
  },
1222
1222
  variables: newVariables,
1223
1223
  };
@@ -1509,7 +1509,7 @@ function addVariablesToRootField(targetSchema, originalRequest, args) {
1509
1509
  } });
1510
1510
  });
1511
1511
  return {
1512
- document: __assign(__assign({}, document), { definitions: __spread(newOperations, fragments) }),
1512
+ document: __assign(__assign({}, document), { definitions: __spreadArray(__spreadArray([], __read(newOperations)), __read(fragments)) }),
1513
1513
  variables: variableValues,
1514
1514
  };
1515
1515
  }