@graphql-tools/links 9.0.12 → 9.0.13
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.
|
@@ -3,9 +3,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.AwaitVariablesLink = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const apolloImport = tslib_1.__importStar(require("@apollo/client"));
|
|
6
|
+
const utils_1 = require("@graphql-tools/utils");
|
|
6
7
|
const apollo = apolloImport?.default ?? apolloImport;
|
|
7
8
|
function getFinalPromise(object) {
|
|
8
|
-
return
|
|
9
|
+
return (0, utils_1.mapMaybePromise)(object, resolvedObject => {
|
|
9
10
|
if (resolvedObject == null) {
|
|
10
11
|
return resolvedObject;
|
|
11
12
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as apolloImport from '@apollo/client';
|
|
2
|
+
import { mapMaybePromise } from '@graphql-tools/utils';
|
|
2
3
|
const apollo = apolloImport?.default ?? apolloImport;
|
|
3
4
|
function getFinalPromise(object) {
|
|
4
|
-
return
|
|
5
|
+
return mapMaybePromise(object, resolvedObject => {
|
|
5
6
|
if (resolvedObject == null) {
|
|
6
7
|
return resolvedObject;
|
|
7
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/links",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.13",
|
|
4
4
|
"description": "A set of utils for faster development of GraphQL tools",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@graphql-tools/delegate": "^10.1.2",
|
|
12
|
-
"@graphql-tools/utils": "^10.
|
|
12
|
+
"@graphql-tools/utils": "^10.6.0",
|
|
13
13
|
"apollo-upload-client": "17.0.0",
|
|
14
14
|
"form-data": "^4.0.0",
|
|
15
15
|
"node-fetch": "^2.6.5",
|