@wix/himalaya-cli 0.1385.0 → 0.1386.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 +10 -3
- package/guides/himi-json-output.md +1 -1
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -7708,7 +7708,6 @@ function resolveTranslation(value, catalog3, sourceCatalog) {
|
|
|
7708
7708
|
var BINDING_SIGILS, BINDING_SIGIL_RE, TRANSLATION_PREFIX, TRANSLATION_KEY_RE;
|
|
7709
7709
|
var init_bindings = __esm({
|
|
7710
7710
|
"../../core/ts/src/bindings.ts"() {
|
|
7711
|
-
"use strict";
|
|
7712
7711
|
BINDING_SIGILS = ["service", "flag", "item", "t"];
|
|
7713
7712
|
BINDING_SIGIL_RE = new RegExp(
|
|
7714
7713
|
`^\\$(?:${BINDING_SIGILS.filter((s2) => s2 !== "t").join("|")})\\b|^\\$t:`
|
|
@@ -176510,8 +176509,16 @@ var ServeCliClient = class {
|
|
|
176510
176509
|
const { bytes: bytes2, gzip } = encodePublishBody(publishReleaseBody(payload, meta, draft));
|
|
176511
176510
|
const headers2 = { ...this.ctrlHeaders(), ...gzip ? { "content-encoding": "gzip" } : {} };
|
|
176512
176511
|
const res = await this.request("control", "POST", "/v1/admin/release", { rawBody: bytes2, headers: headers2 });
|
|
176513
|
-
|
|
176514
|
-
|
|
176512
|
+
const refusal = res.json;
|
|
176513
|
+
const decodedOverPlainCap = res.status === 413 && refusal?.error === "payload_too_large" && refusal.limit === MAX_PUBLISH_BODY_BYTES && bytes2.byteLength <= MAX_PUBLISH_BODY_BYTES;
|
|
176514
|
+
if (gzip && (res.status === 400 && refusal?.error === "bad_json" || decodedOverPlainCap)) {
|
|
176515
|
+
const json6 = {
|
|
176516
|
+
code: "compressed_publish_unsupported",
|
|
176517
|
+
error: "compressed_publish_unsupported",
|
|
176518
|
+
hint: "this body is over the plain publish cap, and the plane did not accept it compressed: either the plane predates compressed publish bodies (it needs a serve deploy), or this is a self-serve credential, which keeps the plain 8 MB cap",
|
|
176519
|
+
sentBytes: bytes2.byteLength,
|
|
176520
|
+
...typeof refusal?.bytes === "number" ? { planeCountedBytes: refusal.bytes } : {}
|
|
176521
|
+
};
|
|
176515
176522
|
return { ...res, json: json6, text: JSON.stringify(json6) };
|
|
176516
176523
|
}
|
|
176517
176524
|
return res;
|
|
@@ -135,7 +135,7 @@ whole body gzip-encoded because it is over the plain 8 MB cap:
|
|
|
135
135
|
|
|
136
136
|
| Code | Meaning |
|
|
137
137
|
|---|---|
|
|
138
|
-
| `compressed_publish_unsupported` | The publish body went out gzipped and the publishing service did not accept it compressed
|
|
138
|
+
| `compressed_publish_unsupported` | The publish body went out gzipped and the publishing service did not accept it compressed. It either read the bytes as malformed JSON, or measured the decompressed body against the 8 MB uncompressed limit (HTTP 413). Either the service does not accept compressed bodies yet, or the credential is a self-serve one, which keeps the 8 MB uncompressed limit. Nothing was written. |
|
|
139
139
|
|
|
140
140
|
## `himi site member-app` codes
|
|
141
141
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1386.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": "
|
|
74
|
+
"falconPackageHash": "e3ab011108d918e98ce9eef090fd3e84e58228b81b990dce0393b625"
|
|
75
75
|
}
|