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

priority_queue

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

priority_queue - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

2

package.json
{ "name": "priority_queue"
, "version": "0.1.2"
, "version": "0.1.3"
, "description": "simple priority queue using a binary heap"

@@ -4,0 +4,0 @@ , "main": "./priority_queue.js"

@@ -1,4 +0,5 @@

var agnat_priority_queue = (function() { // namespace
(function() { // namespace
var exports = (typeof module !== 'undefined' && module.exports) ? module.exports : {};
var exports = (typeof module !== 'undefined' && module.exports) ?
module.exports : window.priority_queue = {};

@@ -39,3 +40,3 @@ exports.PriorityQueue = function PriorityQueue(compare, queue) {

j = i; p = parent(i);
for(; j >= 0 && compare(queue[j], queue[p]) < 0; j = p, p = parent(j)) {
for (; j > 0 && compare(queue[j], queue[p]) < 0; j = p, p = parent(j)) {
swap(j, p);

@@ -61,2 +62,2 @@ }

return exports; })(); // end of namespace
})(); // end of namespace
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