@wix/himalaya-cli 0.828.0 → 0.829.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 +17 -9
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -39281,6 +39281,7 @@ __export(build_exports2, {
|
|
|
39281
39281
|
gitSha: () => gitSha,
|
|
39282
39282
|
isMonorepoCheckout: () => isMonorepoCheckout,
|
|
39283
39283
|
l10nLintOptions: () => l10nLintOptions,
|
|
39284
|
+
linkableScreenIdsFrom: () => linkableScreenIdsFrom,
|
|
39284
39285
|
listBuildableApps: () => listBuildableApps,
|
|
39285
39286
|
maximumBinaryVersion: () => maximumBinaryVersion,
|
|
39286
39287
|
navLogicBundleUrl: () => navLogicBundleUrl,
|
|
@@ -39495,6 +39496,21 @@ async function withStoreNavBundle(text2, address) {
|
|
|
39495
39496
|
}
|
|
39496
39497
|
return JSON.stringify(cfg);
|
|
39497
39498
|
}
|
|
39499
|
+
function linkableScreenIdsFrom(text2) {
|
|
39500
|
+
let cfg;
|
|
39501
|
+
try {
|
|
39502
|
+
cfg = JSON.parse(text2);
|
|
39503
|
+
} catch {
|
|
39504
|
+
return [];
|
|
39505
|
+
}
|
|
39506
|
+
const ids = /* @__PURE__ */ new Set();
|
|
39507
|
+
for (const list of [cfg?.linkableScreens, cfg?.navigation?.linkableScreens]) {
|
|
39508
|
+
for (const s of Array.isArray(list) ? list : []) {
|
|
39509
|
+
if (typeof s?.screenId === "string" && s.screenId) ids.add(s.screenId);
|
|
39510
|
+
}
|
|
39511
|
+
}
|
|
39512
|
+
return [...ids];
|
|
39513
|
+
}
|
|
39498
39514
|
function withProdServeAppConfig(text2, prod) {
|
|
39499
39515
|
if (!prod?.serve) return text2;
|
|
39500
39516
|
let cfg;
|
|
@@ -40058,15 +40074,7 @@ async function buildFromLoaded(preloaded, dest, opts = {}) {
|
|
|
40058
40074
|
});
|
|
40059
40075
|
await store.putAppConfig(app, text2);
|
|
40060
40076
|
appConfigHash = sha2564(text2);
|
|
40061
|
-
if (collect?.descriptors)
|
|
40062
|
-
try {
|
|
40063
|
-
const cfg = JSON.parse(text2);
|
|
40064
|
-
for (const s of cfg.navigation?.linkableScreens ?? []) {
|
|
40065
|
-
if (typeof s?.screenId === "string" && s.screenId) linkable.add(s.screenId);
|
|
40066
|
-
}
|
|
40067
|
-
} catch {
|
|
40068
|
-
}
|
|
40069
|
-
}
|
|
40077
|
+
if (collect?.descriptors) for (const id of linkableScreenIdsFrom(text2)) linkable.add(id);
|
|
40070
40078
|
}
|
|
40071
40079
|
const ahRes = await devFetch(`${base}/v1/action-handlers/${encodeURIComponent(app)}`, { headers: { "X-Himalaya-App": app } });
|
|
40072
40080
|
if (ahRes.ok) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.829.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": "
|
|
66
|
+
"falconPackageHash": "63e3ba88b71ed4fdd866382d1faf9a8e341668daab48feb0c1be4584"
|
|
67
67
|
}
|