@spiffcommerce/core 32.2.0 → 32.2.1

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
@@ -15347,9 +15347,7 @@ class _e {
15347
15347
  }
15348
15348
  async onGlobalPropertiesChanged(t, e) {
15349
15349
  const a = await this.globalPropertyHandleService.getHandles(), n = this.globalPropertyHandleService.applyConditionsFromState(a, t), i = this.globalPropertyHandleService.applyConditionsFromState(a, e);
15350
- this.checkConditionalHandlesChanged(n, i), this.checkMandatoryHandlesChanged(t, i);
15351
- const s = i.filter((o) => !n.includes(o));
15352
- 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()));
15353
15351
  }
15354
15352
  checkConditionalHandlesChanged(t, e) {
15355
15353
  (() => {
@@ -15967,7 +15965,7 @@ class pd {
15967
15965
  } catch (a) {
15968
15966
  throw console.error(a), new ht("Critical - Unable to synchronize workflow state with server.");
15969
15967
  }
15970
- }, 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("------------------------");
15968
+ }, this.options = t, this.options.applicationKey && Vr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.2.1"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15971
15969
  }
15972
15970
  configure(t) {
15973
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);