balena-cli 18.1.3 → 18.1.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/CHANGELOG.md +4 -0
- package/build/app.d.ts +1 -1
- package/build/app.js.map +1 -1
- package/build/commands/api-keys/index.js.map +1 -1
- package/build/commands/device/index.js.map +1 -1
- package/build/commands/device/init.js.map +1 -1
- package/build/commands/envs/index.js.map +1 -1
- package/build/commands/preload/index.js.map +1 -1
- package/build/commands/push/index.d.ts +1 -1
- package/build/commands/releases/index.js.map +1 -1
- package/build/framework/output.js.map +1 -1
- package/build/utils/compose.d.ts +1 -1
- package/build/utils/compose_ts.d.ts +2 -2
- package/build/utils/device/deploy.d.ts +3 -3
- package/build/utils/device/deploy.js.map +1 -1
- package/build/utils/device/live.d.ts +1 -1
- package/build/utils/device/live.js.map +1 -1
- package/build/utils/device/ssh.d.ts +1 -1
- package/build/utils/device/ssh.js.map +1 -1
- package/build/utils/env-common.js.map +1 -1
- package/build/utils/ignore.d.ts +1 -1
- package/build/utils/ignore.js.map +1 -1
- package/build/utils/proxy.d.ts +1 -1
- package/build/utils/remote-build.d.ts +1 -1
- package/build/utils/ssh.js.map +1 -1
- package/build/utils/sudo.js.map +1 -1
- package/build/utils/tunnel.d.ts +1 -1
- package/lib/app.ts +1 -1
- package/lib/commands/api-keys/index.ts +2 -2
- package/lib/commands/device/index.ts +2 -2
- package/lib/commands/device/init.ts +1 -1
- package/lib/commands/envs/index.ts +1 -1
- package/lib/commands/logs/index.ts +1 -1
- package/lib/commands/preload/index.ts +1 -1
- package/lib/commands/push/index.ts +1 -1
- package/lib/commands/releases/index.ts +1 -1
- package/lib/framework/output.ts +2 -2
- package/lib/utils/compose.ts +1 -1
- package/lib/utils/compose_ts.ts +2 -2
- package/lib/utils/device/deploy.ts +5 -4
- package/lib/utils/device/live.ts +2 -5
- package/lib/utils/device/ssh.ts +1 -1
- package/lib/utils/env-common.ts +6 -6
- package/lib/utils/ignore.ts +2 -1
- package/lib/utils/proxy.ts +1 -1
- package/lib/utils/remote-build.ts +1 -1
- package/lib/utils/ssh.ts +2 -1
- package/lib/utils/sudo.ts +2 -1
- package/lib/utils/tunnel.ts +1 -1
- package/npm-shrinkwrap.json +752 -733
- package/oclif.manifest.json +1 -1
- package/package.json +3 -3
|
@@ -126,7 +126,7 @@ export default class EnvsCmd extends Command {
|
|
|
126
126
|
let fleetSlug: string | undefined = options.fleet
|
|
127
127
|
? await (
|
|
128
128
|
await import('../../utils/sdk')
|
|
129
|
-
|
|
129
|
+
).getFleetSlug(balena, options.fleet)
|
|
130
130
|
: undefined;
|
|
131
131
|
let fullUUID: string | undefined; // as oppposed to the short, 7-char UUID
|
|
132
132
|
|
|
@@ -19,7 +19,7 @@ import { Flags, Args } from '@oclif/core';
|
|
|
19
19
|
import Command from '../../command';
|
|
20
20
|
import * as cf from '../../utils/common-flags';
|
|
21
21
|
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
|
22
|
-
import { LogMessage } from 'balena-sdk';
|
|
22
|
+
import type { LogMessage } from 'balena-sdk';
|
|
23
23
|
|
|
24
24
|
const MAX_RETRY = 1000;
|
|
25
25
|
|
|
@@ -173,7 +173,7 @@ Can be repeated to add multiple certificates.\
|
|
|
173
173
|
const fleetSlug: string | undefined = options.fleet
|
|
174
174
|
? await (
|
|
175
175
|
await import('../../utils/sdk')
|
|
176
|
-
|
|
176
|
+
).getFleetSlug(balena, options.fleet)
|
|
177
177
|
: undefined;
|
|
178
178
|
|
|
179
179
|
const progressBars: {
|
|
@@ -23,7 +23,7 @@ import { getBalenaSdk, stripIndent } from '../../utils/lazy';
|
|
|
23
23
|
import { dockerignoreHelp, registrySecretsHelp } from '../../utils/messages';
|
|
24
24
|
import type { BalenaSDK } from 'balena-sdk';
|
|
25
25
|
import { ExpectedError, instanceOf } from '../../errors';
|
|
26
|
-
import { RegistrySecrets } from '@balena/compose/dist/multibuild';
|
|
26
|
+
import type { RegistrySecrets } from '@balena/compose/dist/multibuild';
|
|
27
27
|
import { lowercaseIfSlug } from '../../utils/normalization';
|
|
28
28
|
import {
|
|
29
29
|
applyReleaseTagKeysAndValues,
|
package/lib/framework/output.ts
CHANGED
|
@@ -88,7 +88,7 @@ async function outputDataSet(
|
|
|
88
88
|
...(options.json
|
|
89
89
|
? {
|
|
90
90
|
output: 'json',
|
|
91
|
-
|
|
91
|
+
}
|
|
92
92
|
: {}),
|
|
93
93
|
columns: options.fields,
|
|
94
94
|
printLine,
|
|
@@ -147,7 +147,7 @@ function getLongestObjectKeyLength(o: any): number {
|
|
|
147
147
|
return Object.keys(o).length >= 1
|
|
148
148
|
? Object.keys(o).reduce((a, b) => {
|
|
149
149
|
return a.length > b.length ? a : b;
|
|
150
|
-
|
|
150
|
+
}).length
|
|
151
151
|
: 0;
|
|
152
152
|
}
|
|
153
153
|
|
package/lib/utils/compose.ts
CHANGED
|
@@ -30,7 +30,7 @@ import type {
|
|
|
30
30
|
} from './compose-types';
|
|
31
31
|
import { getChalk } from './lazy';
|
|
32
32
|
import Logger = require('./logger');
|
|
33
|
-
import { ProgressCallback } from 'docker-progress';
|
|
33
|
+
import type { ProgressCallback } from 'docker-progress';
|
|
34
34
|
|
|
35
35
|
export function generateOpts(options: {
|
|
36
36
|
source?: string;
|
package/lib/utils/compose_ts.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import { Flags } from '@oclif/core';
|
|
18
|
-
import { BalenaSDK } from 'balena-sdk';
|
|
18
|
+
import type { BalenaSDK } from 'balena-sdk';
|
|
19
19
|
import type { TransposeOptions } from '@balena/compose/dist/emulate';
|
|
20
20
|
import type * as Dockerode from 'dockerode';
|
|
21
21
|
import { promises as fs } from 'fs';
|
|
@@ -32,7 +32,7 @@ import * as semver from 'semver';
|
|
|
32
32
|
import type { Duplex, Readable } from 'stream';
|
|
33
33
|
import type { Pack } from 'tar-stream';
|
|
34
34
|
import { ExpectedError } from '../errors';
|
|
35
|
-
import {
|
|
35
|
+
import type {
|
|
36
36
|
BuiltImage,
|
|
37
37
|
ComposeOpts,
|
|
38
38
|
ComposeProject,
|
|
@@ -18,13 +18,13 @@
|
|
|
18
18
|
import * as semver from 'balena-semver';
|
|
19
19
|
import * as Docker from 'dockerode';
|
|
20
20
|
import * as _ from 'lodash';
|
|
21
|
-
import { Composition } from '@balena/compose/dist/parse';
|
|
22
|
-
import {
|
|
21
|
+
import type { Composition } from '@balena/compose/dist/parse';
|
|
22
|
+
import type {
|
|
23
23
|
BuildTask,
|
|
24
|
-
getAuthConfigObj,
|
|
25
24
|
LocalImage,
|
|
26
25
|
RegistrySecrets,
|
|
27
26
|
} from '@balena/compose/dist/multibuild';
|
|
27
|
+
import { getAuthConfigObj } from '@balena/compose/dist/multibuild';
|
|
28
28
|
import type { Readable } from 'stream';
|
|
29
29
|
|
|
30
30
|
import { BALENA_ENGINE_TMP_PATH } from '../../config';
|
|
@@ -37,7 +37,8 @@ import {
|
|
|
37
37
|
makeImageName,
|
|
38
38
|
} from '../compose_ts';
|
|
39
39
|
import Logger = require('../logger');
|
|
40
|
-
import {
|
|
40
|
+
import type { DeviceInfo } from './api';
|
|
41
|
+
import { DeviceAPI } from './api';
|
|
41
42
|
import * as LocalPushErrors from './errors';
|
|
42
43
|
import LivepushManager from './live';
|
|
43
44
|
import { displayBuildLog } from './logs';
|
package/lib/utils/device/live.ts
CHANGED
|
@@ -30,11 +30,8 @@ import Logger = require('../logger');
|
|
|
30
30
|
import { Dockerfile } from 'livepush';
|
|
31
31
|
import type DeviceAPI from './api';
|
|
32
32
|
import type { DeviceInfo, Status } from './api';
|
|
33
|
-
import {
|
|
34
|
-
|
|
35
|
-
generateTargetState,
|
|
36
|
-
rebuildSingleTask,
|
|
37
|
-
} from './deploy';
|
|
33
|
+
import type { DeviceDeployOptions } from './deploy';
|
|
34
|
+
import { generateTargetState, rebuildSingleTask } from './deploy';
|
|
38
35
|
import { BuildError } from './errors';
|
|
39
36
|
import { getServiceColourFn } from './logs';
|
|
40
37
|
import { delay } from '../helpers';
|
package/lib/utils/device/ssh.ts
CHANGED
|
@@ -17,11 +17,11 @@ limitations under the License.
|
|
|
17
17
|
import { ExpectedError } from '../../errors';
|
|
18
18
|
import { stripIndent } from '../lazy';
|
|
19
19
|
|
|
20
|
+
import type { SshRemoteCommandOpts } from '../ssh';
|
|
20
21
|
import {
|
|
21
22
|
findBestUsernameForDevice,
|
|
22
23
|
getRemoteCommandOutput,
|
|
23
24
|
runRemoteCommand,
|
|
24
|
-
SshRemoteCommandOpts,
|
|
25
25
|
} from '../ssh';
|
|
26
26
|
|
|
27
27
|
export interface DeviceSSHOpts extends SshRemoteCommandOpts {
|
package/lib/utils/env-common.ts
CHANGED
|
@@ -85,13 +85,13 @@ export function getVarResourceName(
|
|
|
85
85
|
? isConfig
|
|
86
86
|
? 'device_config_variable'
|
|
87
87
|
: isService
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
? 'device_service_environment_variable'
|
|
89
|
+
: 'device_environment_variable'
|
|
90
90
|
: isConfig
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
? 'application_config_variable'
|
|
92
|
+
: isService
|
|
93
|
+
? 'service_environment_variable'
|
|
94
|
+
: 'application_environment_variable';
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
/**
|
package/lib/utils/ignore.ts
CHANGED
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
import * as _ from 'lodash';
|
|
18
|
-
import {
|
|
18
|
+
import type { Stats } from 'fs';
|
|
19
|
+
import { promises as fs } from 'fs';
|
|
19
20
|
import * as path from 'path';
|
|
20
21
|
|
|
21
22
|
import type { Ignore } from '@balena/dockerignore';
|
package/lib/utils/proxy.ts
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
import type { Options as GlobalTunnelNgConfig } from 'global-tunnel-ng';
|
|
19
19
|
export type { GlobalTunnelNgConfig };
|
|
20
20
|
|
|
21
|
-
import { CliSettings } from './bootstrap';
|
|
21
|
+
import type { CliSettings } from './bootstrap';
|
|
22
22
|
|
|
23
23
|
type ProxyConfig = string | GlobalTunnelNgConfig;
|
|
24
24
|
|
|
@@ -17,7 +17,7 @@ import type { BalenaSDK } from 'balena-sdk';
|
|
|
17
17
|
import * as JSONStream from 'JSONStream';
|
|
18
18
|
import * as readline from 'readline';
|
|
19
19
|
import * as request from 'request';
|
|
20
|
-
import { RegistrySecrets } from '@balena/compose/dist/multibuild';
|
|
20
|
+
import type { RegistrySecrets } from '@balena/compose/dist/multibuild';
|
|
21
21
|
import type * as Stream from 'stream';
|
|
22
22
|
import streamToPromise = require('stream-to-promise');
|
|
23
23
|
import type { Pack } from 'tar-stream';
|
package/lib/utils/ssh.ts
CHANGED
|
@@ -14,7 +14,8 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
|
-
import {
|
|
17
|
+
import type { StdioOptions } from 'child_process';
|
|
18
|
+
import { spawn } from 'child_process';
|
|
18
19
|
import * as _ from 'lodash';
|
|
19
20
|
|
|
20
21
|
import { ExpectedError } from '../errors';
|
package/lib/utils/sudo.ts
CHANGED
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
|
-
import { ChildProcess,
|
|
18
|
+
import type { ChildProcess, SpawnOptions } from 'child_process';
|
|
19
|
+
import { spawn } from 'child_process';
|
|
19
20
|
import { stripIndent } from './lazy';
|
|
20
21
|
|
|
21
22
|
/**
|
package/lib/utils/tunnel.ts
CHANGED
|
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
|
|
14
14
|
limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { BalenaSDK } from 'balena-sdk';
|
|
17
|
-
import { Socket } from 'net';
|
|
17
|
+
import type { Socket } from 'net';
|
|
18
18
|
import * as tls from 'tls';
|
|
19
19
|
import { TypedError } from 'typed-error';
|
|
20
20
|
import { ExpectedError } from '../errors';
|