@spiffcommerce/core 26.41.1-beta.b72e3cc3-45ac-5be3-839a-6dbb8b395f26 → 26.41.1-beta.cc87c98f-e30a-5e14-ad02-fdadcd3db1bc
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 +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -15690,7 +15690,7 @@ class ed {
|
|
|
15690
15690
|
} catch (a) {
|
|
15691
15691
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15692
15692
|
}
|
|
15693
|
-
}, this.options = t, this.options.applicationKey && Qr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.41.1-beta.
|
|
15693
|
+
}, this.options = t, this.options.applicationKey && Qr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.41.1-beta.d08056f5-bf8a-5ac1-8ce3-cdc0f4f69df6"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15694
15694
|
}
|
|
15695
15695
|
configure(t) {
|
|
15696
15696
|
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 && Or(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();
|
|
@@ -16164,13 +16164,11 @@ class ed {
|
|
|
16164
16164
|
const i = (h = M.getMap("bundleOwnerIds")) == null ? void 0 : h.get(t), s = {};
|
|
16165
16165
|
try {
|
|
16166
16166
|
const S = await this.loggedInBearerToken();
|
|
16167
|
-
|
|
16168
|
-
} catch
|
|
16169
|
-
console.log(S);
|
|
16167
|
+
s.Authorization = `Bearer ${S}`;
|
|
16168
|
+
} catch {
|
|
16170
16169
|
const E = ((m = Object.entries(localStorage).find(([D, F]) => D.startsWith("CognitoIdentityServiceProvider") && D.endsWith("idToken"))) == null ? void 0 : m[0]) || "", I = localStorage.getItem(E);
|
|
16171
16170
|
I && !Ie(I) && (s.Authorization = `Bearer ${I}`);
|
|
16172
16171
|
}
|
|
16173
|
-
console.log("attempted to set bearer token");
|
|
16174
16172
|
const o = {
|
|
16175
16173
|
bundleOwnerId: i,
|
|
16176
16174
|
...s,
|