@graphql-tools/resolvers-composition 7.0.6 → 7.0.7
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/cjs/chain-functions.js
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.chainFunctions =
|
|
3
|
+
exports.chainFunctions = chainFunctions;
|
|
4
4
|
function chainFunctions(funcs) {
|
|
5
5
|
if (funcs.length === 1) {
|
|
6
6
|
return funcs[0];
|
|
7
7
|
}
|
|
8
8
|
return funcs.reduce((a, b) => (...args) => a(b(...args)));
|
|
9
9
|
}
|
|
10
|
-
exports.chainFunctions = chainFunctions;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.composeResolvers =
|
|
3
|
+
exports.composeResolvers = composeResolvers;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const lodash_1 = tslib_1.__importDefault(require("lodash"));
|
|
6
6
|
const micromatch_1 = tslib_1.__importDefault(require("micromatch"));
|
|
@@ -89,4 +89,3 @@ function composeResolvers(resolvers, mapping = {}) {
|
|
|
89
89
|
}
|
|
90
90
|
return resolvers;
|
|
91
91
|
}
|
|
92
|
-
exports.composeResolvers = composeResolvers;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/resolvers-composition",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.7",
|
|
4
4
|
"description": "Common package containing utils and types for GraphQL tools",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@graphql-tools/utils": "^10.6.
|
|
10
|
+
"@graphql-tools/utils": "^10.6.3",
|
|
11
11
|
"lodash": "4.17.21",
|
|
12
12
|
"micromatch": "^4.0.8",
|
|
13
13
|
"tslib": "^2.4.0"
|