@wix/himalaya-cli 0.1542.0 → 0.1543.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 CHANGED
@@ -151122,19 +151122,19 @@ function isSymlink2(path2) {
151122
151122
  async function introducedErrors(dir, validate5, file2, isOwnFinding) {
151123
151123
  const edited = await validate5(dir, { fresh: true });
151124
151124
  if (edited.code === 0) return void 0;
151125
- if (!comparable(edited)) return `himi validate failed and its report could not be read: ${edited.tail ?? "no output"}`;
151125
+ const { comparable: comparable2, compareErrors: compareErrors2 } = await Promise.resolve().then(() => (init_template_trim(), template_trim_exports));
151126
+ if (!comparable2(edited)) return `himi validate failed and its report could not be read: ${edited.tail ?? "no output"}`;
151126
151127
  if (edited.errors.every((e2) => isOwnFinding(e2.ruleCode))) return void 0;
151127
151128
  file2.restore();
151128
151129
  const baseline = await validate5(dir, { fresh: true });
151129
151130
  file2.reapply();
151130
- if (!comparable(baseline)) return "himi validate could not check the original config.ts to compare against";
151131
- const introduced = compareErrors(edited.errors, baseline.errors ?? []).introduced.filter((e2) => !isOwnFinding(e2.ruleCode));
151131
+ if (!comparable2(baseline)) return "himi validate could not check the original config.ts to compare against";
151132
+ const introduced = compareErrors2(edited.errors, baseline.errors ?? []).introduced.filter((e2) => !isOwnFinding(e2.ruleCode));
151132
151133
  return introduced.length ? `the edit introduced ${introduced.length === 1 ? "an error" : `${introduced.length} errors`}: ` + introduced.map((e2) => e2.message).join("; ") : void 0;
151133
151134
  }
151134
151135
  var init_config_source_edit = __esm({
151135
151136
  "src/config-source-edit.ts"() {
151136
151137
  init_progress();
151137
- init_template_trim();
151138
151138
  }
151139
151139
  });
151140
151140
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1542.0",
3
+ "version": "0.1543.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": [
@@ -71,5 +71,5 @@
71
71
  "artifactId": "himalaya-cli"
72
72
  }
73
73
  },
74
- "falconPackageHash": "df1b4ea698663ced2b915395398ceb7e54e9d4ef814dbfe53215381d"
74
+ "falconPackageHash": "09228c43934e4e9f2b68984330c9830359aca30af7bd2c96c0073572"
75
75
  }
@@ -200,8 +200,11 @@ const memberKey = (member: { email: string; scope?: string }) => member.email ?
200
200
  let cacheWrite = Promise.resolve();
201
201
  const svc = defineBackendCollection("himiBrandedOrders", {
202
202
  restorePagesOnLoad: true,
203
+ // `nextCursor` and `filterOptions` are bound by himi_orders (pagination cursor, filter sheet), so they are
204
+ // seeded here: `himi validate --strict` refuses a binding the initial state cannot resolve.
203
205
  state: derive({ status: "loading", rows: [], identityLine: "", emptyText: "", isLoading: true,
204
- notLoading: false, isErrored: false, notErrored: true, noEmpty: true, hideList: true, siteHint: "" }),
206
+ notLoading: false, isErrored: false, notErrored: true, noEmpty: true, hideList: true, siteHint: "",
207
+ nextCursor: "", filterOptions: [] }),
205
208
  source: {
206
209
  id: (row: OrderRow) => row.id,
207
210
  clearOnError: orderAccessDenied,
@@ -200,8 +200,11 @@ const memberKey = (member: { email: string; scope?: string }) => member.email ?
200
200
  let cacheWrite = Promise.resolve();
201
201
  const svc = defineBackendCollection("himiBrandedOrders", {
202
202
  restorePagesOnLoad: true,
203
+ // `nextCursor` and `filterOptions` are bound by himi_orders (pagination cursor, filter sheet), so they are
204
+ // seeded here: `himi validate --strict` refuses a binding the initial state cannot resolve.
203
205
  state: derive({ status: "loading", rows: [], identityLine: "", emptyText: "", isLoading: true,
204
- notLoading: false, isErrored: false, notErrored: true, noEmpty: true, hideList: true, siteHint: "" }),
206
+ notLoading: false, isErrored: false, notErrored: true, noEmpty: true, hideList: true, siteHint: "",
207
+ nextCursor: "", filterOptions: [] }),
205
208
  source: {
206
209
  id: (row: OrderRow) => row.id,
207
210
  clearOnError: orderAccessDenied,
@@ -200,8 +200,11 @@ const memberKey = (member: { email: string; scope?: string }) => member.email ?
200
200
  let cacheWrite = Promise.resolve();
201
201
  const svc = defineBackendCollection("himiBrandedOrders", {
202
202
  restorePagesOnLoad: true,
203
+ // `nextCursor` and `filterOptions` are bound by himi_orders (pagination cursor, filter sheet), so they are
204
+ // seeded here: `himi validate --strict` refuses a binding the initial state cannot resolve.
203
205
  state: derive({ status: "loading", rows: [], identityLine: "", emptyText: "", isLoading: true,
204
- notLoading: false, isErrored: false, notErrored: true, noEmpty: true, hideList: true, siteHint: "" }),
206
+ notLoading: false, isErrored: false, notErrored: true, noEmpty: true, hideList: true, siteHint: "",
207
+ nextCursor: "", filterOptions: [] }),
205
208
  source: {
206
209
  id: (row: OrderRow) => row.id,
207
210
  clearOnError: orderAccessDenied,
@@ -200,8 +200,11 @@ const memberKey = (member: { email: string; scope?: string }) => member.email ?
200
200
  let cacheWrite = Promise.resolve();
201
201
  const svc = defineBackendCollection("himiBrandedOrders", {
202
202
  restorePagesOnLoad: true,
203
+ // `nextCursor` and `filterOptions` are bound by himi_orders (pagination cursor, filter sheet), so they are
204
+ // seeded here: `himi validate --strict` refuses a binding the initial state cannot resolve.
203
205
  state: derive({ status: "loading", rows: [], identityLine: "", emptyText: "", isLoading: true,
204
- notLoading: false, isErrored: false, notErrored: true, noEmpty: true, hideList: true, siteHint: "" }),
206
+ notLoading: false, isErrored: false, notErrored: true, noEmpty: true, hideList: true, siteHint: "",
207
+ nextCursor: "", filterOptions: [] }),
205
208
  source: {
206
209
  id: (row: OrderRow) => row.id,
207
210
  clearOnError: orderAccessDenied,
@@ -200,8 +200,11 @@ const memberKey = (member: { email: string; scope?: string }) => member.email ?
200
200
  let cacheWrite = Promise.resolve();
201
201
  const svc = defineBackendCollection("himiBrandedOrders", {
202
202
  restorePagesOnLoad: true,
203
+ // `nextCursor` and `filterOptions` are bound by himi_orders (pagination cursor, filter sheet), so they are
204
+ // seeded here: `himi validate --strict` refuses a binding the initial state cannot resolve.
203
205
  state: derive({ status: "loading", rows: [], identityLine: "", emptyText: "", isLoading: true,
204
- notLoading: false, isErrored: false, notErrored: true, noEmpty: true, hideList: true, siteHint: "" }),
206
+ notLoading: false, isErrored: false, notErrored: true, noEmpty: true, hideList: true, siteHint: "",
207
+ nextCursor: "", filterOptions: [] }),
205
208
  source: {
206
209
  id: (row: OrderRow) => row.id,
207
210
  clearOnError: orderAccessDenied,