xmlhttprequest-ssl
Advanced tools
@@ -38,2 +38,4 @@ /** | ||
| function XMLHttpRequest(opts) { | ||
| "use strict"; | ||
| /** | ||
@@ -418,3 +420,3 @@ * Private variables | ||
| // Handler for the response | ||
| function responseHandler(resp) { | ||
| var responseHandler = function(resp) { | ||
| // Set response var to the response we got back | ||
@@ -441,9 +443,9 @@ // This is so it remains accessable outside this scope | ||
| if (ssl) { | ||
| options.pfx = opts.pfx; | ||
| options.key = opts.key; | ||
| options.passphrase = opts.passphrase; | ||
| options.cert = opts.cert; | ||
| options.ca = opts.ca; | ||
| options.ciphers = opts.ciphers; | ||
| options.rejectUnauthorized = opts.rejectUnauthorized; | ||
| newOptions.pfx = opts.pfx; | ||
| newOptions.key = opts.key; | ||
| newOptions.passphrase = opts.passphrase; | ||
| newOptions.cert = opts.cert; | ||
| newOptions.ca = opts.ca; | ||
| newOptions.ciphers = opts.ciphers; | ||
| newOptions.rejectUnauthorized = opts.rejectUnauthorized; | ||
| } | ||
@@ -488,3 +490,3 @@ | ||
| // Error handler for the request | ||
| function errorHandler(error) { | ||
| var errorHandler = function(error) { | ||
| self.handleError(error); | ||
@@ -491,0 +493,0 @@ } |
+4
-1
| { | ||
| "name": "xmlhttprequest-ssl", | ||
| "description": "XMLHttpRequest for Node", | ||
| "version": "1.5.1", | ||
| "version": "1.5.2", | ||
| "author": { | ||
@@ -26,2 +26,5 @@ "name": "Michael de Wit" | ||
| }, | ||
| "scripts": { | ||
| "test": "cd ./tests && node test-constants.js && node test-events.js && node test-exceptions.js && node test-headers.js && node test-redirect-302.js && node test-redirect-303.js && node test-redirect-307.js && node test-request-methods.js && node test-request-protocols.js" | ||
| }, | ||
| "directories": { | ||
@@ -28,0 +31,0 @@ "lib": "./lib", |
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 2 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
34221
1.03%938
0.11%