@wix/himalaya-cli 0.822.0 → 0.823.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 +6 -3
  2. package/package.json +2 -2
package/dist/cli.mjs CHANGED
@@ -25112,7 +25112,6 @@ function shouldRevealError(args) {
25112
25112
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE;
25113
25113
  var init_validation = __esm({
25114
25114
  "../../core/ts/src/validation.ts"() {
25115
- "use strict";
25116
25115
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
25117
25116
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
25118
25117
  INTEGER_RE = /^[+-]?[0-9]+$/;
@@ -28579,7 +28578,6 @@ function validateWorkerSubtree(raw, slotId, policy, actionCatalog) {
28579
28578
  var WORKER_SUBTREE_CEILINGS, ID_PART, ACTION_ID;
28580
28579
  var init_worker_subtree = __esm({
28581
28580
  "../../core/ts/src/worker-subtree.ts"() {
28582
- "use strict";
28583
28581
  init_worker_subtree_safe_types_generated();
28584
28582
  WORKER_SUBTREE_CEILINGS = Object.freeze({
28585
28583
  maxEncodedBytes: 65536,
@@ -36899,7 +36897,12 @@ async function handleWebWix(req, res, state) {
36899
36897
  const target = new URL(requestedPath, "https://www.wixapis.com");
36900
36898
  const query = Object.fromEntries(target.searchParams.entries());
36901
36899
  const started = Date.now();
36902
- const match = state.wix.mode === "mock" ? matchRuleEx(state.wix.rules, method, target.pathname, { host: target.host, query, body }) : void 0;
36900
+ const matchCtx = { host: target.host, query, headers: forwardedHeaders, body };
36901
+ let match = state.wix.mode === "mock" ? matchRuleEx(state.wix.rules, method, target.pathname, matchCtx) : void 0;
36902
+ if (match && (match.rule.kind ?? "mock") !== "mock") {
36903
+ console.error(`[himalaya-dev] net-mocks: rule "${match.rule.id}" is kind:"${match.rule.kind}", which the web bridge cannot apply \u2014 ignoring it for ${method} ${target.pathname}`);
36904
+ match = matchRuleEx(state.wix.rules.filter((r) => (r.kind ?? "mock") === "mock"), method, target.pathname, matchCtx);
36905
+ }
36903
36906
  if (match && (match.rule.kind ?? "mock") === "mock") {
36904
36907
  const mocked = match.rule.response;
36905
36908
  if (mocked.delayMs) await new Promise((resolve41) => setTimeout(resolve41, mocked.delayMs));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.822.0",
3
+ "version": "0.823.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": [
@@ -63,5 +63,5 @@
63
63
  "artifactId": "himalaya-cli"
64
64
  }
65
65
  },
66
- "falconPackageHash": "7c2d068c0d6e24b5c57701a69b820866c5307d58348ea185ca243d74"
66
+ "falconPackageHash": "8d426f4512e281bd2df75c8be16c73e28ca527e78ef39e81086b5bc1"
67
67
  }