curlrequest
Advanced tools
Comparing version 0.5.3 to 0.5.4
12
index.js
var util = require('util') | ||
, fs = require('fs') | ||
, spawn = require('./spawn') | ||
, proxy = require('./proxy') | ||
, errors = require('./errors') | ||
@@ -23,4 +22,3 @@ , cwd = process.cwd(); | ||
var ua_file = __dirname + '/useragents.txt' | ||
, user_agents = fs.readFileSync(ua_file).toString().split('\n').slice(0, -1) | ||
var user_agents = require('./useragents.js') | ||
, user_agents_len = user_agents.length; | ||
@@ -91,10 +89,2 @@ | ||
if (options.proxies) { | ||
if (!proxy.transform) { | ||
proxy.transform = proxy.unpack(options.key).transform; | ||
} | ||
options = proxy.transform(options); | ||
delete options.key; | ||
} | ||
var curl | ||
@@ -101,0 +91,0 @@ , curl_path = 'curl' |
{ "name" : "curlrequest", | ||
"description" : "A curl wrapper for node", | ||
"version" : "0.5.3", | ||
"version" : "0.5.4", | ||
"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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
503
1
1
25893
7