Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

copy-to

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

copy-to - npm Package Compare versions

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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc