@spiffcommerce/core 26.38.0-beta.95db9919-4320-51f8-986e-5467ea068975 → 26.38.0-beta.acd6342c-1c90-5ae0-afef-c937ed0199e0
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 +115 -115
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -14218,15 +14218,15 @@ class Zn {
|
|
|
14218
14218
|
let A = !1;
|
|
14219
14219
|
const u = c.subscribe({
|
|
14220
14220
|
next(h) {
|
|
14221
|
-
var g, p, f, C;
|
|
14222
|
-
if (h.partial && (!h.data.productCollections || h.data.productCollections.length === 0 || !h.data.productCollections[0].
|
|
14221
|
+
var g, p, f, C, w, v;
|
|
14222
|
+
if (h.partial && (!h.data.productCollections || h.data.productCollections.length === 0 || !((g = h.data.productCollections[0].productCollectionProductsFeed) != null && g.items) || ((p = h.data.productCollections[0].productCollectionProductsFeed) == null ? void 0 : p.items.length) === 0))
|
|
14223
14223
|
return;
|
|
14224
14224
|
o.abort(), A = !0, u.unsubscribe();
|
|
14225
|
-
const m = ((
|
|
14225
|
+
const m = ((C = (f = h.data.productCollections) == null ? void 0 : f[0].productCollectionProductsFeed) == null ? void 0 : C.items.filter((S) => !!S.product).map((S) => new le(St(S)))) || [];
|
|
14226
14226
|
d({
|
|
14227
|
-
items:
|
|
14227
|
+
items: m,
|
|
14228
14228
|
// Clone items because it could be cached data (immutable)
|
|
14229
|
-
total: ((
|
|
14229
|
+
total: ((v = (w = h.data.productCollections) == null ? void 0 : w[0].productCollectionProductsFeed) == null ? void 0 : v.total) ?? 0
|
|
14230
14230
|
});
|
|
14231
14231
|
},
|
|
14232
14232
|
error() {
|
|
@@ -15621,7 +15621,7 @@ class _c {
|
|
|
15621
15621
|
} catch (a) {
|
|
15622
15622
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15623
15623
|
}
|
|
15624
|
-
}, this.options = t, this.options.applicationKey && Mr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.38.0-beta.
|
|
15624
|
+
}, this.options = t, this.options.applicationKey && Mr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.38.0-beta.f8c7765d-9b97-5bb1-b23f-04f257a5f0da"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15625
15625
|
}
|
|
15626
15626
|
configure(t) {
|
|
15627
15627
|
mt.setHubUrl(t.hubUrl), mt.setServerUrl(t.serverUrl), mt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && Qr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();
|