Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xmlhttprequest-ssl

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xmlhttprequest-ssl - npm Package Compare versions

Comparing version 1.5.1 to 1.5.2

20

lib/XMLHttpRequest.js

@@ -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 @@ }

{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc