rads-db 0.1.67 → 0.1.68
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 +4 -0
- package/dist/index.mjs +4 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -773,6 +773,10 @@ function generateMethods(schema, validators, options) {
|
|
|
773
773
|
await driverInstance.putMany(docsToSave, ctx);
|
|
774
774
|
await handleEffectsAfterPut(computedContext, docArgsToSave, beforePutResults, ctx);
|
|
775
775
|
return docsToSave;
|
|
776
|
+
},
|
|
777
|
+
clear: (ctx) => {
|
|
778
|
+
ctx = { ...opts.context, ...ctx };
|
|
779
|
+
return driverInstance.clear(ctx);
|
|
776
780
|
}
|
|
777
781
|
};
|
|
778
782
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -766,6 +766,10 @@ function generateMethods(schema, validators, options) {
|
|
|
766
766
|
await driverInstance.putMany(docsToSave, ctx);
|
|
767
767
|
await handleEffectsAfterPut(computedContext, docArgsToSave, beforePutResults, ctx);
|
|
768
768
|
return docsToSave;
|
|
769
|
+
},
|
|
770
|
+
clear: (ctx) => {
|
|
771
|
+
ctx = { ...opts.context, ...ctx };
|
|
772
|
+
return driverInstance.clear(ctx);
|
|
769
773
|
}
|
|
770
774
|
};
|
|
771
775
|
}
|