@spiffcommerce/core 26.38.0-beta.acd6342c-1c90-5ae0-afef-c937ed0199e0 → 26.38.0-beta.c9dceb4d-73eb-5759-ab66-7e7efea51d14
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 +13 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -14215,22 +14215,25 @@ class Zn {
|
|
|
14215
14215
|
}
|
|
14216
14216
|
});
|
|
14217
14217
|
return new Promise((d) => {
|
|
14218
|
-
let A = !1;
|
|
14219
|
-
|
|
14218
|
+
let A, u = !1;
|
|
14219
|
+
c.subscribe({
|
|
14220
|
+
start(h) {
|
|
14221
|
+
u ? (h.closed && h.unsubscribe(), o.abort()) : A = h;
|
|
14222
|
+
},
|
|
14220
14223
|
next(h) {
|
|
14221
|
-
var g, p, f, C
|
|
14222
|
-
if (h.partial && (!h.data.productCollections || h.data.productCollections.length === 0
|
|
14224
|
+
var g, p, f, C;
|
|
14225
|
+
if (h.partial && (!h.data.productCollections || h.data.productCollections.length === 0))
|
|
14223
14226
|
return;
|
|
14224
|
-
o.abort(),
|
|
14225
|
-
const m = ((
|
|
14227
|
+
o.abort(), u = !0, A && !A.closed && A.unsubscribe();
|
|
14228
|
+
const m = ((p = (g = h.data.productCollections) == null ? void 0 : g[0].productCollectionProductsFeed) == null ? void 0 : p.items.filter((w) => !!w.product).map((w) => new le(w))) || [];
|
|
14226
14229
|
d({
|
|
14227
|
-
items: m,
|
|
14230
|
+
items: St(m),
|
|
14228
14231
|
// Clone items because it could be cached data (immutable)
|
|
14229
|
-
total: ((
|
|
14232
|
+
total: ((C = (f = h.data.productCollections) == null ? void 0 : f[0].productCollectionProductsFeed) == null ? void 0 : C.total) ?? 0
|
|
14230
14233
|
});
|
|
14231
14234
|
},
|
|
14232
14235
|
error() {
|
|
14233
|
-
|
|
14236
|
+
u || (u = !0, A && !A.closed && A.unsubscribe(), d({ items: [], total: 0 }));
|
|
14234
14237
|
}
|
|
14235
14238
|
});
|
|
14236
14239
|
});
|
|
@@ -15621,7 +15624,7 @@ class _c {
|
|
|
15621
15624
|
} catch (a) {
|
|
15622
15625
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15623
15626
|
}
|
|
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.
|
|
15627
|
+
}, 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.ed5fb9b2-fb14-550c-8a8f-6d7e87487a8f"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15625
15628
|
}
|
|
15626
15629
|
configure(t) {
|
|
15627
15630
|
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();
|