Socket
Socket
Sign inDemoInstall

@datastructures-js/priority-queue

Package Overview
Dependencies
1
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.2 to 5.0.3

5

CHANGELOG.md

@@ -8,2 +8,7 @@ # Changelog

## [Unreleased]
## [5.0.3] - 2021-04-27
### Fixed
- README
## [5.0.2] - 2021-03-12

@@ -10,0 +15,0 @@

2

package.json
{
"name": "@datastructures-js/priority-queue",
"version": "5.0.2",
"version": "5.0.3",
"description": "a performant priority queue implementation using a Heap data structure.",

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

@@ -93,5 +93,5 @@ # @datastructures-js/priority-queue

patientsQueue
.enqueue('patient y', 1); // highest priority
.enqueue('patient z', 3);
.enqueue('patient w', 4); // lowest priority
.enqueue('patient y', 1) // highest priority
.enqueue('patient z', 3)
.enqueue('patient w', 4) // lowest priority
.enqueue('patient x', 2);

@@ -101,5 +101,5 @@

biddersQueue
.enqueue({ name: 'bidder y', value: 1000 }); // lowest priority
.enqueue({ name: 'bidder w', value: 2500 });
.enqueue({ name: 'bidder z', value: 3500 }); // highest priority
.enqueue({ name: 'bidder y', value: 1000 }) // lowest priority
.enqueue({ name: 'bidder w', value: 2500 })
.enqueue({ name: 'bidder z', value: 3500 }) // highest priority
.enqueue({ name: 'bidder x', value: 3000 });

@@ -106,0 +106,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc