🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@common.js/yocto-queue

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@common.js/yocto-queue - npm Package Compare versions

Comparing version

to
1.1.1

7

index.d.ts

@@ -51,2 +51,9 @@ export default class Queue<ValueType> implements Iterable<ValueType> {

/**
Get the next value in the queue without removing it.
@returns The value or `undefined` if the queue is empty.
*/
peek(): ValueType | undefined;
/**
Clear the queue.

@@ -53,0 +60,0 @@ */

@@ -260,2 +260,13 @@ /*

{
key: "peek",
value: function peek() {
if (!_classPrivateFieldGet(this, _head)) {
return;
}
return _classPrivateFieldGet(this, _head).value;
// TODO: Node.js 18.
// return this.#head?.value;
}
},
{
key: "clear",

@@ -262,0 +273,0 @@ value: function clear() {

6

package.json
{
"name": "@common.js/yocto-queue",
"version": "1.0.0",
"description": "Tiny queue data structure",
"version": "1.1.1",
"description": "yocto-queue package exported as CommonJS modules",
"license": "MIT",

@@ -9,2 +9,4 @@ "repository": "etienne-martin/common.js",

"type": "commonjs",
"types": "./index.d.ts",
"sideEffects": false,
"engines": {

@@ -11,0 +13,0 @@ "node": ">=12.20"

@@ -5,2 +5,2 @@ # @common.js/yocto-queue

Exported from [yocto-queue@1.0.0](https://www.npmjs.com/package/yocto-queue/v/1.0.0) using https://github.com/etienne-martin/common.js.
Exported from [yocto-queue@1.1.1](https://www.npmjs.com/package/yocto-queue/v/1.1.1) using https://github.com/etienne-martin/common.js.