Comparing version 0.6.16 to 0.6.17
@@ -933,3 +933,3 @@ !function(){ | ||
case 'reference': | ||
if (this._references[keyName]) { | ||
if (this._references[keyName] && this[keyName].toJSON) { | ||
obj[keyName] = this[keyName].toJSON(); | ||
@@ -936,0 +936,0 @@ } |
@@ -452,3 +452,3 @@ !function(){ | ||
return this.map(function(item){ | ||
return item.toJSON(); | ||
return item.toJSON ? item.toJSON() : undefined; | ||
}.bind(this)); | ||
@@ -455,0 +455,0 @@ }} |
@@ -110,3 +110,3 @@ !function(){ | ||
return this.map(function(item){ | ||
return item.toJSON(); | ||
return item.toJSON ? item.toJSON() : undefined; | ||
}.bind(this)); | ||
@@ -113,0 +113,0 @@ } |
{ | ||
"name" : "ee-orm" | ||
, "description" : "An easy to use ORM for node.js. Supports eager loading, complex queries, joins, transactions, complex database clusters & connection pooling." | ||
, "version" : "0.6.16" | ||
, "version" : "0.6.17" | ||
, "homepage" : "https://github.com/eventEmitter/ee-orm" | ||
@@ -6,0 +6,0 @@ , "author" : "Michael van der Weg <michael@eventemitter.com> (http://eventemitter.com/)" |
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
249997