@spiffcommerce/core 29.1.0 → 29.1.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
@@ -15924,8 +15924,8 @@ class Ml {
15924
15924
  (e == null ? void 0 : e.ChallengeName) === "CUSTOM_CHALLENGE" && (this.challengeSession = e.Session);
15925
15925
  }
15926
15926
  async verifyCode(t, e, a) {
15927
- var n;
15928
- return await ((n = this.cognitoClient) == null ? void 0 : n.send(
15927
+ var i;
15928
+ const n = await ((i = this.cognitoClient) == null ? void 0 : i.send(
15929
15929
  new wr({
15930
15930
  ClientId: this.userPoolClientId,
15931
15931
  ChallengeName: "CUSTOM_CHALLENGE",
@@ -15940,6 +15940,7 @@ class Ml {
15940
15940
  }
15941
15941
  })
15942
15942
  ));
15943
+ return (n == null ? void 0 : n.ChallengeName) === "CUSTOM_CHALLENGE" && (this.challengeSession = n.Session), n;
15943
15944
  }
15944
15945
  async refreshTokens() {
15945
15946
  var a;
@@ -16100,7 +16101,7 @@ class hd {
16100
16101
  } catch (a) {
16101
16102
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
16102
16103
  }
16103
- }, this.options = t, this.options.applicationKey && $r(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 29.1.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16104
+ }, this.options = t, this.options.applicationKey && $r(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 29.1.1"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16104
16105
  }
16105
16106
  configure(t) {
16106
16107
  mt.setHubUrl(t.hubUrl), mt.setServerUrl(t.serverUrl), mt.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 && Lr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);