Comparing version 0.9.6 to 0.9.7
@@ -20,2 +20,8 @@ ## [Unreleased] | ||
## [0.9.7] - 2018-06-07 | ||
### Fixed | ||
- Default values was not set on nested schema structures | ||
## [0.9.6] - 2018-06-03 | ||
@@ -477,2 +483,3 @@ | ||
[0.9.7]: https://github.com/Yonirt/moltyjs/compare/v0.9.6...v0.9.7 | ||
[0.9.6]: https://github.com/Yonirt/moltyjs/compare/v0.9.5...v0.9.6 | ||
@@ -479,0 +486,0 @@ [0.9.5]: https://github.com/Yonirt/moltyjs/compare/v0.9.4...v0.9.5 |
@@ -407,4 +407,4 @@ 'use strict'; | ||
// Objects nested | ||
if (!schema[key].type && isObject(schema[key]) && !isArray(schema[key]) && payload && !isEmptyValue(payload[key])) { | ||
const aux = this._normalizePayload(payload[key], schema[key]); | ||
if (!schema[key].type && isObject(schema[key]) && !isArray(schema[key])) { | ||
const aux = this._normalizePayload(payload ? payload[key] : {}, schema[key]); | ||
if (aux) payload[key] = aux; | ||
@@ -411,0 +411,0 @@ return; |
{ | ||
"name": "moltyjs", | ||
"version": "0.9.6", | ||
"version": "0.9.7", | ||
"description": "A tiny ODM for MongoDB with multy tenancy support.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
130923