cloudron 5.14.2 → 5.14.4
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/bin/cloudron-build +6 -0
- package/package.json +6 -6
- package/src/appstore-actions.js +1 -0
- package/src/build-actions.js +3 -0
package/bin/cloudron-build
CHANGED
|
@@ -7,6 +7,12 @@ const { program } = require('commander'),
|
|
|
7
7
|
|
|
8
8
|
program.version(require('../package.json').version);
|
|
9
9
|
|
|
10
|
+
program.addHelpText('after', `
|
|
11
|
+
|
|
12
|
+
Show help for default subcommand:
|
|
13
|
+
$ cloudron build build --help`);
|
|
14
|
+
|
|
15
|
+
|
|
10
16
|
function collectArgs(value, collected) {
|
|
11
17
|
collected.push(value);
|
|
12
18
|
return collected;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudron",
|
|
3
|
-
"version": "5.14.
|
|
3
|
+
"version": "5.14.4",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Cloudron Commandline Tool",
|
|
6
6
|
"main": "main.js",
|
|
@@ -22,18 +22,18 @@
|
|
|
22
22
|
"debug": "^4.4.0",
|
|
23
23
|
"easy-table": "^1.2.0",
|
|
24
24
|
"ejs": "^3.1.10",
|
|
25
|
-
"eventsource": "^3.0.
|
|
25
|
+
"eventsource": "^3.0.6",
|
|
26
26
|
"micromatch": "^4.0.8",
|
|
27
|
-
"open": "^10.1.
|
|
28
|
-
"safetydance": "^2.5.
|
|
27
|
+
"open": "^10.1.1",
|
|
28
|
+
"safetydance": "^2.5.1",
|
|
29
29
|
"tar-fs": "^3.0.8"
|
|
30
30
|
},
|
|
31
31
|
"engines": {
|
|
32
32
|
"node": ">= 18.x.x"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@eslint/js": "^9.
|
|
36
|
-
"eslint": "^9.
|
|
35
|
+
"@eslint/js": "^9.25.1",
|
|
36
|
+
"eslint": "^9.25.1",
|
|
37
37
|
"expect.js": "^0.3.1",
|
|
38
38
|
"mocha": "^11.1.0"
|
|
39
39
|
}
|
package/src/appstore-actions.js
CHANGED
|
@@ -118,6 +118,7 @@ async function info(localOptions, cmd) {
|
|
|
118
118
|
const [id, version] = await getAppstoreId(options.appstoreId);
|
|
119
119
|
|
|
120
120
|
const response = await createRequest('GET', `/api/v1/developers/apps/${id}/versions/${version}`, options);
|
|
121
|
+
if (response.status === 404) return exit(new Error(`No published app found with id ${id}`));
|
|
121
122
|
if (response.status !== 200) return exit(new Error(`Failed to list versions: ${requestError(response)}`));
|
|
122
123
|
|
|
123
124
|
const manifest = response.body.manifest;
|
package/src/build-actions.js
CHANGED
|
@@ -327,6 +327,9 @@ async function build(localOptions, cmd) {
|
|
|
327
327
|
console.log();
|
|
328
328
|
}
|
|
329
329
|
|
|
330
|
+
const parts = repository.split('://');
|
|
331
|
+
if (parts.length > 1) exit(`repository should not be a URL. Try again without ${parts[0]}://`);
|
|
332
|
+
|
|
330
333
|
appConfig.repository = repository;
|
|
331
334
|
config.setAppConfig(sourceDir, appConfig);
|
|
332
335
|
}
|