Comparing version 1.0.0 to 1.1.0
@@ -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() |
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5774
123
71