balena-cli 23.2.31 → 23.2.32

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": "23.2.31",
3
+ "version": "23.2.32",
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",
@@ -255,6 +255,6 @@
255
255
  }
256
256
  },
257
257
  "versionist": {
258
- "publishedAt": "2026-02-11T16:38:17.826Z"
258
+ "publishedAt": "2026-02-11T18:55:18.849Z"
259
259
  }
260
260
  }
package/src/auth/utils.ts CHANGED
@@ -30,10 +30,7 @@ export async function getDashboardLoginURL(
30
30
  // characters to avoid angular getting confused.
31
31
  callbackUrl = encodeURIComponent(callbackUrl).replace(/%/g, '%25');
32
32
 
33
- const [{ URL }, dashboardUrl] = await Promise.all([
34
- import('url'),
35
- getBalenaSdk().settings.get('dashboardUrl'),
36
- ]);
33
+ const dashboardUrl = await getBalenaSdk().settings.get('dashboardUrl');
37
34
  return new URL(`/login/cli/${callbackUrl}`, dashboardUrl).href;
38
35
  }
39
36
 
@@ -127,7 +127,7 @@ export default class DeviceSSHCmd extends Command {
127
127
  } = await import('../../utils/patterns');
128
128
  const sdk = getBalenaSdk();
129
129
 
130
- const proxyConfig = await getProxyConfig();
130
+ const proxyConfig = getProxyConfig();
131
131
  const useProxy = !!proxyConfig && !options.noproxy;
132
132
 
133
133
  // this will be a tunnelled SSH connection...
@@ -366,7 +366,7 @@ export interface ProxyConfig {
366
366
  * Check whether a proxy has been configured (whether global-tunnel-ng or
367
367
  * global-agent) and if so, return a ProxyConfig object.
368
368
  */
369
- export async function getProxyConfig(): Promise<ProxyConfig | undefined> {
369
+ export function getProxyConfig(): ProxyConfig | undefined {
370
370
  const tunnelNgConfig: any = (global as any).PROXY_CONFIG;
371
371
  // global-tunnel-ng
372
372
  if (tunnelNgConfig) {
@@ -392,7 +392,6 @@ export async function getProxyConfig(): Promise<ProxyConfig | undefined> {
392
392
  // eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
393
393
  const proxyUrl = process.env.HTTPS_PROXY || process.env.HTTP_PROXY;
394
394
  if (proxyUrl) {
395
- const { URL } = await import('url');
396
395
  let url: InstanceType<typeof URL>;
397
396
  try {
398
397
  url = new URL(proxyUrl);