@wix/himalaya-cli 0.1531.0 → 0.1533.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 +7 -3
  2. package/package.json +2 -2
package/dist/cli.mjs CHANGED
@@ -22600,7 +22600,6 @@ function resolveIdiom(tokens2, ctx = {}) {
22600
22600
  var IDIOM_CONTEXTS, UNSAFE_KEYS;
22601
22601
  var init_idiom = __esm({
22602
22602
  "../../core/ts/src/idiom.ts"() {
22603
- "use strict";
22604
22603
  IDIOM_CONTEXTS = {
22605
22604
  ios: { native: ["ios"] },
22606
22605
  android: { native: ["material"] },
@@ -166661,12 +166660,13 @@ ${releaseId}`;
166661
166660
  const corsHeaders = (request) => {
166662
166661
  const origin = request.headers.get("origin");
166663
166662
  if (!origin) return {};
166664
- if (isCookieAuthorizedPath(new URL(request.url).pathname)) return {};
166663
+ const path2 = new URL(request.url).pathname;
166664
+ if (isCookieAuthorizedPath(path2)) return {};
166665
166665
  return {
166666
166666
  "access-control-allow-origin": origin,
166667
166667
  vary: "Origin",
166668
166668
  "access-control-allow-methods": "GET, HEAD, POST, PUT, DELETE, OPTIONS",
166669
- "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",
166669
+ "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",
166670
166670
  "access-control-expose-headers": "ETag, X-Himalaya-Bundle-Integrity, X-Himalaya-App",
166671
166671
  "access-control-allow-credentials": "true"
166672
166672
  };
@@ -166925,6 +166925,10 @@ ${releaseId}`;
166925
166925
  const exchanged = await exchangeMemberSession({ clientId: exchangeClient.clientId, sessionToken }, webwixFetch);
166926
166926
  if (exchanged.ok) return json5(200, { accessToken: exchanged.accessToken, expiresAt: exchanged.expiresAt }, noStore);
166927
166927
  if (exchanged.code === "bad_request") return json5(400, { error: "invalid_session_token", received }, noStore);
166928
+ if (exchanged.code === "redirect_session_failed" && exchanged.status === 428 && opts.memberPreviewFallback) {
166929
+ const member = await opts.memberPreviewFallback(request, gate.app).catch(() => null);
166930
+ if (member) return json5(200, member, noStore);
166931
+ }
166928
166932
  return json5(502, { error: exchanged.code, ...exchanged.status !== void 0 ? { status: exchanged.status } : {} }, noStore);
166929
166933
  }
166930
166934
  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.1531.0",
3
+ "version": "0.1533.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": "a3bebe4004fe235fcc654ab9403873d35ff2d504cf4882b3726139c8"
74
+ "falconPackageHash": "4d7721dac0ce3d1082d10dcfb3c6f5bf695d74870c891a1ed7cbb150"
75
75
  }