New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

https-client

Package Overview
Dependencies
Maintainers
0
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

https-client - npm Package Compare versions

Comparing version
1.4.4
to
1.4.5
+1
-1
package.json
{
"name": "https-client",
"version": "1.4.4",
"version": "1.4.5",
"description": "Simple REST client for `node.js` `https` module. Adds retries and timeout support to `https` module.",

@@ -5,0 +5,0 @@ "author": "Will Tesler",

@@ -254,2 +254,17 @@ module.exports = class HttpsClient {

});
if (abortSignal) {
abortSignal.addEventListener('abort', () => {
req.destroy();
const error = new Error('Aborted');
error.statusCode = 499;
resolve(error);
}, {once: true});
}
if (type === 'POST' || type === 'PUT' || type === 'DELETE') {
req.write(body);
}
req.end();
} catch (e) {

@@ -261,17 +276,2 @@ cancelResponseTimeout();

}
if (abortSignal) {
abortSignal.addEventListener('abort', () => {
req.destroy();
const error = new Error('Aborted');
error.statusCode = 499;
resolve(error);
}, {once: true});
}
if (type === 'POST' || type === 'PUT' || type === 'DELETE') {
req.write(body);
}
req.end();
});

@@ -278,0 +278,0 @@