Comparing version 0.9.4 to 0.9.5
@@ -20,2 +20,8 @@ ## [Unreleased] | ||
## [0.9.5] - 2018-05-20 | ||
### Added | ||
* Mixes Schema type | ||
## [0.9.4] - 2018-05-17 | ||
@@ -25,3 +31,3 @@ | ||
* New agregate pipeline stages: sort, limit, skip, sortByCount, | ||
* New agregate pipeline stages: sort, limit, skip, sortByCount | ||
@@ -466,2 +472,3 @@ ## [0.9.3] - 2018-05-17 | ||
[0.9.5]: https://github.com/Yonirt/moltyjs/compare/v0.9.4...v0.9.5 | ||
[0.9.4]: https://github.com/Yonirt/moltyjs/compare/v0.9.3...v0.9.4 | ||
@@ -468,0 +475,0 @@ [0.9.3]: https://github.com/Yonirt/moltyjs/compare/v0.9.2...v0.9.3 |
@@ -39,3 +39,3 @@ 'use strict'; | ||
/** | ||
* types(): Static method to return all the types supportes | ||
* types(): Static method to return all the types supported | ||
* by a schema | ||
@@ -54,3 +54,4 @@ * | ||
Array, | ||
Object | ||
Object, | ||
Mixed: 'Mixed' | ||
}; | ||
@@ -57,0 +58,0 @@ } |
@@ -47,3 +47,3 @@ 'use strict'; | ||
const isSupportedType = function isSupportedType(t) { | ||
return t === String || t === Number || t === Boolean || t === Buffer || t === Date || t === Array || isArray(t) || t === Object || t === ObjectId; | ||
return t === String || t === Number || t === Boolean || t === Buffer || t === Date || t === Array || isArray(t) || t === Object || t === ObjectId || t === 'Mixed'; | ||
}; | ||
@@ -68,2 +68,4 @@ | ||
return isObjectId(value); | ||
} else if (type === 'Mixed') { | ||
return true; | ||
} else { | ||
@@ -70,0 +72,0 @@ return false; |
{ | ||
"name": "moltyjs", | ||
"version": "0.9.4", | ||
"version": "0.9.5", | ||
"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
130748
2442