@wix/himalaya-cli 0.1530.0 → 0.1532.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 +11 -3
- package/package.json +2 -2
- package/templates/beauty-salon/dev/index.ts +1300 -430
- package/templates/beauty-salon/tier5-src/himi-branded-lite-agenda/index.ts +240 -74
- package/templates/branded-lite/dev/index.ts +1300 -430
- package/templates/branded-lite/tier5-src/himi-branded-lite-agenda/index.ts +240 -74
- package/templates/gym-fitness/dev/index.ts +1300 -430
- package/templates/gym-fitness/tier5-src/himi-branded-lite-agenda/index.ts +240 -74
- package/templates/yoga-studio/dev/index.ts +1300 -430
- package/templates/yoga-studio/tier5-src/himi-branded-lite-agenda/index.ts +240 -74
package/dist/cli.mjs
CHANGED
|
@@ -12219,6 +12219,7 @@ function webViewOriginAllowed(url, origins) {
|
|
|
12219
12219
|
}
|
|
12220
12220
|
var init_webview_origin = __esm({
|
|
12221
12221
|
"../../core/ts/src/webview-origin.ts"() {
|
|
12222
|
+
"use strict";
|
|
12222
12223
|
}
|
|
12223
12224
|
});
|
|
12224
12225
|
|
|
@@ -22599,6 +22600,7 @@ function resolveIdiom(tokens2, ctx = {}) {
|
|
|
22599
22600
|
var IDIOM_CONTEXTS, UNSAFE_KEYS;
|
|
22600
22601
|
var init_idiom = __esm({
|
|
22601
22602
|
"../../core/ts/src/idiom.ts"() {
|
|
22603
|
+
"use strict";
|
|
22602
22604
|
IDIOM_CONTEXTS = {
|
|
22603
22605
|
ios: { native: ["ios"] },
|
|
22604
22606
|
android: { native: ["material"] },
|
|
@@ -150988,7 +150990,8 @@ function ignoredChange(relPath, isDirectory = () => false, rasterDir = "assets/h
|
|
|
150988
150990
|
}
|
|
150989
150991
|
if (!parts.length) return true;
|
|
150990
150992
|
const [top] = parts;
|
|
150991
|
-
if ([".himi", "
|
|
150993
|
+
if ([".himi", "dist", "node_modules", ".git", ".build", ...AGENT_TOOLING_DIRS].includes(top)) return true;
|
|
150994
|
+
if (top === ".wix" && (parts.length > 1 || isDirectory(top))) return true;
|
|
150992
150995
|
if (parts.length === 1 && AGENT_TOOLING_ROOT_FILES.includes(top)) return true;
|
|
150993
150996
|
if ((top === "shots" || top === "evidence") && (parts.length > 1 || isDirectory(top))) return true;
|
|
150994
150997
|
const name = parts[parts.length - 1];
|
|
@@ -166658,12 +166661,13 @@ ${releaseId}`;
|
|
|
166658
166661
|
const corsHeaders = (request) => {
|
|
166659
166662
|
const origin = request.headers.get("origin");
|
|
166660
166663
|
if (!origin) return {};
|
|
166661
|
-
|
|
166664
|
+
const path2 = new URL(request.url).pathname;
|
|
166665
|
+
if (isCookieAuthorizedPath(path2)) return {};
|
|
166662
166666
|
return {
|
|
166663
166667
|
"access-control-allow-origin": origin,
|
|
166664
166668
|
vary: "Origin",
|
|
166665
166669
|
"access-control-allow-methods": "GET, HEAD, POST, PUT, DELETE, OPTIONS",
|
|
166666
|
-
"access-control-allow-headers": "Content-Type, If-None-Match, X-Himalaya-Schema-Versions, Accept-Language, X-Himalaya-Session, X-Himalaya-User, X-Himalaya-Platform, X-Himalaya-App-Version, X-Himalaya-App, X-Himalaya-Release, X-Himalaya-Release-Source, X-Himalaya-Preview-Token, X-Himalaya-Member-Session",
|
|
166670
|
+
"access-control-allow-headers": (path2 === "/v1/__webwix/member-exchange" ? "Authorization, " : "") + "Content-Type, If-None-Match, X-Himalaya-Schema-Versions, Accept-Language, X-Himalaya-Session, X-Himalaya-User, X-Himalaya-Platform, X-Himalaya-App-Version, X-Himalaya-App, X-Himalaya-Release, X-Himalaya-Release-Source, X-Himalaya-Preview-Token, X-Himalaya-Member-Session",
|
|
166667
166671
|
"access-control-expose-headers": "ETag, X-Himalaya-Bundle-Integrity, X-Himalaya-App",
|
|
166668
166672
|
"access-control-allow-credentials": "true"
|
|
166669
166673
|
};
|
|
@@ -166922,6 +166926,10 @@ ${releaseId}`;
|
|
|
166922
166926
|
const exchanged = await exchangeMemberSession({ clientId: exchangeClient.clientId, sessionToken }, webwixFetch);
|
|
166923
166927
|
if (exchanged.ok) return json5(200, { accessToken: exchanged.accessToken, expiresAt: exchanged.expiresAt }, noStore);
|
|
166924
166928
|
if (exchanged.code === "bad_request") return json5(400, { error: "invalid_session_token", received }, noStore);
|
|
166929
|
+
if (exchanged.code === "redirect_session_failed" && exchanged.status === 428 && opts.memberPreviewFallback) {
|
|
166930
|
+
const member = await opts.memberPreviewFallback(request, gate.app).catch(() => null);
|
|
166931
|
+
if (member) return json5(200, member, noStore);
|
|
166932
|
+
}
|
|
166925
166933
|
return json5(502, { error: exchanged.code, ...exchanged.status !== void 0 ? { status: exchanged.status } : {} }, noStore);
|
|
166926
166934
|
}
|
|
166927
166935
|
if (request.method === "POST" && path2 === "/v1/__webwix/member-forward") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/himalaya-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1532.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": "3ccd0341aa7b889c614ab89ac1e188b032d61a2a169233290a66781a"
|
|
75
75
|
}
|