@wix/himalaya-cli 0.1862.0 → 0.1863.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 -4
  2. package/package.json +2 -2
package/dist/cli.mjs CHANGED
@@ -407,7 +407,9 @@ var init_client = __esm({
407
407
  method: target.method ?? "PUT",
408
408
  headers: { ...headers2, ...viaControl ? this.ctrlHeaders() : {} },
409
409
  ...viaControl ? { redirect: "error" } : {},
410
- body: bytes2
410
+ // A metered release store asks for the bytes base64 inside JSON: the deployed host passes
411
+ // no binary body through (serve-control LARGE_ASSET_JSON_ENCODING).
412
+ body: target.encoding === "base64-json" ? JSON.stringify({ base64: Buffer.from(bytes2.buffer, bytes2.byteOffset, bytes2.byteLength).toString("base64") }) : bytes2
411
413
  });
412
414
  return { ok: res.ok, status: res.status, text: await res.text().catch(() => "") };
413
415
  }
@@ -4450,7 +4452,6 @@ var init_himi_package = __esm({
4450
4452
  var ICON_VIEW_BOX, ICON_STROKE_WIDTH, ICON_FALLBACK, ICON_CATALOG, ICON_NORMALIZED_INDEX, ICON_NAMES;
4451
4453
  var init_icon_catalog_generated = __esm({
4452
4454
  "../../core/ts/src/icon-catalog.generated.ts"() {
4453
- "use strict";
4454
4455
  init_define_HHP_CATALOG();
4455
4456
  ICON_VIEW_BOX = 24;
4456
4457
  ICON_STROKE_WIDTH = 2;
@@ -254427,7 +254428,8 @@ async function uploadLargeAssets(client4, app2, uploads) {
254427
254428
  uploadUrl: j2.uploadUrl,
254428
254429
  method: typeof j2.method === "string" ? j2.method : "PUT",
254429
254430
  headers: j2.headers && typeof j2.headers === "object" ? j2.headers : {},
254430
- ...typeof j2.auth === "string" ? { auth: j2.auth } : {}
254431
+ ...typeof j2.auth === "string" ? { auth: j2.auth } : {},
254432
+ ...typeof j2.encoding === "string" ? { encoding: j2.encoding } : {}
254431
254433
  }, bytes2);
254432
254434
  const wait = busyRetryAfterSec(put);
254433
254435
  if (wait === void 0 || waited + wait > LARGE_ASSET_BUSY_MAX_TOTAL_WAIT_SEC) break;
@@ -254476,7 +254478,7 @@ var LARGE_ASSET_BUSY_MAX_TOTAL_WAIT_SEC, LARGE_ASSET_BUSY_MAX_WAIT_SEC, sleep4;
254476
254478
  var init_large_assets = __esm({
254477
254479
  "../serve-cli/src/large-assets.ts"() {
254478
254480
  init_define_HHP_CATALOG();
254479
- LARGE_ASSET_BUSY_MAX_TOTAL_WAIT_SEC = 360;
254481
+ LARGE_ASSET_BUSY_MAX_TOTAL_WAIT_SEC = 480;
254480
254482
  LARGE_ASSET_BUSY_MAX_WAIT_SEC = 15;
254481
254483
  sleep4 = (ms2) => new Promise((r3) => setTimeout(r3, ms2));
254482
254484
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1862.0",
3
+ "version": "0.1863.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": "e214a5b200f410398725a2dfd3fc30b5059076faaf3ebfa548716932"
85
+ "falconPackageHash": "779f9ae30dffb8ba9f55210b8d375a9b58fe12ddd76e3879d33ae974"
86
86
  }