@spiffcommerce/core 33.13.5-beta.2ee6c5f2-a71a-5c98-a737-d5aac78607b7 → 33.13.5-beta.61658246-b1d3-5b37-bba7-e3d902f49072
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.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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 t = this.getCommandContext().getState(), a = Object.values(t?.transaction.layouts || {}).map((o) => o.modificationID ?? "").sort().join("");
|
|
11419
|
-
console.log("raw modification IDs:", a);
|
|
11420
|
-
const r = new TextEncoder().encode(a);
|
|
11418
|
+
const t = this.getCommandContext().getState(), a = Object.values(t?.transaction.layouts || {}).map((o) => o.modificationID ?? "").sort().join(""), r = new TextEncoder().encode(a);
|
|
11421
11419
|
if (typeof window < "u" && window.crypto && window.crypto.subtle && window.crypto.subtle.digest) {
|
|
11422
|
-
const o = await window.crypto.subtle.digest("SHA-256", r)
|
|
11423
|
-
return
|
|
11420
|
+
const o = await window.crypto.subtle.digest("SHA-256", r);
|
|
11421
|
+
return Array.from(new Uint8Array(o)).map((c) => c.toString(16).padStart(2, "0")).join("");
|
|
11424
11422
|
}
|
|
11425
11423
|
try {
|
|
11426
11424
|
return (await import("crypto")).createHash("sha256").update(a, "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.
|
|
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-beta.2ee6c5f2-a71a-5c98-a737-d5aac78607b7"), 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);
|