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

fifo

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fifo - npm Package Compare versions

Comparing version

to
2.4.1

20

index.d.ts

@@ -17,3 +17,3 @@ export = FIFO

/** Contains the first node on the list */
node: Node<T>
node: null|Node<T>

@@ -24,3 +24,3 @@ /** Number of nodes in the list */

/** Sets the value of a node */
set(node: Node<T>, value: T): null|Node<T>
set(node: null|Node<T>, value: T): null|Node<T>

@@ -31,3 +31,3 @@ /**

*/
next(node: Node<T>): null|Node<T>
next(node?: null|Node<T>): null|Node<T>

@@ -38,12 +38,12 @@ /**

*/
prev(node: Node<T>): null|Node<T>
prev(node?: null|Node<T>): null|Node<T>
/** Returns the value of the node */
get(node: Node<T>): null|T
get(node?: null|Node<T>): null|T
/** Removes the node and returns the value */
remove(node: Node<T>): null|T
remove(node?: null|Node<T>): null|T
/** Inserts a value at the beginning of the list */
unshift(value: T): ReturnType<this['push']>
unshift(value: T): Node<T>

@@ -54,3 +54,3 @@ /**

*/
push(value: T): ReturnType<this['add']>
push(value: T): Node<T>

@@ -70,6 +70,6 @@ /** Moves a node to the end of the list */

/** Removes the first node and returns the value */
shift(): null|ReturnType<this['remove']>
shift(): null|Node<T>
/** Removes the last node and returns the value */
pop(): null|ReturnType<this['remove']>
pop(): null|Node<T>

@@ -76,0 +76,0 @@ /** Returns whether the list is empty */

{
"name": "fifo",
"version": "2.4.0",
"version": "2.4.1",
"description": "FIFO queue implemented using a double linked-list",

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