Comparing version 2.0.0 to 2.0.1
13
index.js
@@ -27,14 +27,15 @@ /*! | ||
module.exports = function (src) { | ||
return new Copy(src); | ||
}; | ||
module.exports = Copy; | ||
/** | ||
* Copy | ||
* @param {Object} src | ||
* @param {Boolean} withAccess | ||
*/ | ||
function Copy(src, w) { | ||
function Copy(src, withAccess) { | ||
if (!(this instanceof Copy)) return new Copy(src, withAccess); | ||
this.src = src; | ||
this._withAccess = w; | ||
this._withAccess = withAccess; | ||
} | ||
@@ -79,2 +80,4 @@ | ||
to = to || {}; | ||
if (!this.src) return to; | ||
var keys = this.keys || Object.keys(this.src); | ||
@@ -81,0 +84,0 @@ |
{ | ||
"name": "copy-to", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "copy an object's properties to another object", | ||
@@ -5,0 +5,0 @@ "main": "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
5026
133