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 2.1.0 to 2.1.1

tests/test-utf8-tearing.js

7

lib/XMLHttpRequest.js

@@ -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": {

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