Comparing version 0.2.0 to 0.2.1
@@ -126,7 +126,18 @@ /*! | ||
} | ||
else if ((newValue != null) && (typeof newValue === 'object') | ||
&& (typeof newValue.extra === 'boolean') | ||
&& (typeof newValue.type === 'boolean') | ||
&& (typeof newValue.missing === 'boolean')) { | ||
return newValue | ||
else if ((newValue != null) && (typeof newValue === 'object') && (Object.prototype.toString.call(newValue) === '[object Object]')) { | ||
var result = { | ||
extra: defaultValue.extra, | ||
type: defaultValue.type, | ||
missing: defaultValue.missing | ||
} | ||
if (typeof newValue.extra === 'boolean') { | ||
result.extra = newValue.extra; | ||
} | ||
if (typeof newValue.missing === 'boolean') { | ||
result.missing = newValue.missing; | ||
} | ||
if (typeof newValue.type === 'boolean') { | ||
result.type = newValue.type; | ||
} | ||
return result | ||
} | ||
@@ -133,0 +144,0 @@ else { |
{ | ||
"name": "thinky", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "RethinkDB ORM for Node.js", | ||
@@ -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
231312
11
2539