cloudron 5.12.0 → 5.14.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/bin/cloudron CHANGED
@@ -10,7 +10,7 @@ const actions = require('../src/actions.js'),
10
10
  Command = require('commander').Command,
11
11
  safe = require('safetydance'),
12
12
  semver = require('semver'),
13
- superagent = require('superagent'),
13
+ superagent = require('../src/superagent.js'),
14
14
  util = require('util');
15
15
 
16
16
  const version = require('../package.json').version;
@@ -293,7 +293,7 @@ program.command('update')
293
293
  if (Date.now() - (config.get('lastCliUpdateCheck') || 0) > 24*60*60*1000) {
294
294
  // check if cli tool is up-to-date
295
295
  const [error, response] = await safe(superagent.get('https://registry.npmjs.org/cloudron').retry(0).ok(() => true));
296
- if (!error && response.statusCode === 200 && response.body['dist-tags'].latest !== version) {
296
+ if (!error && response.status === 200 && response.body['dist-tags'].latest !== version) {
297
297
  const updateCommand = 'npm install -g cloudron@' + response.body['dist-tags'].latest;
298
298
  process.stderr.write(util.format('A new version of Cloudron CLI is available. Please update with: %s\n', updateCommand));
299
299
  }
@@ -54,6 +54,10 @@ program.command('upload')
54
54
  .option('-f, --force', 'Update existing version')
55
55
  .action(appstoreActions.upload);
56
56
 
57
+ program.command('verify-manifest')
58
+ .description('Verify if manifest is ready to be upload/published')
59
+ .action(appstoreActions.verifyManifest);
60
+
57
61
  program.command('versions')
58
62
  .alias('list')
59
63
  .description('List published versions')
@@ -0,0 +1,21 @@
1
+ const js = require('@eslint/js');
2
+ const globals = require('globals');
3
+
4
+ module.exports = [
5
+ js.configs.recommended,
6
+ {
7
+ files: ["**/*.js"],
8
+ languageOptions: {
9
+ globals: {
10
+ ...globals.node,
11
+ },
12
+ ecmaVersion: 13,
13
+ sourceType: "commonjs"
14
+ },
15
+ rules: {
16
+ semi: "error",
17
+ "prefer-const": "error"
18
+ }
19
+ }
20
+ ];
21
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudron",
3
- "version": "5.12.0",
3
+ "version": "5.14.0",
4
4
  "license": "MIT",
5
5
  "description": "Cloudron Commandline Tool",
6
6
  "main": "main.js",
@@ -17,29 +17,24 @@
17
17
  },
18
18
  "author": "Cloudron Developers <support@cloudron.io>",
19
19
  "dependencies": {
20
- "async": "^3.2.6",
21
20
  "cloudron-manifestformat": "^5.26.2",
22
- "commander": "^12.1.0",
23
- "debug": "^4.3.7",
21
+ "commander": "^13.1.0",
22
+ "debug": "^4.4.0",
24
23
  "easy-table": "^1.2.0",
25
24
  "ejs": "^3.1.10",
26
- "eventsource": "^2.0.2",
25
+ "eventsource": "^3.0.5",
27
26
  "micromatch": "^4.0.8",
28
27
  "open": "^10.1.0",
29
- "progress": "^2.0.3",
30
- "progress-stream": "^2.0.0",
31
- "readline-sync": "^1.4.10",
32
- "safetydance": "^2.4.0",
33
- "split2": "^4.2.0",
34
- "superagent": "^10.1.1",
35
- "tar-fs": "https://registry.npmjs.org/tar-fs/-/tar-fs-1.12.0.tgz",
36
- "underscore": "^1.13.7"
28
+ "safetydance": "^2.5.0",
29
+ "tar-fs": "^3.0.8"
37
30
  },
38
31
  "engines": {
39
32
  "node": ">= 18.x.x"
40
33
  },
41
34
  "devDependencies": {
35
+ "@eslint/js": "^9.20.0",
36
+ "eslint": "^9.20.1",
42
37
  "expect.js": "^0.3.1",
43
- "mocha": "^10.8.2"
38
+ "mocha": "^11.1.0"
44
39
  }
45
40
  }