balena-cli 13.0.1 → 13.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "balena-cli",
3
- "version": "13.0.1",
3
+ "version": "13.0.2",
4
4
  "description": "The official balena Command Line Interface",
5
5
  "main": "./build/app.js",
6
6
  "homepage": "https://github.com/balena-io/balena-cli",
@@ -116,7 +116,7 @@
116
116
  },
117
117
  "devDependencies": {
118
118
  "@balena/lint": "^6.2.0",
119
- "@oclif/config": "^1.17.0",
119
+ "@oclif/config": "^1.18.2",
120
120
  "@oclif/parser": "^3.8.6",
121
121
  "@octokit/plugin-throttling": "^3.5.1",
122
122
  "@octokit/rest": "^18.6.7",
@@ -195,7 +195,7 @@
195
195
  "dependencies": {
196
196
  "@balena/dockerignore": "^1.0.2",
197
197
  "@balena/es-version": "^1.0.1",
198
- "@oclif/command": "^1.8.0",
198
+ "@oclif/command": "^1.8.16",
199
199
  "@resin.io/valid-email": "^0.1.0",
200
200
  "@sentry/node": "^6.13.2",
201
201
  "@types/fast-levenshtein": "0.0.1",
@@ -254,7 +254,7 @@
254
254
  "net-keepalive": "^3.0.0",
255
255
  "node-cleanup": "^2.1.2",
256
256
  "node-unzip-2": "^0.2.8",
257
- "oclif": "^1.18.1",
257
+ "oclif": "^1.18.4",
258
258
  "open": "^7.1.0",
259
259
  "patch-package": "^6.4.7",
260
260
  "prettyjson": "^1.1.3",
@@ -287,6 +287,6 @@
287
287
  "windosu": "^0.3.0"
288
288
  },
289
289
  "versionist": {
290
- "publishedAt": "2021-12-24T16:57:38.106Z"
290
+ "publishedAt": "2021-12-24T18:11:22.558Z"
291
291
  }
292
292
  }
@@ -1,17 +1,17 @@
1
1
  diff --git a/node_modules/@oclif/plugin-help/lib/command.js b/node_modules/@oclif/plugin-help/lib/command.js
2
- index 1caa65b..e205faf 100644
2
+ index b3b9010..788e5c6 100644
3
3
  --- a/node_modules/@oclif/plugin-help/lib/command.js
4
4
  +++ b/node_modules/@oclif/plugin-help/lib/command.js
