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

little-ds-toolkit

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

little-ds-toolkit - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

7

lib/heap.js

@@ -105,2 +105,5 @@

var root = this.data[0];
this.onMove(this.data[0], undefined, 0);
var last = this.data.pop();

@@ -159,2 +162,4 @@

this.onMove(this.data[i], undefined, i);
if (i === this.data.length - 1) {

@@ -179,2 +184,4 @@ last = this.data.pop();

if (i === -1) return;
this.onMove(this.data[i], undefined, i);
this.data.push(value);

@@ -181,0 +188,0 @@

2

package.json
{
"name": "little-ds-toolkit",
"version": "0.2.2",
"version": "0.2.3",
"description": "A small collection of useful data structures",

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

@@ -240,3 +240,3 @@ var assert = require('chai').assert;

assert.deepEqual(h.data, [1, 2, 3, 4]);
assert.deepEqual(positions, {0: 0, 1: 0, 2: 1, 3: 2, 4: 3});
assert.deepEqual(positions, {0: undefined, 1: 0, 2: 1, 3: 2, 4: 3});
});

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