@wix/himalaya-cli 0.1916.0 → 0.1917.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 +16 -0
  2. package/package.json +2 -2
package/dist/cli.mjs CHANGED
@@ -3963,6 +3963,7 @@ var init_himi_package = __esm({
3963
3963
  var ICON_VIEW_BOX, ICON_STROKE_WIDTH, ICON_FALLBACK, ICON_CATALOG, ICON_NORMALIZED_INDEX, ICON_NAMES;
3964
3964
  var init_icon_catalog_generated = __esm({
3965
3965
  "../../core/ts/src/icon-catalog.generated.ts"() {
3966
+ "use strict";
3966
3967
  init_define_HHP_CATALOG();
3967
3968
  ICON_VIEW_BOX = 24;
3968
3969
  ICON_STROKE_WIDTH = 2;
@@ -45459,6 +45460,7 @@ function shouldRevealError(args) {
45459
45460
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE, AUTHORED_PATTERN_LIMIT, authoredPatterns;
45460
45461
  var init_validation = __esm({
45461
45462
  "../../core/ts/src/validation.ts"() {
45463
+ "use strict";
45462
45464
  init_define_HHP_CATALOG();
45463
45465
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
45464
45466
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
@@ -197861,6 +197863,7 @@ async function navIssues(dir, strict) {
197861
197863
  const nav = cfg.navigation;
197862
197864
  const provisioning = readProvisioningFacts(dir);
197863
197865
  pushRouteIssues(cfg.push, nav, provisioning, warn4);
197866
+ pushRouteFragmentIssues(cfg.push, warn4);
197864
197867
  pushScreenMapIssues(cfg.push, provisioning, warn4);
197865
197868
  pushAuthIssues(cfg.push, cfg.auth, provisioning, warn4);
197866
197869
  pushFamilyIssues(cfg.push, warn4);
@@ -198048,6 +198051,19 @@ function pushRouteIssues(push, nav, provisioning, warn4) {
198048
198051
  }
198049
198052
  }
198050
198053
  }
198054
+ function pushRouteFragmentIssues(push, warn4) {
198055
+ if (!isPlainObject4(push) || !Array.isArray(push.routes)) return;
198056
+ for (const route of push.routes.filter(isPlainObject4)) {
198057
+ const match = String(route.match ?? "");
198058
+ const [path2 = "", query = ""] = match.split(/\?(.*)/s);
198059
+ const keys2 = query ? query.split("&").map((pair) => pair.split("=")[0] ?? "") : [];
198060
+ if (!path2.includes("#") && !keys2.some((key4) => key4.includes("#"))) continue;
198061
+ warn4(
198062
+ "push-route-match-fragment",
198063
+ `push.routes: "${match}" contains "#" in its path or a query key, but a notification's link is matched with its fragment cut off, so this route can never match. Match the path (and query) only.`
198064
+ );
198065
+ }
198066
+ }
198051
198067
  function pushLinkPrefixIssues(push, provisioning, warn4) {
198052
198068
  if (!isPlainObject4(push) || push.linkPrefixes === void 0) return;
198053
198069
  if (!Array.isArray(push.linkPrefixes)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1916.0",
3
+ "version": "0.1917.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": "c5c0badd8524a593e575a9aff3b67ec9c8fadf0d7a75f7645ab5efae"
85
+ "falconPackageHash": "fa276b4979d18c43b70e57309b90e82fa808506bbc7d727b87ed44ce"
86
86
  }