@spiffcommerce/core 34.4.9 → 34.4.10
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.d.ts +0 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -339,7 +339,7 @@ class di {
|
|
|
339
339
|
} catch {
|
|
340
340
|
}
|
|
341
341
|
try {
|
|
342
|
-
A = this.spiffClient.
|
|
342
|
+
o.skipIntegrationCheck || (A = await this.spiffClient.getIntegration());
|
|
343
343
|
} catch {
|
|
344
344
|
}
|
|
345
345
|
}
|
|
@@ -16179,7 +16179,7 @@ const oc = async (n, t) => {
|
|
|
16179
16179
|
};
|
|
16180
16180
|
class Vd {
|
|
16181
16181
|
constructor(t) {
|
|
16182
|
-
this.activeIntegration = void 0, this.
|
|
16182
|
+
this.activeIntegration = void 0, this.updateTransactionState = async (e) => {
|
|
16183
16183
|
try {
|
|
16184
16184
|
return y.getShadowGraphqlClient().mutate({
|
|
16185
16185
|
...e,
|
|
@@ -16188,7 +16188,7 @@ class Vd {
|
|
|
16188
16188
|
} catch (a) {
|
|
16189
16189
|
throw console.error(a), new gt("Critical - Unable to synchronize workflow state with server.");
|
|
16190
16190
|
}
|
|
16191
|
-
}, this.options = t, this.options.applicationKey && ri(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 34.4.
|
|
16191
|
+
}, this.options = t, this.options.applicationKey && ri(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 34.4.10"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
16192
16192
|
}
|
|
16193
16193
|
configure(t) {
|
|
16194
16194
|
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 && oi(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
|
|
@@ -16221,11 +16221,7 @@ class Vd {
|
|
|
16221
16221
|
return this.activeIntegration;
|
|
16222
16222
|
if (!this.options.applicationKey)
|
|
16223
16223
|
throw new Error("Cannot get current Integration without specifying an Application Key.");
|
|
16224
|
-
|
|
16225
|
-
return this.activeIntegration = dc(this.options.applicationKey).then((e) => (t.activeIntegrationObject = e, e)), this.activeIntegration;
|
|
16226
|
-
}
|
|
16227
|
-
getIntegrationInternal() {
|
|
16228
|
-
return this.activeIntegrationObject;
|
|
16224
|
+
return this.activeIntegration = dc(this.options.applicationKey), this.activeIntegration;
|
|
16229
16225
|
}
|
|
16230
16226
|
async canUseAddon(t) {
|
|
16231
16227
|
try {
|
|
@@ -16832,7 +16828,8 @@ const dc = async (n, t) => (await y.getShadowGraphqlClient().query({
|
|
|
16832
16828
|
context: {
|
|
16833
16829
|
headers: {
|
|
16834
16830
|
"x-application-key": n
|
|
16835
|
-
}
|
|
16831
|
+
},
|
|
16832
|
+
skipIntegrationCheck: !0
|
|
16836
16833
|
},
|
|
16837
16834
|
variables: {
|
|
16838
16835
|
themeConfigurationId: t
|