bookshelf-modelbase-plus
Advanced tools
Comparing version 2.11.2 to 2.11.3
@@ -374,4 +374,5 @@ const _ = require('lodash'); | ||
// validate both to ensure they are both coerced to their types (i.e. 0 vs false) | ||
existing = model.validateSave(null, existing, { method: 'update', patch: true }); // coerce values | ||
toSave = model.validateSave(null, toSave, { method: 'update', patch: true }); | ||
const clone = model.clone(); | ||
existing = clone.validateSave(null, existing, { method: 'update', patch: true }); // coerce values | ||
toSave = clone.validateSave(null, toSave, { method: 'update', patch: true }); | ||
} catch (validationError) { | ||
@@ -378,0 +379,0 @@ throw Object.assign(new Error(`Validation error: ${validationError}`), { name: this.VALIDATION_ERROR }); |
{ | ||
"name": "bookshelf-modelbase-plus", | ||
"version": "2.11.2", | ||
"version": "2.11.3", | ||
"description": "Extended functionality for REST operations with validation, filtering, ordering, importing records.", | ||
@@ -5,0 +5,0 @@ "main": "./lib", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85418
1651