@wix/himalaya-cli 0.1011.0 → 0.1013.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 +8 -3
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -19536,6 +19536,7 @@ function shouldRevealError(args) {
|
|
|
19536
19536
|
var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE;
|
|
19537
19537
|
var init_validation = __esm({
|
|
19538
19538
|
"../../core/ts/src/validation.ts"() {
|
|
19539
|
+
"use strict";
|
|
19539
19540
|
EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
|
|
19540
19541
|
URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
|
|
19541
19542
|
INTEGER_RE = /^[+-]?[0-9]+$/;
|
|
@@ -22960,6 +22961,7 @@ function validateWorkerSubtree(raw, slotId, policy, actionCatalog) {
|
|
|
22960
22961
|
var WORKER_SUBTREE_CEILINGS, ID_PART, ACTION_ID;
|
|
22961
22962
|
var init_worker_subtree = __esm({
|
|
22962
22963
|
"../../core/ts/src/worker-subtree.ts"() {
|
|
22964
|
+
"use strict";
|
|
22963
22965
|
init_worker_subtree_safe_types_generated();
|
|
22964
22966
|
WORKER_SUBTREE_CEILINGS = Object.freeze({
|
|
22965
22967
|
maxEncodedBytes: 65536,
|
|
@@ -46191,10 +46193,13 @@ ${releaseId}`;
|
|
|
46191
46193
|
}
|
|
46192
46194
|
);
|
|
46193
46195
|
}
|
|
46194
|
-
async function appConfigFor(
|
|
46196
|
+
async function appConfigFor(request, url, app) {
|
|
46195
46197
|
const store = await getStore();
|
|
46198
|
+
const pin = resolvePin(request, url);
|
|
46196
46199
|
let bytes2 = null;
|
|
46197
46200
|
if (pin) {
|
|
46201
|
+
const denied = await authorizePinnedRead(request, url, app, pin);
|
|
46202
|
+
if (denied) return { ok: false, response: denied };
|
|
46198
46203
|
const m = await pinnedManifest(app, pin);
|
|
46199
46204
|
if (!m) return { ok: false, response: json3(404, { error: "release_not_found", app, releaseId: pin }) };
|
|
46200
46205
|
bytes2 = m.appConfigHash ? await pinnedBody(app, m.appConfigHash, () => store.getAppConfig(app)) : null;
|
|
@@ -46348,7 +46353,7 @@ ${releaseId}`;
|
|
|
46348
46353
|
});
|
|
46349
46354
|
}
|
|
46350
46355
|
if (request.method !== "GET") return json3(405, { error: "method_not_allowed" });
|
|
46351
|
-
const cfg = await appConfigFor(
|
|
46356
|
+
const cfg = await appConfigFor(request, url, app2);
|
|
46352
46357
|
if (!cfg.ok) return cfg.response;
|
|
46353
46358
|
const resolved2 = wixMemberAuthOf(utf8Decode(cfg.bytes), callbackUrlFor(url));
|
|
46354
46359
|
if (!resolved2.ok) return json3(501, { error: `member_auth_${resolved2.error}`, app: app2 });
|
|
@@ -46406,7 +46411,7 @@ ${releaseId}`;
|
|
|
46406
46411
|
}
|
|
46407
46412
|
const app2 = resolveApp(request, url);
|
|
46408
46413
|
if (!app2) return json3(400, { error: "app_required" });
|
|
46409
|
-
const resolvedCfg = await appConfigFor(
|
|
46414
|
+
const resolvedCfg = await appConfigFor(request, url, app2);
|
|
46410
46415
|
if (!resolvedCfg.ok) return resolvedCfg.response;
|
|
46411
46416
|
const cfgBytes = resolvedCfg.bytes;
|
|
46412
46417
|
let call;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1013.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": [
|
|
@@ -65,5 +65,5 @@
|
|
|
65
65
|
"artifactId": "himalaya-cli"
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
"falconPackageHash": "
|
|
68
|
+
"falconPackageHash": "997481e9652da3d8aedd016c711987997556982fd0ac900d13dbc194"
|
|
69
69
|
}
|