@wix/himalaya-cli 0.1791.0 → 0.1793.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/dist/cli.mjs +3 -4
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -42162,7 +42162,6 @@ function shouldRevealError(args) {
|
|
|
42162
42162
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
|
|
42163
42163
|
var init_validation = __esm({
|
|
42164
42164
|
"../../core/ts/src/validation.ts"() {
|
|
42165
|
-
"use strict";
|
|
42166
42165
|
init_define_HHP_CATALOG();
|
|
42167
42166
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
42168
42167
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
@@ -249563,7 +249562,7 @@ function federatedTokenNeedsRefresh(token, nowSec) {
|
|
|
249563
249562
|
function isStoredLogin(target, token, path2) {
|
|
249564
249563
|
return !!token && loadStoredLogin(target, path2 ?? defaultTargetsPath()).controlToken === token;
|
|
249565
249564
|
}
|
|
249566
|
-
async function withLock2(path2, deps, fn2) {
|
|
249565
|
+
async function withLock2(path2, deps, fn2, onTimeout) {
|
|
249567
249566
|
const lock = `${path2}.refresh.lock`;
|
|
249568
249567
|
const sleep4 = deps.sleep ?? ((ms2) => new Promise((r3) => setTimeout(r3, ms2)));
|
|
249569
249568
|
const started = Date.now();
|
|
@@ -249582,7 +249581,7 @@ async function withLock2(path2, deps, fn2) {
|
|
|
249582
249581
|
} catch {
|
|
249583
249582
|
continue;
|
|
249584
249583
|
}
|
|
249585
|
-
if (Date.now() - started > LOCK_WAIT_MS)
|
|
249584
|
+
if (Date.now() - started > (deps.lockWaitMs ?? LOCK_WAIT_MS)) return onTimeout();
|
|
249586
249585
|
await sleep4(100);
|
|
249587
249586
|
}
|
|
249588
249587
|
}
|
|
@@ -249644,7 +249643,7 @@ async function refreshStoredLogin(target, opts = {}) {
|
|
|
249644
249643
|
return { ok: false, code: "login_expired", error: `the stored login can no longer be renewed (${code2})`, hint: `sign in again: \`himi login --browser --target ${target}\` (or \`himi login --device --target ${target}\`)` };
|
|
249645
249644
|
}
|
|
249646
249645
|
return { ok: false, code: "refresh_unavailable", error: `the plane could not refresh the login (${resp.status}${code2 ? ` ${code2}` : ""})`, hint: "retry in a moment; the stored login is unchanged" };
|
|
249647
|
-
});
|
|
249646
|
+
}, () => ({ ok: false, code: "refresh_unavailable", error: "another himi process is renewing this login", hint: "retry in a moment; the stored login is unchanged" }));
|
|
249648
249647
|
}
|
|
249649
249648
|
var FEDERATED_REFRESH_PATH, EARLY_SEC, LOCK_STALE_MS, LOCK_WAIT_MS;
|
|
249650
249649
|
var init_login_refresh = __esm({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1793.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
|
|
6
6
|
"keywords": [
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"artifactId": "himalaya-cli"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
"falconPackageHash": "
|
|
85
|
+
"falconPackageHash": "96e94d20b31a1c48e219e3b4ae11958914b712b4eb4c204be606ee8c"
|
|
86
86
|
}
|