curlrequest
Advanced tools
Comparing version 0.3.5 to 0.3.6
16
index.js
@@ -110,3 +110,3 @@ var util = require('util') | ||
, scope = {} | ||
, cmd = 'curl ' + args.join(' ') | ||
, cmd = 'curl' | ||
, timeout; | ||
@@ -120,2 +120,3 @@ | ||
cmd: cmd | ||
, args: args | ||
, time: (new Date().getTime() - start.getTime()) | ||
@@ -240,13 +241,14 @@ }); | ||
var proc_cmd = curl_path | ||
, proc_options = { cwd: options.cwd || cwd }; | ||
if (options.file) { | ||
proc_cmd = 'cat'; | ||
cmd = 'cat'; | ||
args = [options.file]; | ||
cmd = 'cat ' + options.file; | ||
} | ||
//Simulate the spawn? | ||
if (options.pretend) { | ||
return finish(); | ||
} | ||
//Spawn the process | ||
spawn(proc_cmd, args, options, function (curl) { | ||
child = spawn(cmd, args, { cwd: options.cwd || cwd }, function (curl) { | ||
@@ -253,0 +255,0 @@ //Collect stdout |
{ "name" : "curlrequest", | ||
"description" : "A curl wrapper for node", | ||
"version" : "0.3.5", | ||
"version" : "0.3.6", | ||
"homepage" : "https://github.com/chriso/curlrequest", | ||
@@ -5,0 +5,0 @@ "author" : "Chris O'Hara <cohara87@gmail.com>", |
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
465
26462