@vtex/api 6.45.13-beta → 6.45.13-beta.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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
4
|
-
const graphqlUpload =
|
|
3
|
+
const graphql_upload_1 = require("graphql-upload");
|
|
4
|
+
const graphqlUpload = graphql_upload_1.graphqlUploadKoa({
|
|
5
5
|
maxFieldSize: 1e6,
|
|
6
6
|
maxFileSize: 4 * 1e6,
|
|
7
7
|
maxFiles: 10,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const
|
|
3
|
+
const graphql_upload_1 = require("graphql-upload");
|
|
4
4
|
const ramda_1 = require("ramda");
|
|
5
5
|
const ioUpload_1 = require("./ioUpload");
|
|
6
6
|
const sanitizedString_1 = require("./sanitizedString");
|
|
7
7
|
exports.nativeResolvers = {
|
|
8
8
|
'IOSanitizedString': sanitizedString_1.resolvers,
|
|
9
9
|
'IOUpload': ioUpload_1.resolvers,
|
|
10
|
-
'Upload':
|
|
10
|
+
'Upload': graphql_upload_1.GraphQLUpload,
|
|
11
11
|
};
|
|
12
12
|
exports.nativeTypeDefs = (metaData) => ramda_1.reduce((acc, scalar) => !metaData[scalar] ? `${acc}\nscalar ${scalar}\n` : acc, '', ramda_1.keys(exports.nativeResolvers));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vtex/api",
|
|
3
|
-
"version": "6.45.13-beta",
|
|
3
|
+
"version": "6.45.13-beta.1",
|
|
4
4
|
"description": "VTEX I/O API client",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"fs-extra": "^7.0.0",
|
|
66
66
|
"graphql": "^14.5.8",
|
|
67
67
|
"graphql-tools": "^4.0.6",
|
|
68
|
-
"graphql-upload
|
|
68
|
+
"graphql-upload": "^13.0.0",
|
|
69
69
|
"jaeger-client": "^3.19.0",
|
|
70
70
|
"js-base64": "^2.5.1",
|
|
71
71
|
"koa": "^2.11.0",
|