Comparing version 0.0.3 to 0.0.4
@@ -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
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
18714
411
4