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

@tyriar/fibonacci-heap

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tyriar/fibonacci-heap - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

7

index.js

@@ -185,2 +185,3 @@ 'use strict';

var NodeListIterator = function (start) {
this.index = -1;
this.items = [];

@@ -195,15 +196,13 @@ var current = start;

/**
* @private
* @return {boolean} Whether there is a next node in the iterator.
*/
NodeListIterator.prototype.hasNext = function () {
return this.items.length > 0;
return this.index < this.items.length - 1;
};
/**
* @private
* @return {Node} The next node.
*/
NodeListIterator.prototype.next = function () {
return this.items.shift();
return this.items[++this.index];
};

@@ -210,0 +209,0 @@

{
"name": "@tyriar/fibonacci-heap",
"version": "1.0.7",
"version": "1.0.8",
"description": "An implementation of the Fibonacci heap data structure",

@@ -5,0 +5,0 @@ "scripts": {

@@ -1,6 +0,6 @@

# js-fibonacci-heap [![NPM version](https://img.shields.io/npm/v/@tyriar/fibonacci-heap.svg?style=flat)](https://www.npmjs.org/package/@tyriar/fibonacci-heap)
# js-fibonacci-heap
[![Build Status](https://api.travis-ci.org/gwtw/js-fibonacci-heap.svg?branch=master)](http://travis-ci.org/gwtw/js-fibonacci-heap)
[![Coverage Status](https://coveralls.io/repos/github/gwtw/js-fibonacci-heap/badge.svg?branch=master)](https://coveralls.io/github/gwtw/js-fibonacci-heap?branch=master)
[![Build Status](http://img.shields.io/travis/gwtw/js-fibonacci-heap.svg?style=flat)](http://travis-ci.org/gwtw/js-fibonacci-heap)
[![Coverage Status](https://img.shields.io/coveralls/gwtw/js-fibonacci-heap.svg?branch=master&service=github)](https://coveralls.io/github/gwtw/js-fibonacci-heap?branch=master)
A JavaScript implementation of the [Fibonacci heap](http://www.growingwiththeweb.com/2014/06/fibonacci-heap.html) data structure.

@@ -7,0 +7,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