@spiffcommerce/core 32.1.1-beta.dd6ba549-af6a-55a7-a5b1-c73eebc8f7e2 → 32.2.0-beta.19153fed-e0bc-5f5f-8acf-49dc9a9c3eb8
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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -10680,7 +10680,6 @@ class So {
|
|
10680
10680
|
}
|
10681
10681
|
updateStateWithServer() {
|
10682
10682
|
if (this.readOnly) return;
|
10683
|
-
console.log("updating state");
|
10684
10683
|
const t = this.serialize();
|
10685
10684
|
this.workflowStatePromiseQueue.enqueue(
|
10686
10685
|
new Ya(async () => {
|
@@ -10699,7 +10698,6 @@ class So {
|
|
10699
10698
|
}
|
10700
10699
|
async updateStateWithServerImmediate() {
|
10701
10700
|
if (this.readOnly) return;
|
10702
|
-
console.log("updating state immediate");
|
10703
10701
|
const t = this.serialize();
|
10704
10702
|
return new Ya(async () => {
|
10705
10703
|
await this.updateTransaction({
|
@@ -15349,9 +15347,7 @@ class _e {
|
|
15349
15347
|
}
|
15350
15348
|
async onGlobalPropertiesChanged(t, e) {
|
15351
15349
|
const a = await this.globalPropertyHandleService.getHandles(), n = this.globalPropertyHandleService.applyConditionsFromState(a, t), i = this.globalPropertyHandleService.applyConditionsFromState(a, e);
|
15352
|
-
this.checkConditionalHandlesChanged(n, i), this.checkMandatoryHandlesChanged(t, i);
|
15353
|
-
const s = i.filter((o) => !n.includes(o));
|
15354
|
-
await Promise.all(s.map((o) => o.applyGlobalState()));
|
15350
|
+
this.checkConditionalHandlesChanged(n, i), this.checkMandatoryHandlesChanged(t, i), await Promise.all(i.map((s) => s.applyGlobalState()));
|
15355
15351
|
}
|
15356
15352
|
checkConditionalHandlesChanged(t, e) {
|
15357
15353
|
(() => {
|
@@ -15969,7 +15965,7 @@ class pd {
|
|
15969
15965
|
} catch (a) {
|
15970
15966
|
throw console.error(a), new ht("Critical - Unable to synchronize workflow state with server.");
|
15971
15967
|
}
|
15972
|
-
}, this.options = t, this.options.applicationKey && Vr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.
|
15968
|
+
}, this.options = t, this.options.applicationKey && Vr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.2.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
15973
15969
|
}
|
15974
15970
|
configure(t) {
|
15975
15971
|
gt.setHubUrl(t.hubUrl), gt.setServerUrl(t.serverUrl), gt.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 && Gr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|