supra-http
Advanced tools
Comparing version 1.3.3 to 1.3.4
@@ -40,7 +40,2 @@ "use strict"; | ||
let timeoutRef; | ||
if (options.timeout) { | ||
timeoutRef = setTimeout(() => { | ||
request.abort(); | ||
}, options.timeout); | ||
} | ||
const request = requestProvider.client.request(options, response => { | ||
@@ -58,2 +53,7 @@ clearTimeout(timeoutRef); | ||
}); | ||
if (options.timeout) { | ||
timeoutRef = setTimeout(() => { | ||
request.abort(); | ||
}, options.timeout); | ||
} | ||
request | ||
@@ -60,0 +60,0 @@ .on('error', e => { |
{ | ||
"name": "supra-http", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "Circuit breaking http client for NodeJs. And it is fast...", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2