xmlhttprequest-ssl
Advanced tools
Comparing version 1.6.3 to 2.0.0
@@ -327,3 +327,3 @@ /** | ||
if (error) { | ||
self.handleError(error); | ||
self.handleError(error, error.errno || -1); | ||
} else { | ||
@@ -341,3 +341,3 @@ self.status = 200; | ||
} catch(e) { | ||
this.handleError(e); | ||
this.handleError(e, e.errno || -1); | ||
} | ||
@@ -498,2 +498,8 @@ } | ||
if (opts.autoUnref) { | ||
request.on('socket', (socket) => { | ||
socket.unref(); | ||
}); | ||
} | ||
// Node 0.4 and later won't accept empty data. Make sure it's needed. | ||
@@ -500,0 +506,0 @@ if (data) { |
{ | ||
"name": "xmlhttprequest-ssl", | ||
"description": "XMLHttpRequest for Node", | ||
"version": "1.6.3", | ||
"version": "2.0.0", | ||
"author": { | ||
@@ -6,0 +6,0 @@ "name": "Michael de Wit" |
@@ -30,2 +30,6 @@ # node-XMLHttpRequest # | ||
Version 2.0.0 introduces a potentially breaking change concerning local file system requests. | ||
If these requests fail this library now returns the `errno` (or -1) as the response status code instead of | ||
returning status code 0. | ||
Prior to 1.4.0 version numbers were arbitrary. From 1.4.0 on they conform to | ||
@@ -32,0 +36,0 @@ the standard major.minor.bugfix. 1.x shouldn't necessarily be considered |
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
35606
959
68
1