@wix/himalaya-cli 0.1012.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 +6 -3
- package/package.json +2 -2
package/dist/cli.mjs
CHANGED
|
@@ -46193,10 +46193,13 @@ ${releaseId}`;
|
|
|
46193
46193
|
}
|
|
46194
46194
|
);
|
|
46195
46195
|
}
|
|
46196
|
-
async function appConfigFor(
|
|
46196
|
+
async function appConfigFor(request, url, app) {
|
|
46197
46197
|
const store = await getStore();
|
|
46198
|
+
const pin = resolvePin(request, url);
|
|
46198
46199
|
let bytes2 = null;
|
|
46199
46200
|
if (pin) {
|
|
46201
|
+
const denied = await authorizePinnedRead(request, url, app, pin);
|
|
46202
|
+
if (denied) return { ok: false, response: denied };
|
|
46200
46203
|
const m = await pinnedManifest(app, pin);
|
|
46201
46204
|
if (!m) return { ok: false, response: json3(404, { error: "release_not_found", app, releaseId: pin }) };
|
|
46202
46205
|
bytes2 = m.appConfigHash ? await pinnedBody(app, m.appConfigHash, () => store.getAppConfig(app)) : null;
|
|
@@ -46350,7 +46353,7 @@ ${releaseId}`;
|
|
|
46350
46353
|
});
|
|
46351
46354
|
}
|
|
46352
46355
|
if (request.method !== "GET") return json3(405, { error: "method_not_allowed" });
|
|
46353
|
-
const cfg = await appConfigFor(
|
|
46356
|
+
const cfg = await appConfigFor(request, url, app2);
|
|
46354
46357
|
if (!cfg.ok) return cfg.response;
|
|
46355
46358
|
const resolved2 = wixMemberAuthOf(utf8Decode(cfg.bytes), callbackUrlFor(url));
|
|
46356
46359
|
if (!resolved2.ok) return json3(501, { error: `member_auth_${resolved2.error}`, app: app2 });
|
|
@@ -46408,7 +46411,7 @@ ${releaseId}`;
|
|
|
46408
46411
|
}
|
|
46409
46412
|
const app2 = resolveApp(request, url);
|
|
46410
46413
|
if (!app2) return json3(400, { error: "app_required" });
|
|
46411
|
-
const resolvedCfg = await appConfigFor(
|
|
46414
|
+
const resolvedCfg = await appConfigFor(request, url, app2);
|
|
46412
46415
|
if (!resolvedCfg.ok) return resolvedCfg.response;
|
|
46413
46416
|
const cfgBytes = resolvedCfg.bytes;
|
|
46414
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
|
}
|