@wix/himalaya-cli 0.1264.0 → 0.1265.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.
@@ -865,7 +865,7 @@ function decodeCustomerId(raw) {
865
865
  }
866
866
  function decodePayment(raw, expected) {
867
867
  if (!isObject3(raw) || !hasPaymentIds(raw) || !echoes(raw, expected) || !hasValidOptionals(raw)) return null;
868
- const status = STATUSES[String(raw.status)];
868
+ const status = ownValue(STATUSES, raw.status);
869
869
  return status ? toPayment(raw, status) : null;
870
870
  }
871
871
  function hasPaymentIds(raw) {
@@ -880,7 +880,7 @@ function hasValidOptionals(raw) {
880
880
  function toPayment(raw, status) {
881
881
  const optional = {
882
882
  appProductId: raw.appProductId,
883
- cancelReason: CANCEL_REASONS[String(raw.cancelReason)],
883
+ cancelReason: ownValue(CANCEL_REASONS, raw.cancelReason),
884
884
  purchaseTransactionId: raw.purchaseTransactionId,
885
885
  expiresDate: raw.expiresDate,
886
886
  approvedDate: raw.approvedDate,
@@ -936,6 +936,9 @@ function withoutUndefined(value) {
936
936
  function isOneOf(codes, code) {
937
937
  return codes.includes(code);
938
938
  }
939
+ function ownValue(table, key) {
940
+ return typeof key === "string" && Object.prototype.hasOwnProperty.call(table, key) ? table[key] : void 0;
941
+ }
939
942
  function isObject3(value) {
940
943
  return value !== null && typeof value === "object" && !Array.isArray(value);
941
944
  }
package/dist/cli.mjs CHANGED
@@ -6893,7 +6893,6 @@ function buttonVariant(style) {
6893
6893
  var SYSTEM_FONT_FAMILY, TONAL_ELEVATION_ALPHA, BUTTON_MIN_HIT_TARGET, nonNegative, nonEmpty, own, COLOR_TOKEN_PROPS, TYPOGRAPHY_TOKEN_PROPS, BUTTON_VARIANTS;
6894
6894
  var init_tokens = __esm({
6895
6895
  "../../core/ts/src/tokens.ts"() {
6896
- "use strict";
6897
6896
  SYSTEM_FONT_FAMILY = "$system";
6898
6897
  TONAL_ELEVATION_ALPHA = [0, 0.05, 0.08, 0.11, 0.12, 0.14];
6899
6898
  BUTTON_MIN_HIT_TARGET = 44;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1264.0",
3
+ "version": "0.1265.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": [
@@ -67,5 +67,5 @@
67
67
  "artifactId": "himalaya-cli"
68
68
  }
69
69
  },
70
- "falconPackageHash": "6164348fcd868a9238f69f22f42590f2e10be6a07feee5a842ea7f31"
70
+ "falconPackageHash": "6529df3a98d5e1b19af7c9ec4915aad9ef742dd0e92f3bef6cbbe67b"
71
71
  }