Comparing version 2.0.0 to 2.0.1
@@ -6,4 +6,4 @@ // Generated by CoffeeScript 1.10.0 | ||
Cot = function(opts) { | ||
var auth, hostname, notStandardHttpPort, notStandardHttpsPort, pass, port, protocol, ref, ssl, user; | ||
port = opts.port, hostname = opts.hostname, user = opts.user, pass = opts.pass, auth = opts.auth, ssl = opts.ssl, hostname = opts.hostname; | ||
var auth, debug, hostname, notStandardHttpPort, notStandardHttpsPort, pass, port, protocol, ref, ssl, user; | ||
port = opts.port, hostname = opts.hostname, user = opts.user, pass = opts.pass, auth = opts.auth, ssl = opts.ssl, hostname = opts.hostname, debug = opts.debug; | ||
protocol = ssl ? 'https' : 'http'; | ||
@@ -22,2 +22,3 @@ this.host = protocol + "://" + hostname + ":" + port; | ||
} | ||
this.debug = debug === true; | ||
}; | ||
@@ -55,2 +56,6 @@ | ||
} | ||
if (this.debug) { | ||
body = JSON.stringify(params.body); | ||
console.log('[debug] jsonRequest\n'.cyan, method, params.url, body); | ||
} | ||
if ((this.user != null) && (this.pass != null)) { | ||
@@ -57,0 +62,0 @@ params.auth = { |
@@ -19,4 +19,4 @@ { | ||
}, | ||
"version": "2.0.0", | ||
"main": "cot", | ||
"version": "2.0.1", | ||
"main": "cot.js", | ||
"dependencies": { | ||
@@ -23,0 +23,0 @@ "bluereq": "^2.1.0" |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
0
0
1
22445
10
274