impel-cli 0.18.9 → 0.18.10
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
package/src/commands/doctor.js
CHANGED
package/src/commands/sessions.js
CHANGED
|
@@ -21,7 +21,7 @@ import { brandedEnvironmentName, RUNTIME_BRAND } from "../runtimeBrand.js";
|
|
|
21
21
|
const MANAGED_SESSION_HOOK_FLAG = `${RUNTIME_BRAND.cli.command}-managed-session-hook-v1`;
|
|
22
22
|
|
|
23
23
|
function environmentValue(suffix) {
|
|
24
|
-
return process.env[brandedEnvironmentName(suffix)]
|
|
24
|
+
return process.env[brandedEnvironmentName(suffix)];
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
const SPEC = {
|
package/src/sessionCollector.js
CHANGED
|
@@ -24,9 +24,7 @@ const SAFE_ID_RE = /^[A-Za-z0-9][A-Za-z0-9._:-]{0,255}$/u;
|
|
|
24
24
|
const TASK_ID_RE = /^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/u;
|
|
25
25
|
|
|
26
26
|
function brandedEnvironmentValue(suffix) {
|
|
27
|
-
|
|
28
|
-
if (branded !== undefined) return branded;
|
|
29
|
-
return process.env[`IMPEL_${suffix}`];
|
|
27
|
+
return process.env[brandedEnvironmentName(suffix)];
|
|
30
28
|
}
|
|
31
29
|
|
|
32
30
|
function stateRoot() {
|
|
@@ -509,7 +507,7 @@ function repositoryMetadata(cwd) {
|
|
|
509
507
|
};
|
|
510
508
|
}
|
|
511
509
|
|
|
512
|
-
function
|
|
510
|
+
export function resolveSessionsUrl(config) {
|
|
513
511
|
return String(
|
|
514
512
|
brandedEnvironmentValue("SESSIONS_URL")
|
|
515
513
|
|| config?.sessionsUrl
|
|
@@ -545,7 +543,7 @@ async function apiRequest(config, tenantId, route, options = {}) {
|
|
|
545
543
|
const controller = new AbortController();
|
|
546
544
|
const timer = setTimeout(() => controller.abort(), REQUEST_TIMEOUT_MS);
|
|
547
545
|
try {
|
|
548
|
-
const response = await fetch(`${
|
|
546
|
+
const response = await fetch(`${resolveSessionsUrl(config)}${route}`, {
|
|
549
547
|
...options,
|
|
550
548
|
headers: requestHeaders(config, tenantId, options.headers),
|
|
551
549
|
signal: controller.signal,
|