viewmodel
Advanced tools
Comparing version 1.2.6 to 1.2.7
@@ -12,8 +12,8 @@ 'use strict'; | ||
if (options.prototype instanceof Base) { | ||
return options; | ||
options.type = options.type || 'inmemory'; | ||
if (_.isFunction(options.type)) { | ||
return options.type; | ||
} | ||
options.type = options.type || 'inmemory'; | ||
options.type = options.type.toLowerCase(); | ||
@@ -20,0 +20,0 @@ |
@@ -28,3 +28,3 @@ 'use strict'; | ||
if (attr.id) { | ||
this.id = attr.id; | ||
this.id = _.clone(attr.id); | ||
} | ||
@@ -35,3 +35,3 @@ | ||
this.attributes = attr; | ||
this.attributes = _.cloneDeep(attr); | ||
} | ||
@@ -38,0 +38,0 @@ |
{ | ||
"author": "adrai", | ||
"name": "viewmodel", | ||
"version": "1.2.6", | ||
"version": "1.2.7", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -0,1 +1,4 @@ | ||
## [v1.2.7](https://github.com/adrai/node-viewmodel/compare/v1.2.6...v1.2.7) | ||
- fix usage with own db implementation | ||
## [v1.2.6](https://github.com/adrai/node-viewmodel/compare/v1.2.4...v1.2.6) | ||
@@ -2,0 +5,0 @@ - added clear functionality to clear a collection |
Sorry, the diff of this file is not supported yet
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
68720