@cadenza.io/service 2.17.37 → 2.17.39
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/browser/index.js +7 -3
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +7 -3
- package/dist/browser/index.mjs.map +1 -1
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -706,12 +706,16 @@ function buildServiceRegistryInsertQueryData(ctx, queryData) {
|
|
|
706
706
|
...existingQueryData,
|
|
707
707
|
...queryData
|
|
708
708
|
};
|
|
709
|
+
if (!Object.prototype.hasOwnProperty.call(queryData, "onConflict")) {
|
|
710
|
+
delete nextQueryData.onConflict;
|
|
711
|
+
}
|
|
709
712
|
const resolvedData = Object.prototype.hasOwnProperty.call(ctx, "data") || ctx.data !== void 0 ? ctx.data : getJoinedValue("data");
|
|
710
713
|
const resolvedBatch = Object.prototype.hasOwnProperty.call(ctx, "batch") || ctx.batch !== void 0 ? ctx.batch : getJoinedValue("batch");
|
|
711
|
-
|
|
712
|
-
|
|
714
|
+
const nextData = resolvedData !== void 0 ? resolvedData && typeof resolvedData === "object" ? { ...resolvedData } : resolvedData : registrationData && typeof registrationData === "object" && !Array.isArray(registrationData) ? { ...registrationData } : registrationData;
|
|
715
|
+
if (nextData !== void 0) {
|
|
716
|
+
nextQueryData.data = nextData;
|
|
713
717
|
}
|
|
714
|
-
if (
|
|
718
|
+
if (resolvedBatch !== void 0) {
|
|
715
719
|
nextQueryData.batch = Array.isArray(resolvedBatch) ? resolvedBatch.map(
|
|
716
720
|
(row) => row && typeof row === "object" ? { ...row } : row
|
|
717
721
|
) : resolvedBatch;
|