@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/Subschema.d.ts +9 -8
- package/delegateToSchema.d.ts +2 -2
- package/es5/Subschema.d.ts +9 -8
- package/es5/delegateToSchema.d.ts +2 -2
- package/es5/getFieldsNotInSubschema.d.ts +1 -1
- package/es5/index.cjs.js +4 -4
- package/es5/index.cjs.js.map +1 -1
- package/es5/index.d.ts +1 -0
- package/es5/index.esm.js +5 -5
- package/es5/index.esm.js.map +1 -1
- package/es5/package.json +4 -4
- package/es5/types.d.ts +23 -34
- package/getFieldsNotInSubschema.d.ts +1 -1
- package/index.d.ts +1 -0
- package/package.json +4 -4
- package/types.d.ts +23 -34
package/es5/index.d.ts
CHANGED
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,
|
|
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 ?
|
|
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:
|
|
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:
|
|
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:
|
|
1512
|
+
document: __assign(__assign({}, document), { definitions: __spreadArray(__spreadArray([], __read(newOperations)), __read(fragments)) }),
|
|
1513
1513
|
variables: variableValues,
|
|
1514
1514
|
};
|
|
1515
1515
|
}
|