5
- @@ -87,7 +87,7 @@ class CommandHelp {
6
- if (args.filter(a => a.description).length === 0)
5
+ @@ -88,7 +88,7 @@ class CommandHelp {
7
6
  return;
8
7
  const body = list_1.renderList(args.map(a => {
8
+ var _a;
9
9
  - const name = a.name.toUpperCase();
10
10
  + const name = a.required ? `<${a.name}>` : `[${a.name}]`;
11
11
  let description = a.description || '';
12
- if (a.default)
13
- description = `[default: ${a.default}] ${description}`;
14
- @@ -130,9 +130,7 @@ class CommandHelp {
12
+ // `a.default` is actually not always a string (typing bug), hence `toString()`
13
+ if (a.default || ((_a = a.default) === null || _a === void 0 ? void 0 : _a.toString()) === '0')
14
+ @@ -133,9 +133,7 @@ class CommandHelp {
15
15
  if (!flag.helpValue && flag.options) {
16
16
  value = flag.options.join('|');
17
17
  }
@@ -21,12 +21,12 @@ index 1caa65b..e205faf 100644
21
21
  + left += ` <${value}>`;
22
22
  }
23
23
  let right = flag.description || '';
24
- if (flag.type === 'option' && flag.default) {
24
+ // `flag.default` is not always a string (typing bug), hence `toString()`
25
25
  diff --git a/node_modules/@oclif/plugin-help/lib/index.js b/node_modules/@oclif/plugin-help/lib/index.js
26
- index 02646b6..525e19f 100644
26
+ index 04d7861..c2fb591 100644
27
27
  --- a/node_modules/@oclif/plugin-help/lib/index.js
28
28
  +++ b/node_modules/@oclif/plugin-help/lib/index.js
29
- @@ -95,11 +95,12 @@ class Help extends HelpBase {
29
+ @@ -98,11 +98,12 @@ class Help extends HelpBase {
30
30
  console.log(title + '\n');
31
31
  console.log(this.formatCommand(command));
32
32
  console.log('');
@@ -1,5 +1,5 @@
1
1
  diff --git a/node_modules/oclif/lib/commands/pack/macos.js b/node_modules/oclif/lib/commands/pack/macos.js
2
- index 2a7bcdd..c3df321 100644
2
+ index 924f092..a69e60b 100644
3
3
  --- a/node_modules/oclif/lib/commands/pack/macos.js
4
4
  +++ b/node_modules/oclif/lib/commands/pack/macos.js
5
5
  @@ -133,6 +133,7 @@ class PackMacos extends command_1.Command {
@@ -11,7 +11,7 @@ index 2a7bcdd..c3df321 100644
11
11
  }
12
12
  }
13
13
  diff --git a/node_modules/oclif/lib/commands/pack/win.js b/node_modules/oclif/lib/commands/pack/win.js
14
- index 7547ad2..df9e4b5 100644
14
+ index bf4657e..fd58c7d 100644
15
15
  --- a/node_modules/oclif/lib/commands/pack/win.js
16
16
  +++ b/node_modules/oclif/lib/commands/pack/win.js
17
17
  @@ -52,6 +52,13 @@ VIAddVersionKey /LANG=\${LANG_ENGLISH} "ProductVersion" "\${VERSION}.0"
@@ -42,11 +42,11 @@ index 7547ad2..df9e4b5 100644
42
42
  await this.checkForNSIS();
43
43
  const { flags } = this.parse(PackWin);
44
44
  - const buildConfig = await Tarballs.buildConfig(flags.root);
45
- + const targets = flags.targets ? flags.targets.split(',') : undefined;
46
- + const buildConfig = await Tarballs.buildConfig(flags.root, { targets });
47
- const { config } = buildConfig;
45
+ + const $targets = flags.targets ? flags.targets.split(',') : undefined;
46
+ + const buildConfig = await Tarballs.buildConfig(flags.root, { targets: $targets });
47
+ const { config, version, gitSha, targets, tmp } = buildConfig;
48
48
  await Tarballs.build(buildConfig, { platform: 'win32', pack: false });
49
- const arches = buildConfig.targets.filter(t => t.platform === 'win32').map(t => t.arch);
49
+ const arches = targets.filter(t => t.platform === 'win32').map(t => t.arch);
50
50
  @@ -208,7 +218,8 @@ class PackWin extends command_1.Command {
51
51
  // eslint-disable-next-line no-await-in-loop
52
52
  await qq.mv(buildConfig.workspace({ platform: 'win32', arch }), [installerBase, 'client']);
@@ -54,7 +54,7 @@ index 7547ad2..df9e4b5 100644
54
54
  - await qq.x(`makensis ${installerBase}/${config.bin}.nsi | grep -v "\\[compress\\]" | grep -v "^File: Descending to"`);
55
55
  + const { msysExec, toMsysPath } = require("../../util");
56
56
  + await msysExec(`makensis ${toMsysPath(installerBase)}/${config.bin}.nsi | grep -v "\\[compress\\]" | grep -v "^File: Descending to"`);
57
- const templateKey = upload_util_1.templateShortKey('win32', { bin: config.bin, version: buildConfig.version, sha: buildConfig.gitSha, arch });
57
+ const templateKey = upload_util_1.templateShortKey('win32', { bin: config.bin, version: version, sha: gitSha, arch });
58
58
  const o = buildConfig.dist(`win32/${templateKey}`);
59
59
  // eslint-disable-next-line no-await-in-loop
60
60
  @@ -255,4 +266,5 @@ PackWin.hidden = true;
@@ -64,15 +64,15 @@ index 7547ad2..df9e4b5 100644
64
64
  + targets: command_1.flags.string({char: 't', description: 'comma-separated targets to pack (e.g.: win32-x86,win32-x64)'}),
65
65
  };
66
66
  diff --git a/node_modules/oclif/lib/tarballs/build.js b/node_modules/oclif/lib/tarballs/build.js
67
- index 39aae96..6e88b74 100644
67
+ index d3e8e89..a5d29e2 100644
68
68
  --- a/node_modules/oclif/lib/tarballs/build.js
69
69
  +++ b/node_modules/oclif/lib/tarballs/build.js
70
70
  @@ -18,8 +18,9 @@ const pack = async (from, to) => {
71
71
  qq.cd(prevCwd);
72
72
  };
73
73
  async function build(c, options = {}) {
74
- - const { xz, config } = c;
75
- + const { xz, config, tmp } = c;
74
+ - const { xz, config, version, s3Config, gitSha, nodeVersion, targets, updateConfig } = c;
75
+ + const { xz, config, version, s3Config, gitSha, nodeVersion, targets, updateConfig, tmp } = c;
76
76
  const prevCwd = qq.cwd();
77
77
  + console.error(`[debug] oclif cwd="${prevCwd}"\n c.root="${c.root}" c.workspace()="${c.workspace()}"`);
78
78
  const packCLI = async () => {
@@ -225,11 +225,11 @@ index 45392cb..3c806c7 100644
225
225
  };
226
226
  return _.template(templates[type])(Object.assign({}, options));
227
227
  diff --git a/node_modules/oclif/lib/util.js b/node_modules/oclif/lib/util.js
228
- index 910315f..71d7649 100644
228
+ index 17748ad..4928fc9 100644
229
229
  --- a/node_modules/oclif/lib/util.js
230
230
  +++ b/node_modules/oclif/lib/util.js
231
231
  @@ -67,3 +67,47 @@ exports.sortVersionsObjectByKeysDesc = (input) => {
232
- });
232
+ }
233
233
  return result;
234
234
  };
235
235
  +