Comparing version 1.2.1 to 1.2.2
@@ -240,3 +240,4 @@ var q = require('q'); | ||
Object.keys(def.virtuals).forEach(function (name) { | ||
obj[name] = def.virtuals[name].apply(obj); | ||
var val = def.virtuals[name].apply(obj); | ||
obj[name] = val && 'function' === typeof val.toJSON ? val.toJSON() : val; | ||
}.bind(this)); | ||
@@ -243,0 +244,0 @@ } |
{ | ||
"name": "cosa", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "Cosa Models for MongoDB", | ||
@@ -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
80321
2267