rads-db 3.0.71 → 3.0.73
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.cjs +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -787,8 +787,8 @@ function getRadsDbMethods(key, computedContext, driverInstance) {
|
|
|
787
787
|
return { oldDoc, doc };
|
|
788
788
|
});
|
|
789
789
|
await handlePrecomputed(computedContext, docArgsToSave, ctx);
|
|
790
|
-
const beforePutResults = await handleEffectsBeforePut(computedContext, docArgsToSave, ctx);
|
|
791
790
|
await beforePut(docArgsToSave, ctx, computedContext);
|
|
791
|
+
const beforePutResults = await handleEffectsBeforePut(computedContext, docArgsToSave, ctx);
|
|
792
792
|
for (const d of docArgsToSave) {
|
|
793
793
|
const validatedDoc = validators[key](d.doc);
|
|
794
794
|
for (const f of precomputedFields || []) {
|
|
@@ -955,8 +955,8 @@ function getRadsDbMethods(key, computedContext, driverInstance) {
|
|
|
955
955
|
cleanUndefinedAndNull(doc);
|
|
956
956
|
const docArgsToSave = [{ doc, oldDoc }];
|
|
957
957
|
await handlePrecomputed(computedContext, docArgsToSave, ctx);
|
|
958
|
-
const beforePutResults = await handleEffectsBeforePut(computedContext, docArgsToSave, ctx);
|
|
959
958
|
await beforePut(docArgsToSave, ctx, computedContext);
|
|
959
|
+
const beforePutResults = await handleEffectsBeforePut(computedContext, docArgsToSave, ctx);
|
|
960
960
|
const validatedDoc = validators[key](doc);
|
|
961
961
|
docArgsToSave[0].doc = validatedDoc;
|
|
962
962
|
if (precomputedFields) {
|
package/dist/index.mjs
CHANGED
|
@@ -780,8 +780,8 @@ function getRadsDbMethods(key, computedContext, driverInstance) {
|
|
|
780
780
|
return { oldDoc, doc };
|
|
781
781
|
});
|
|
782
782
|
await handlePrecomputed(computedContext, docArgsToSave, ctx);
|
|
783
|
-
const beforePutResults = await handleEffectsBeforePut(computedContext, docArgsToSave, ctx);
|
|
784
783
|
await beforePut(docArgsToSave, ctx, computedContext);
|
|
784
|
+
const beforePutResults = await handleEffectsBeforePut(computedContext, docArgsToSave, ctx);
|
|
785
785
|
for (const d of docArgsToSave) {
|
|
786
786
|
const validatedDoc = validators[key](d.doc);
|
|
787
787
|
for (const f of precomputedFields || []) {
|
|
@@ -948,8 +948,8 @@ function getRadsDbMethods(key, computedContext, driverInstance) {
|
|
|
948
948
|
cleanUndefinedAndNull(doc);
|
|
949
949
|
const docArgsToSave = [{ doc, oldDoc }];
|
|
950
950
|
await handlePrecomputed(computedContext, docArgsToSave, ctx);
|
|
951
|
-
const beforePutResults = await handleEffectsBeforePut(computedContext, docArgsToSave, ctx);
|
|
952
951
|
await beforePut(docArgsToSave, ctx, computedContext);
|
|
952
|
+
const beforePutResults = await handleEffectsBeforePut(computedContext, docArgsToSave, ctx);
|
|
953
953
|
const validatedDoc = validators[key](doc);
|
|
954
954
|
docArgsToSave[0].doc = validatedDoc;
|
|
955
955
|
if (precomputedFields) {
|