@wix/himalaya-cli 0.1791.0 → 0.1792.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.
Files changed (2) hide show
  1. package/dist/cli.mjs +3 -5
  2. package/package.json +2 -2
package/dist/cli.mjs CHANGED
@@ -8378,7 +8378,6 @@ function assertExternalUrl(site, value2, where) {
8378
8378
  var WIX_FREE_SITE_HOST_SUFFIXES, SITE_KINDS, SITE_LAYOUTS, SITE_PAGE_TITLES, SITE_TOP_BAR_MAX_ACTIONS, SITE_BUILTIN_NATIVE_SCREENS, SITE_PRIVATE_NATIVE_SCREENS, SITE_SHELL_MAX_TABS, SITE_SCREEN_PREFIX, SITE_PAGE_SCREEN_ID, BASE44_ORIGINS, PAGE_ID, SITE_PAGE_NODE_ID, SITE_SCREEN_FORMS, SITE_NODE_SCREEN_RENDERER, PLACEMENTS, ICONS;
8379
8379
  var init_site_shell = __esm({
8380
8380
  "../../core/ts/src/site-shell.ts"() {
8381
- "use strict";
8382
8381
  init_define_HHP_CATALOG();
8383
8382
  init_himi_package();
8384
8383
  init_icon_catalog_generated();
@@ -42162,7 +42161,6 @@ function shouldRevealError(args) {
42162
42161
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
42163
42162
  var init_validation = __esm({
42164
42163
  "../../core/ts/src/validation.ts"() {
42165
- "use strict";
42166
42164
  init_define_HHP_CATALOG();
42167
42165
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
42168
42166
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
@@ -249563,7 +249561,7 @@ function federatedTokenNeedsRefresh(token, nowSec) {
249563
249561
  function isStoredLogin(target, token, path2) {
249564
249562
  return !!token && loadStoredLogin(target, path2 ?? defaultTargetsPath()).controlToken === token;
249565
249563
  }
249566
- async function withLock2(path2, deps, fn2) {
249564
+ async function withLock2(path2, deps, fn2, onTimeout) {
249567
249565
  const lock = `${path2}.refresh.lock`;
249568
249566
  const sleep4 = deps.sleep ?? ((ms2) => new Promise((r3) => setTimeout(r3, ms2)));
249569
249567
  const started = Date.now();
@@ -249582,7 +249580,7 @@ async function withLock2(path2, deps, fn2) {
249582
249580
  } catch {
249583
249581
  continue;
249584
249582
  }
249585
- if (Date.now() - started > LOCK_WAIT_MS) break;
249583
+ if (Date.now() - started > (deps.lockWaitMs ?? LOCK_WAIT_MS)) return onTimeout();
249586
249584
  await sleep4(100);
249587
249585
  }
249588
249586
  }
@@ -249644,7 +249642,7 @@ async function refreshStoredLogin(target, opts = {}) {
249644
249642
  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
249643
  }
249646
249644
  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
- });
249645
+ }, () => ({ ok: false, code: "refresh_unavailable", error: "another himi process is renewing this login", hint: "retry in a moment; the stored login is unchanged" }));
249648
249646
  }
249649
249647
  var FEDERATED_REFRESH_PATH, EARLY_SEC, LOCK_STALE_MS, LOCK_WAIT_MS;
249650
249648
  var init_login_refresh = __esm({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1791.0",
3
+ "version": "0.1792.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": "b1e4f6b29f897edb559a3eeda5db714e028eebc3941ef7a1defdef70"
85
+ "falconPackageHash": "347ef286dea7a0178e8043e6e914b1b59bdd9b318784260ebaf9e066"
86
86
  }