@spiffcommerce/core 33.13.5-beta.53878f2b-f2b3-508d-96fe-8a838d6607b5 → 33.13.5-beta.bf9e6812-4b7d-59ec-92d3-64859ca497f4

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/index.mjs CHANGED
@@ -11415,12 +11415,10 @@ const el = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
11415
11415
  return JSON.stringify(a, this.sortKeysReplacer, void 0);
11416
11416
  }
11417
11417
  async getStateHash() {
11418
- const e = this.getCommandContext().getAllLayouts().map((r) => r.layoutState.modificationID || "").sort().join("");
11419
- console.log("raw modification IDs:", e);
11420
- const i = new TextEncoder().encode(e);
11418
+ const e = this.getCommandContext().getAllLayouts().map((r) => r.layoutState.modificationID || "").sort().join(""), i = new TextEncoder().encode(e);
11421
11419
  if (typeof window < "u" && window.crypto && window.crypto.subtle && window.crypto.subtle.digest) {
11422
- const r = await window.crypto.subtle.digest("SHA-256", i), s = Array.from(new Uint8Array(r)).map((l) => l.toString(16).padStart(2, "0")).join("");
11423
- return console.log("computed hash:", s), s;
11420
+ const r = await window.crypto.subtle.digest("SHA-256", i);
11421
+ return Array.from(new Uint8Array(r)).map((l) => l.toString(16).padStart(2, "0")).join("");
11424
11422
  }
11425
11423
  try {
11426
11424
  return (await import("crypto")).createHash("sha256").update(e, "utf8").digest("hex");
@@ -16124,7 +16122,7 @@ class Rd {
16124
16122
  } catch (a) {
16125
16123
  throw console.error(a), new gt("Critical - Unable to synchronize workflow state with server.");
16126
16124
  }
16127
- }, this.options = t, this.options.applicationKey && ar(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 33.13.5-beta.bf9e6812-4b7d-59ec-92d3-64859ca497f4"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16125
+ }, this.options = t, this.options.applicationKey && ar(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 33.13.5"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16128
16126
  }
16129
16127
  configure(t) {
16130
16128
  pt.setHubUrl(t.hubUrl), pt.setServerUrl(t.serverUrl), pt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, this.userPoolClientId = t.userPoolClientId, this.userPoolRegion = t.userPoolRegion, this.spiffRegion = t.spiffRegion, t.bearerAuthenticationToken && ir(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);