xmlhttprequest-ssl
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -465,3 +465,2 @@ /** | ||
var data = Buffer.from(chunk); | ||
self.responseText += data.toString('utf8'); | ||
self.response = Buffer.concat([self.response, data]); | ||
@@ -482,2 +481,4 @@ } | ||
setState(self.DONE); | ||
// Construct responseText from response | ||
self.responseText = self.response.toString('utf8'); | ||
} | ||
@@ -640,3 +641,3 @@ }); | ||
if (this.readyState === this.DONE && settings.async) | ||
setImmediate(function() { self["on" + event]() }) | ||
setTimeout(function() { self["on" + event]() }, 0) | ||
else | ||
@@ -648,3 +649,3 @@ self["on" + event]() | ||
if (this.readyState === this.DONE) | ||
setImmediate(function() { listeners[event][i].call(self) }) | ||
setTimeout(function() { listeners[event][i].call(self) }, 0) | ||
else | ||
@@ -651,0 +652,0 @@ listeners[event][i].call(self) |
{ | ||
"name": "xmlhttprequest-ssl", | ||
"description": "XMLHttpRequest for Node", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"author": { | ||
@@ -27,3 +27,3 @@ "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-txt-data.js && node test-request-protocols-binary-data.js && node test-sync-response.js" | ||
"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-txt-data.js && node test-request-protocols-binary-data.js && node test-sync-response.js && node test-utf8-tearing.js" | ||
}, | ||
@@ -30,0 +30,0 @@ "directories": { |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
47725
21
1299
2
12