rads-db 0.1.58 → 0.1.59

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 CHANGED
@@ -644,7 +644,9 @@ function generateMethods(schema, validators, options) {
644
644
  for (const key in schema) {
645
645
  effects[key] = [];
646
646
  }
647
- verifyComputedPresense(schema, opts.computed);
647
+ if (!opts.skipComputed) {
648
+ verifyComputedPresense(schema, opts.computed);
649
+ }
648
650
  verifyEventSourcingSetup(schema, effects);
649
651
  verifyRelationsSetup(schema, effects);
650
652
  for (const key in schema) {
package/dist/index.d.ts CHANGED
@@ -139,6 +139,7 @@ interface CreateRadsArgs {
139
139
  driver?: DriverConstructor;
140
140
  drivers?: Record<string, DriverConstructor>;
141
141
  fileUploadDriver?: FileUploadDriver;
142
+ skipComputed?: boolean;
142
143
  computed?: Record<string, Record<string, Function>>;
143
144
  context?: Record<string, any> & RadsRequestContext;
144
145
  }
package/dist/index.mjs CHANGED
@@ -637,7 +637,9 @@ function generateMethods(schema, validators, options) {
637
637
  for (const key in schema) {
638
638
  effects[key] = [];
639
639
  }
640
- verifyComputedPresense(schema, opts.computed);
640
+ if (!opts.skipComputed) {
641
+ verifyComputedPresense(schema, opts.computed);
642
+ }
641
643
  verifyEventSourcingSetup(schema, effects);
642
644
  verifyRelationsSetup(schema, effects);
643
645
  for (const key in schema) {
package/package.json CHANGED
@@ -34,7 +34,7 @@
34
34
  "require": "./integrations/*.cjs"
35
35
  }
36
36
  },
37
- "version": "0.1.58",
37
+ "version": "0.1.59",
38
38
  "description": "Say goodbye to boilerplate code and hello to efficient and elegant syntax.",
39
39
  "keywords": [],
40
40
  "author": "",