@naturalcycles/db-lib 10.10.0 → 10.10.1

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.
@@ -954,7 +954,7 @@ export class CommonDao {
954
954
  // and they can be annoying with snapshot tests
955
955
  obj = _filterUndefinedValues(obj);
956
956
  // Return as is if no schema is passed or if `skipConversion` is set
957
- if (!schema ||
957
+ if ((!schema && !this.cfg.validateBM) ||
958
958
  opt.skipValidation ||
959
959
  (op === 'load' && !this.cfg.validateOnLoad) ||
960
960
  (op === 'save' && !this.cfg.validateOnSave)) {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@naturalcycles/db-lib",
3
3
  "type": "module",
4
- "version": "10.10.0",
4
+ "version": "10.10.1",
5
5
  "dependencies": {
6
6
  "@naturalcycles/js-lib": "^15",
7
7
  "@naturalcycles/nodejs-lib": "^15"
8
8
  },
9
9
  "devDependencies": {
10
- "@naturalcycles/dev-lib": "19.14.0"
10
+ "@naturalcycles/dev-lib": "18.4.2"
11
11
  },
12
12
  "files": [
13
13
  "dist",
@@ -1227,7 +1227,7 @@ export class CommonDao<BM extends BaseDBEntity, DBM extends BaseDBEntity = BM, I
1227
1227
 
1228
1228
  // Return as is if no schema is passed or if `skipConversion` is set
1229
1229
  if (
1230
- !schema ||
1230
+ (!schema && !this.cfg.validateBM) ||
1231
1231
  opt.skipValidation ||
1232
1232
  (op === 'load' && !this.cfg.validateOnLoad) ||
1233
1233
  (op === 'save' && !this.cfg.validateOnSave)