You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

js-stacks

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-stacks - npm Package Compare versions

Comparing version

to
1.0.3

22

index.js

@@ -35,12 +35,18 @@ 'use strict';

let prev = null;
while (node) {
if (node.next) {
prev = node;
if (this.size <= 1) {
this.first = null;
this.last = null;
this.size = 0;
} else {
while (node) {
if (node.next) {
prev = node;
}
node = node.next;
}
node = node.next;
this.size -= 1;
node = prev.next;
this.last = prev;
prev.next = null;
}
this.size -= 1;
node = prev.next;
this.last = prev;
prev.next = null;
return node.value;

@@ -47,0 +53,0 @@ }

{
"name": "js-stacks",
"version": "1.0.2",
"version": "1.0.3",
"description": "Javascript Implementation of Stack",

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.