Socket
Socket
Sign inDemoInstall

xmlhttprequest-ssl

Package Overview
Dependencies
Maintainers
1
Versions
12
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.3 to 1.5.4

8

lib/XMLHttpRequest.js

@@ -64,3 +64,3 @@ /**

var headers = defaultHeaders;
var headers = Object.assign({}, defaultHeaders);

@@ -478,5 +478,7 @@ // These headers are not user setable.

if (sendFlag) {
// The sendFlag needs to be set before setState is called. Otherwise if we are chaining callbacks
// there can be a timing issue (the callback is called and a new call is made before the flag is reset).
sendFlag = false;
// Discard the 'end' event if the connection has been aborted
setState(self.DONE);
sendFlag = false;
}

@@ -579,3 +581,3 @@ });

headers = defaultHeaders;
headers = Object.assign({}, defaultHeaders);
this.responseText = "";

@@ -582,0 +584,0 @@ this.responseXML = "";

{
"name": "xmlhttprequest-ssl",
"description": "XMLHttpRequest for Node",
"version": "1.5.3",
"version": "1.5.4",
"author": {

@@ -6,0 +6,0 @@ "name": "Michael de Wit"

@@ -5,11 +5,13 @@ # node-XMLHttpRequest #

# Original README #
## Usage ##
node-XMLHttpRequest is a wrapper for the built-in http client to emulate the
browser XMLHttpRequest object.
Here's how to include the module in your project and use as the browser-based
XHR object.
This can be used with JS designed for browsers to improve reuse of code and
allow the use of existing libraries.
var XMLHttpRequest = require("xmlhttprequest-ssl").XMLHttpRequest;
var xhr = new XMLHttpRequest();
Note: This library currently conforms to [XMLHttpRequest 1](http://www.w3.org/TR/XMLHttpRequest/). Version 2.0 will target [XMLHttpRequest Level 2](http://www.w3.org/TR/XMLHttpRequest2/).
Note: use the lowercase string "xmlhttprequest-ssl" in your require(). On
case-sensitive systems (eg Linux) using uppercase letters won't work.
# Original README #

@@ -16,0 +18,0 @@ ## Usage ##

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