Socket
Socket
Sign inDemoInstall

fast-fifo

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

fast-fifo - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

4

fixed-size.js

@@ -26,2 +26,6 @@ module.exports = class FixedFIFO {

peek () {
return this.buffer[this.btm]
}
isEmpty () {

@@ -28,0 +32,0 @@ return this.buffer[this.btm] === undefined

@@ -29,2 +29,6 @@ const FixedFIFO = require('./fixed-size')

peek () {
return this.tail.peek()
}
isEmpty () {

@@ -31,0 +35,0 @@ return this.head.isEmpty()

2

package.json
{
"name": "fast-fifo",
"version": "1.0.0",
"version": "1.1.0",
"description": "A fast fifo implementation similar to the one powering nextTick in Node.js core",

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

@@ -44,2 +44,6 @@ # fast-fifo

#### `value = q.peek()`
Return the oldest value from the FIFO without shifting it out.
## Benchmarks

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