@spiffcommerce/core 26.38.0-beta.c9dceb4d-73eb-5759-ab66-7e7efea51d14 → 26.38.0-beta.dd35ec87-db3f-5f27-a7f7-646f6767a676
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 +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -347,9 +347,8 @@ class $r {
|
|
|
347
347
|
headers: l
|
|
348
348
|
};
|
|
349
349
|
}), a = cr(({ operation: i, graphQLErrors: s, networkError: o }) => {
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
o && !((A = (d = c == null ? void 0 : c.fetchOptions) == null ? void 0 : d.signal) != null && A.aborted) && console.log("GraphQL Network error"), l.forEach(() => console.log("GraphQL Error: " + i.operationName));
|
|
350
|
+
const l = s || [];
|
|
351
|
+
o && console.log("GraphQL Network error"), l.forEach(() => console.log("GraphQL Error: " + i.operationName));
|
|
353
352
|
}), n = Ar();
|
|
354
353
|
return new ir({
|
|
355
354
|
link: sr([n, a, e, t]),
|
|
@@ -14209,9 +14208,7 @@ class Zn {
|
|
|
14209
14208
|
fetchPolicy: "cache-first",
|
|
14210
14209
|
returnPartialData: !0,
|
|
14211
14210
|
context: {
|
|
14212
|
-
|
|
14213
|
-
signal: l
|
|
14214
|
-
}
|
|
14211
|
+
signal: l
|
|
14215
14212
|
}
|
|
14216
14213
|
});
|
|
14217
14214
|
return new Promise((d) => {
|
|
@@ -14222,18 +14219,17 @@ class Zn {
|
|
|
14222
14219
|
},
|
|
14223
14220
|
next(h) {
|
|
14224
14221
|
var g, p, f, C;
|
|
14225
|
-
if (h.partial &&
|
|
14222
|
+
if (h.partial && !h.data.productCollections || h.data.productCollections.length === 0)
|
|
14226
14223
|
return;
|
|
14227
14224
|
o.abort(), u = !0, A && !A.closed && A.unsubscribe();
|
|
14228
14225
|
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))) || [];
|
|
14229
14226
|
d({
|
|
14230
14227
|
items: St(m),
|
|
14231
|
-
// Clone items because it could be cached data (immutable)
|
|
14232
14228
|
total: ((C = (f = h.data.productCollections) == null ? void 0 : f[0].productCollectionProductsFeed) == null ? void 0 : C.total) ?? 0
|
|
14233
14229
|
});
|
|
14234
14230
|
},
|
|
14235
14231
|
error() {
|
|
14236
|
-
u
|
|
14232
|
+
u = !0, A && !A.closed && A.unsubscribe(), d({ items: [], total: 0 });
|
|
14237
14233
|
}
|
|
14238
14234
|
});
|
|
14239
14235
|
});
|
|
@@ -15624,7 +15620,7 @@ class _c {
|
|
|
15624
15620
|
} catch (a) {
|
|
15625
15621
|
throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
|
|
15626
15622
|
}
|
|
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.
|
|
15623
|
+
}, 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.66169735-ea6b-5349-abee-aa31eb02eb75"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
15628
15624
|
}
|
|
15629
15625
|
configure(t) {
|
|
15630
15626
|
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();
|