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

cpr

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cpr - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

17

lib/index.js

@@ -188,8 +188,15 @@ var fs = require('graceful-fs');

exports.cpr = function (from, to, options, callback) {
if (typeof options === 'function') {
callback = options;
options = {};
exports.cpr = function (from, to, opts, callback) {
if (typeof opts === 'function') {
callback = opts;
opts = {};
}
var options = {},
proc;
Object.keys(opts).forEach(function(key) {
options[key] = opts[key];
});
options.from = from;

@@ -199,3 +206,3 @@ options.to = to;

var proc = function() {
proc = function() {
getTree(options.from, options, function(err, tree) {

@@ -202,0 +209,0 @@ filterTree(tree, options, function(err, t) {

@@ -5,3 +5,3 @@ {

"author": "Dav Glass <davglass@gmail.com>",
"version": "0.0.3",
"version": "0.0.4",
"dependencies": {

@@ -16,2 +16,3 @@ "graceful-fs": "~1.1.14",

"yui-lint": "~0.1.0",
"istanbul": "https://github.com/gotwarlost/istanbul/tarball/textreport",
"vows": "*"

@@ -24,3 +25,3 @@ },

"pretest": "jshint --config ./node_modules/yui-lint/jshint.json ./lib/*.js",
"test": "vows --spec ./tests/*.js"
"test": "istanbul cover --console both -- vows --spec ./tests/*.js"
},

@@ -27,0 +28,0 @@ "bugs": { "url" : "http://github.com/davglass/cpr/issues" },

Sorry, the diff of this file is not supported yet

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