@graphql-tools/links 8.2.16 → 8.2.17-alpha-2e27df80.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/index.js +3 -1
- package/index.mjs +5 -3
- package/package.json +3 -3
package/index.js
CHANGED
|
@@ -111,7 +111,9 @@ const GraphQLUpload = new graphql.GraphQLScalarType({
|
|
|
111
111
|
// serialization requires to support schema stitching
|
|
112
112
|
serialize: value => value,
|
|
113
113
|
parseLiteral: ast => {
|
|
114
|
-
throw
|
|
114
|
+
throw utils.createGraphQLError('Upload scalar literal unsupported', {
|
|
115
|
+
nodes: ast,
|
|
116
|
+
});
|
|
115
117
|
},
|
|
116
118
|
});
|
|
117
119
|
|
package/index.mjs
CHANGED
|
@@ -4,8 +4,8 @@ import FormData from 'form-data';
|
|
|
4
4
|
import fetch from 'node-fetch';
|
|
5
5
|
import { Observable } from '@apollo/client/utilities';
|
|
6
6
|
import { toPromise } from '@apollo/client/core';
|
|
7
|
-
import { getOperationASTFromRequest, observableToAsyncIterable } from '@graphql-tools/utils';
|
|
8
|
-
import { GraphQLScalarType
|
|
7
|
+
import { getOperationASTFromRequest, observableToAsyncIterable, createGraphQLError } from '@graphql-tools/utils';
|
|
8
|
+
import { GraphQLScalarType } from 'graphql';
|
|
9
9
|
|
|
10
10
|
function getFinalPromise(object) {
|
|
11
11
|
return Promise.resolve(object).then(resolvedObject => {
|
|
@@ -105,7 +105,9 @@ const GraphQLUpload = new GraphQLScalarType({
|
|
|
105
105
|
// serialization requires to support schema stitching
|
|
106
106
|
serialize: value => value,
|
|
107
107
|
parseLiteral: ast => {
|
|
108
|
-
throw
|
|
108
|
+
throw createGraphQLError('Upload scalar literal unsupported', {
|
|
109
|
+
nodes: ast,
|
|
110
|
+
});
|
|
109
111
|
},
|
|
110
112
|
});
|
|
111
113
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-tools/links",
|
|
3
|
-
"version": "8.2.
|
|
3
|
+
"version": "8.2.17-alpha-2e27df80.0",
|
|
4
4
|
"description": "A set of utils for faster development of GraphQL tools",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"peerDependencies": {
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@graphql-tools/delegate": "8.7.
|
|
12
|
-
"@graphql-tools/utils": "8.6.
|
|
11
|
+
"@graphql-tools/delegate": "8.7.10-alpha-2e27df80.0",
|
|
12
|
+
"@graphql-tools/utils": "8.6.12-alpha-2e27df80.0",
|
|
13
13
|
"apollo-upload-client": "17.0.0",
|
|
14
14
|
"form-data": "^4.0.0",
|
|
15
15
|
"node-fetch": "^2.6.5",
|