@wix/himalaya-cli 0.986.0 → 0.987.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 +7 -6
  2. package/package.json +2 -2
package/dist/cli.mjs CHANGED
@@ -18857,7 +18857,6 @@ function shouldRevealError(args) {
18857
18857
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE;
18858
18858
  var init_validation = __esm({
18859
18859
  "../../core/ts/src/validation.ts"() {
18860
- "use strict";
18861
18860
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
18862
18861
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
18863
18862
  INTEGER_RE = /^[+-]?[0-9]+$/;
@@ -22282,7 +22281,6 @@ function validateWorkerSubtree(raw, slotId, policy, actionCatalog) {
22282
22281
  var WORKER_SUBTREE_CEILINGS, ID_PART, ACTION_ID;
22283
22282
  var init_worker_subtree = __esm({
22284
22283
  "../../core/ts/src/worker-subtree.ts"() {
22285
- "use strict";
22286
22284
  init_worker_subtree_safe_types_generated();
22287
22285
  WORKER_SUBTREE_CEILINGS = Object.freeze({
22288
22286
  maxEncodedBytes: 65536,
@@ -52618,12 +52616,15 @@ async function createPlaywrightBrowser(load = () => import("playwright"), siteFe
52618
52616
  }
52619
52617
  try {
52620
52618
  const page = await browser.newPage();
52621
- const dialable = /* @__PURE__ */ new Map();
52619
+ const inFlight = /* @__PURE__ */ new Map();
52622
52620
  const mayDial = (url) => {
52623
- const cached3 = dialable.get(url.hostname);
52624
- if (cached3) return cached3;
52621
+ const pending = inFlight.get(url.hostname);
52622
+ if (pending) return pending;
52625
52623
  const verdict = pin(url, AbortSignal.timeout(SUBRESOURCE_PIN_TIMEOUT_MS)).then(() => true, () => false);
52626
- dialable.set(url.hostname, verdict);
52624
+ inFlight.set(url.hostname, verdict);
52625
+ void verdict.finally(() => {
52626
+ if (inFlight.get(url.hostname) === verdict) inFlight.delete(url.hostname);
52627
+ });
52627
52628
  return verdict;
52628
52629
  };
52629
52630
  await page.route("**/*", async (route) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.986.0",
3
+ "version": "0.987.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": [
@@ -65,5 +65,5 @@
65
65
  "artifactId": "himalaya-cli"
66
66
  }
67
67
  },
68
- "falconPackageHash": "43bd0d15a28b9c677cc53272ebf2172c05f40aa9799b505d5fc9a304"
68
+ "falconPackageHash": "3f79c893fa88aecaae73386660fd819cce12d5a671bdf832dfbe7f39"
69
69
  }