xmlhttprequest-ssl
Advanced tools
Comparing version 1.5.3 to 1.5.4
@@ -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 ## |
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
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
34486
942
64
1