@iter-tools/queue
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -9,2 +9,3 @@ class QueueItem { | ||
const _ = Symbol.for('_'); | ||
const flag = Symbol.for('@iter-tools/queue'); | ||
@@ -25,2 +26,10 @@ class Queue { | ||
static isQueue(inst) { | ||
return inst != null && inst[flag]; | ||
} | ||
get [flag]() { | ||
return true; | ||
} | ||
get size() { | ||
@@ -27,0 +36,0 @@ return this[_].size; |
{ | ||
"name": "@iter-tools/queue", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "An es6-style iterable queue", | ||
@@ -42,17 +42,16 @@ "main": "lib/queue.js", | ||
"codecov": "^3.6.1", | ||
"eslint": "^6.5.0", | ||
"eslint": "^7.5.0", | ||
"eslint-config-prettier": "^6.3.0", | ||
"eslint-config-standard": "^14.1.0", | ||
"eslint-plugin-import": "^2.22.0", | ||
"eslint-plugin-jest": "^22.19.0", | ||
"eslint-plugin-node": "^10.0.0", | ||
"eslint-plugin-jest": "^23.20.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-prettier": "^3.1.1", | ||
"eslint-plugin-promise": "^4.1.1", | ||
"eslint-plugin-standard": "^4.0.1", | ||
"husky": "^3.1.0", | ||
"jest": "^24.7.1", | ||
"lint-staged": "^9.4.1", | ||
"npm-run-all": "^4.1.5", | ||
"prettier": "^1.18.2" | ||
"husky": "^4.2.5", | ||
"jest": "^26.2.2", | ||
"lint-staged": "^10.2.11", | ||
"prettier": "^2.0.5" | ||
} | ||
} |
# @iter-tools/queue | ||
[](https://travis-ci.org/iter-tools/queue) | ||
[](https://codecov.io/gh/iter-tools/queue) | ||
A simple linked FIFO queue in the style of es6 data structures. | ||
@@ -4,0 +7,0 @@ |
3864
14
57
65