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

@wireapp/priority-queue

Package Overview
Dependencies
Maintainers
7
Versions
275
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wireapp/priority-queue - npm Package Compare versions

Comparing version 1.6.18 to 1.6.19

4

package.json

@@ -42,4 +42,4 @@ {

},
"version": "1.6.18",
"gitHead": "baedbbcdfd9da16b1f07fc4dd6af6497f14c2518"
"version": "1.6.19",
"gitHead": "987d7d3476bf3530daa9b2b114ba41f227dc88ab"
}

@@ -10,2 +10,3 @@ import { Item } from './Item';

add<T>(thunkedPromise: () => T, priority?: Priority, label?: string): Promise<T>;
enqueue(item: Item): void;
delete(label: string): void;

@@ -12,0 +13,0 @@ deleteAll(): void;

@@ -61,4 +61,3 @@ "use strict";

item.timestamp = Date.now() + this.size;
this.queue.push(item);
this.queue.sort(this.config.comparator);
this.enqueue(item);
if (!this.isRunning) {

@@ -70,2 +69,6 @@ this.isRunning = true;

}
enqueue(item) {
this.queue.push(item);
this.queue.sort(this.config.comparator);
}
delete(label) {

@@ -106,3 +109,3 @@ this.queue = this.queue.filter(item => item.label !== label);

else {
this.queue.push(item);
this.enqueue(item);
setTimeout(() => this.processList(), this.getGrowingDelay(item.retry));

@@ -109,0 +112,0 @@ item.retry++;

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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