objection
Advanced tools
Comparing version 3.0.0-rc.3 to 3.0.0-rc.4
@@ -59,6 +59,12 @@ 'use strict'; | ||
if ((shallow && relationNames.includes(key)) || (stripInternal && isInternalProp(key))) { | ||
if (shallow && relationNames.includes(key)) { | ||
// The constructor may have given default values for relations. | ||
delete clone[key]; | ||
continue; | ||
} | ||
if (stripInternal && isInternalProp(key)) { | ||
continue; | ||
} | ||
if (isObject(value)) { | ||
@@ -65,0 +71,0 @@ clone[key] = cloneObject(value); |
{ | ||
"name": "objection", | ||
"version": "3.0.0-rc.3", | ||
"version": "3.0.0-rc.4", | ||
"description": "An SQL-friendly ORM for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "lib/objection.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
629623
19613