@cadenza.io/service 2.17.38 → 2.17.40
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 +5 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/index.mjs +5 -2
- package/dist/browser/index.mjs.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/browser/index.js
CHANGED
|
@@ -757,6 +757,9 @@ function buildServiceRegistryInsertQueryData(ctx, queryData) {
|
|
|
757
757
|
...existingQueryData,
|
|
758
758
|
...queryData
|
|
759
759
|
};
|
|
760
|
+
if (!Object.prototype.hasOwnProperty.call(queryData, "onConflict")) {
|
|
761
|
+
delete nextQueryData.onConflict;
|
|
762
|
+
}
|
|
760
763
|
const resolvedData = Object.prototype.hasOwnProperty.call(ctx, "data") || ctx.data !== void 0 ? ctx.data : getJoinedValue("data");
|
|
761
764
|
const resolvedBatch = Object.prototype.hasOwnProperty.call(ctx, "batch") || ctx.batch !== void 0 ? ctx.batch : getJoinedValue("batch");
|
|
762
765
|
const nextData = resolvedData !== void 0 ? resolvedData && typeof resolvedData === "object" ? { ...resolvedData } : resolvedData : registrationData && typeof registrationData === "object" && !Array.isArray(registrationData) ? { ...registrationData } : registrationData;
|
|
@@ -6230,10 +6233,10 @@ function buildSyncInsertQueryData(ctx, queryData = {}) {
|
|
|
6230
6233
|
};
|
|
6231
6234
|
const resolvedData = Object.prototype.hasOwnProperty.call(ctx, "data") || ctx.data !== void 0 ? ctx.data : getJoinedContextValue(ctx, "data");
|
|
6232
6235
|
const resolvedBatch = Object.prototype.hasOwnProperty.call(ctx, "batch") || ctx.batch !== void 0 ? ctx.batch : getJoinedContextValue(ctx, "batch");
|
|
6233
|
-
if (
|
|
6236
|
+
if (resolvedData !== void 0) {
|
|
6234
6237
|
nextQueryData.data = resolvedData && typeof resolvedData === "object" && !Array.isArray(resolvedData) ? { ...resolvedData } : resolvedData;
|
|
6235
6238
|
}
|
|
6236
|
-
if (
|
|
6239
|
+
if (resolvedBatch !== void 0) {
|
|
6237
6240
|
nextQueryData.batch = Array.isArray(resolvedBatch) ? resolvedBatch.map(
|
|
6238
6241
|
(row) => row && typeof row === "object" ? { ...row } : row
|
|
6239
6242
|
) : resolvedBatch;
|