@graphql-tools/links 8.2.1 → 8.2.2-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.
- package/AwaitVariablesLink.d.ts +0 -1
- package/GraphQLUpload.d.ts +1 -1
- package/index.js +2 -2
- package/index.mjs +1 -1
- package/package.json +9 -8
package/AwaitVariablesLink.d.ts
CHANGED
package/GraphQLUpload.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -7,7 +7,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
|
|
|
7
7
|
const core = require('@apollo/client/link/core');
|
|
8
8
|
const apolloUploadClient = require('apollo-upload-client');
|
|
9
9
|
const FormData = _interopDefault(require('form-data'));
|
|
10
|
-
const
|
|
10
|
+
const fetch = _interopDefault(require('node-fetch'));
|
|
11
11
|
const utilities = require('@apollo/client/utilities');
|
|
12
12
|
const core$1 = require('@apollo/client/core');
|
|
13
13
|
const utils = require('@graphql-tools/utils');
|
|
@@ -58,7 +58,7 @@ class AwaitVariablesLink extends core.ApolloLink {
|
|
|
58
58
|
|
|
59
59
|
const createServerHttpLink = (options) => core.concat(new AwaitVariablesLink(), apolloUploadClient.createUploadLink({
|
|
60
60
|
...options,
|
|
61
|
-
fetch
|
|
61
|
+
fetch,
|
|
62
62
|
FormData,
|
|
63
63
|
isExtractableFile: (value) => apolloUploadClient.isExtractableFile(value) || (value === null || value === void 0 ? void 0 : value.createReadStream),
|
|
64
64
|
formDataAppendFile: (form, index, file) => {
|
package/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApolloLink, concat, execute } from '@apollo/client/link/core';
|
|
2
2
|
import { createUploadLink, isExtractableFile, formDataAppendFile } from 'apollo-upload-client';
|
|
3
3
|
import FormData from 'form-data';
|
|
4
|
-
import
|
|
4
|
+
import fetch from 'node-fetch';
|
|
5
5
|
import { Observable } from '@apollo/client/utilities';
|
|
6
6
|
import { toPromise } from '@apollo/client/core';
|
|
7
7
|
import { getOperationASTFromRequest, observableToAsyncIterable } from '@graphql-tools/utils';
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/links",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.2-alpha-85817943.0",
|
|
4
4
|
"description": "A set of utils for faster development of GraphQL tools",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
7
|
-
"@apollo/client": "~3.2.5 || ~3.3.0 || ~3.4.0",
|
|
7
|
+
"@apollo/client": "~3.2.5 || ~3.3.0 || ~3.4.0 || ~3.5.0",
|
|
8
8
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@graphql-tools/delegate": "
|
|
12
|
-
"@graphql-tools/utils": "
|
|
13
|
-
"apollo-upload-client": "
|
|
14
|
-
"
|
|
15
|
-
"
|
|
11
|
+
"@graphql-tools/delegate": "8.4.4-alpha-85817943.0",
|
|
12
|
+
"@graphql-tools/utils": "8.6.1-alpha-85817943.0",
|
|
13
|
+
"apollo-upload-client": "17.0.0",
|
|
14
|
+
"form-data": "^4.0.0",
|
|
15
|
+
"node-fetch": "^2.6.5",
|
|
16
16
|
"tslib": "~2.3.0"
|
|
17
17
|
},
|
|
18
18
|
"repository": {
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"./*": {
|
|
36
36
|
"require": "./*.js",
|
|
37
37
|
"import": "./*.mjs"
|
|
38
|
-
}
|
|
38
|
+
},
|
|
39
|
+
"./package.json": "./package.json"
|
|
39
40
|
}
|
|
40
41
|
}
|