Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@petitchevalroux/http-download-stream

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@petitchevalroux/http-download-stream - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

2

package.json
{
"name": "@petitchevalroux/http-download-stream",
"version": "1.2.3",
"version": "1.2.4",
"description": "Node transform stream downloading url in input with retry and rate limit",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -54,12 +54,11 @@ "use strict";

getHostFetcher(host) {
if (this.getHostFetcherCount() >= this.maxHostFetchers) {
const self = this;
return this
.deleteLeastRecentlyUsedFetcher()
.then(() => {
return self.getHostFetcher(host);
});
if ((typeof this.hostFetchers[host]) !== "undefined") {
return Promise.resolve(this.hostFetchers[host]);
}
return typeof(this.hostFetchers[host]) !== "undefined" ?
Promise.resolve(this.hostFetchers[host]) :
const self = this;
return this.getHostFetcherCount() >= this.maxHostFetchers ?
this.deleteLeastRecentlyUsedFetcher()
.then(() => {
return self.createHostFetcher(host);
}) :
this.createHostFetcher(host);

@@ -66,0 +65,0 @@ }

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