@contentful/app-scripts 1.10.0 → 1.10.2
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/lib/upload/create-app-upload.js +4 -3
- package/lib/utils.js +0 -1
- package/package.json +3 -3
|
@@ -4,8 +4,8 @@ const { validateBundle } = require('./validate-bundle');
|
|
|
4
4
|
const { showCreationError } = require('../utils');
|
|
5
5
|
const { createClient } = require('contentful-management');
|
|
6
6
|
|
|
7
|
-
async function createAppBundleFromFile(orgId, token, zip) {
|
|
8
|
-
const client = await createClient({ accessToken: token });
|
|
7
|
+
async function createAppBundleFromFile(orgId, token, zip, host = '') {
|
|
8
|
+
const client = await createClient({ accessToken: token, host, hostUpload: host.replace(/^api/i, 'upload') });
|
|
9
9
|
const org = await client.getOrganization(orgId);
|
|
10
10
|
return await org.createAppUpload(zip);
|
|
11
11
|
}
|
|
@@ -24,7 +24,8 @@ async function createAppUpload(settings) {
|
|
|
24
24
|
appUpload = await createAppBundleFromFile(
|
|
25
25
|
settings.organization.value,
|
|
26
26
|
settings.accessToken,
|
|
27
|
-
zipFile
|
|
27
|
+
zipFile,
|
|
28
|
+
settings.host
|
|
28
29
|
);
|
|
29
30
|
} catch (err) {
|
|
30
31
|
showCreationError('app bundle', err.message);
|
package/lib/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/app-scripts",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.2",
|
|
4
4
|
"description": "A collection of scripts for building Contentful Apps",
|
|
5
5
|
"author": "Contentful GmbH",
|
|
6
6
|
"license": "MIT",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"bottleneck": "2.19.5",
|
|
54
54
|
"chalk": "4.1.2",
|
|
55
55
|
"commander": "10.0.1",
|
|
56
|
-
"contentful-management": "10.35.
|
|
56
|
+
"contentful-management": "10.35.4",
|
|
57
57
|
"dotenv": "16.0.3",
|
|
58
58
|
"ignore": "5.2.4",
|
|
59
59
|
"inquirer": "8.2.5",
|
|
@@ -61,5 +61,5 @@
|
|
|
61
61
|
"open": "8.4.2",
|
|
62
62
|
"ora": "5.4.1"
|
|
63
63
|
},
|
|
64
|
-
"gitHead": "
|
|
64
|
+
"gitHead": "decd25e2e3c38482d6e636777f37de44fd49ab1c"
|
|
65
65
|
}
|