@wix/himalaya-cli 0.1123.0 → 0.1124.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 +19 -15
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -42270,10 +42270,10 @@ function cmsAnswer(seed2, method, bare, body) {
|
|
|
42270
42270
|
pagingMetadata: { count: rows.length, tooManyToCount: false }
|
|
42271
42271
|
};
|
|
42272
42272
|
}
|
|
42273
|
-
function layeredTransport(
|
|
42274
|
-
const rules =
|
|
42275
|
-
const cms =
|
|
42276
|
-
const canned =
|
|
42273
|
+
function layeredTransport(layers3) {
|
|
42274
|
+
const rules = layers3.rules?.length ? [...layers3.rules] : null;
|
|
42275
|
+
const cms = layers3.cmsSeed && Object.keys(layers3.cmsSeed).length ? layers3.cmsSeed : null;
|
|
42276
|
+
const canned = layers3.canned && Object.keys(layers3.canned).length ? layers3.canned : null;
|
|
42277
42277
|
const label2 = [rules && "mocked", cms && "cms", canned && "canned"].filter(Boolean).join("+") || "offline";
|
|
42278
42278
|
const call = async (method, path2, body) => {
|
|
42279
42279
|
const m = String(method).toUpperCase();
|
|
@@ -48606,7 +48606,11 @@ function painted(text8, page) {
|
|
|
48606
48606
|
}
|
|
48607
48607
|
function errorMessageOf(s) {
|
|
48608
48608
|
const e = s.error;
|
|
48609
|
-
return str3(s.errorText) ?? str3(s.errorMessage) ?? str3(e) ?? (e && typeof e === "object" ? str3(e.message) : void 0);
|
|
48609
|
+
return str3(s.errorText) ?? str3(s.errorMessage) ?? str3(e) ?? (e && typeof e === "object" ? str3(e.message) : void 0) ?? str3(s.errorTitle);
|
|
48610
|
+
}
|
|
48611
|
+
function layers2(s) {
|
|
48612
|
+
const c = s.collection;
|
|
48613
|
+
return c && typeof c === "object" && !Array.isArray(c) ? [s, c] : [s];
|
|
48610
48614
|
}
|
|
48611
48615
|
function screenStateOf(services, html, opts = {}) {
|
|
48612
48616
|
if (!services || typeof services !== "object") return null;
|
|
@@ -48615,17 +48619,17 @@ function screenStateOf(services, html, opts = {}) {
|
|
|
48615
48619
|
const page = html === void 0 ? void 0 : visibleText(html);
|
|
48616
48620
|
let loading = false;
|
|
48617
48621
|
let empty;
|
|
48618
|
-
for (const
|
|
48622
|
+
for (const top of states) for (const s of layers2(top)) {
|
|
48619
48623
|
const status = typeof s.status === "string" ? s.status.toLowerCase() : typeof s.phase === "string" ? s.phase.toLowerCase() : void 0;
|
|
48620
48624
|
const message = errorMessageOf(s);
|
|
48621
|
-
const flagged = status === "error" || status === "failed" || s.hasError === true || s.isError === true;
|
|
48625
|
+
const flagged = status === "error" || status === "failed" || s.hasError === true || s.isError === true || s.isErrored === true || s.errored === true || s.noError === false || s.notErrored === false;
|
|
48622
48626
|
if (flagged && !(message && page !== void 0 && !painted(message, page)) || message && page !== void 0 && painted(message, page)) {
|
|
48623
48627
|
const line = message && painted(message, page) ? quotableLine(message) : void 0;
|
|
48624
48628
|
return { state: "error", ...line ? { line } : {} };
|
|
48625
48629
|
}
|
|
48626
|
-
if (status === "loading" || s.isLoading === true) loading = true;
|
|
48627
|
-
const emptyText = str3(s.emptyText);
|
|
48628
|
-
if (!empty && (status === "empty" || s.isEmpty === true || emptyText && page !== void 0 && painted(emptyText, page))) {
|
|
48630
|
+
if (status === "loading" || s.isLoading === true || s.noLoading === false) loading = true;
|
|
48631
|
+
const emptyText = str3(s.emptyText) ?? str3(s.emptySourceText);
|
|
48632
|
+
if (!empty && (status === "empty" || s.isEmpty === true || s.noEmptySource === false || emptyText && page !== void 0 && painted(emptyText, page))) {
|
|
48629
48633
|
const line = emptyText && painted(emptyText, page) ? quotableLine(emptyText) : void 0;
|
|
48630
48634
|
empty = { state: "empty", ...line ? { line } : {} };
|
|
48631
48635
|
}
|
|
@@ -52147,12 +52151,12 @@ async function runCrawl(opts) {
|
|
|
52147
52151
|
};
|
|
52148
52152
|
}
|
|
52149
52153
|
function describeTransport(net, opts, ran) {
|
|
52150
|
-
const
|
|
52151
|
-
if (net)
|
|
52154
|
+
const layers3 = [];
|
|
52155
|
+
if (net) layers3.push(`mocked (${net.from})`);
|
|
52152
52156
|
const cmsCount = Object.keys(opts.cmsSeed ?? {}).length;
|
|
52153
|
-
if (cmsCount)
|
|
52154
|
-
if (opts.canned?.count)
|
|
52155
|
-
const base =
|
|
52157
|
+
if (cmsCount) layers3.push(`cms (${cmsCount} seeded collection${cmsCount === 1 ? "" : "s"})`);
|
|
52158
|
+
if (opts.canned?.count) layers3.push(`canned (${opts.canned.count} frozen endpoints, ${opts.canned.from} \u2014 exercises code paths, not API-contract truth)`);
|
|
52159
|
+
const base = layers3.length ? layers3.join(" + ") : "offline (no net fixture \u2014 screens are crawled against a rejecting transport, which exercises their failure UI)";
|
|
52156
52160
|
const hostile = ran.hostile ? " + hostile boot passes (empty-lists, all-500)" : "";
|
|
52157
52161
|
const relations = ran.relations ? " + relations" : "";
|
|
52158
52162
|
const deep = ran.deep ? ` + deep chains (depth ${opts.deep})` : "";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1124.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": [
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"artifactId": "himalaya-cli"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
"falconPackageHash": "
|
|
70
|
+
"falconPackageHash": "d134385e1355f569ff64889caf5511ac9b1d13f3f1e69b35cc89dc37"
|
|
71
71
|
}
|