Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@fuman/utils

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fuman/utils - npm Package Compare versions

Comparing version
0.0.17
to
0.0.19
+3
-0
async/async-queue.cjs

@@ -50,2 +50,5 @@ "use strict";

}
get ended() {
return this.#ended;
}
peek() {

@@ -52,0 +55,0 @@ return this.queue.peekFront();

@@ -15,2 +15,3 @@ import { Deque } from '../structures/deque.js';

end(): void;
get ended(): boolean;
peek(): T | undefined;

@@ -17,0 +18,0 @@ next(): T | undefined;

@@ -15,2 +15,3 @@ import { Deque } from '../structures/deque.js';

end(): void;
get ended(): boolean;
peek(): T | undefined;

@@ -17,0 +18,0 @@ next(): T | undefined;

@@ -48,2 +48,5 @@ import { Deque } from "../structures/deque.js";

}
get ended() {
return this.#ended;
}
peek() {

@@ -50,0 +53,0 @@ return this.queue.peekFront();

@@ -5,4 +5,8 @@ "use strict";

#notify;
#promise;
wait() {
return new Promise((resolve) => {
if (this.#promise) {
return this.#promise;
}
return this.#promise = new Promise((resolve) => {
this.#notify = resolve;

@@ -14,4 +18,5 @@ });

this.#notify = void 0;
this.#promise = void 0;
}
}
exports.ConditionVariable = ConditionVariable;
class ConditionVariable {
#notify;
#promise;
wait() {
return new Promise((resolve) => {
if (this.#promise) {
return this.#promise;
}
return this.#promise = new Promise((resolve) => {
this.#notify = resolve;

@@ -11,2 +15,3 @@ });

this.#notify = void 0;
this.#promise = void 0;
}

@@ -13,0 +18,0 @@ }

+1
-1
{
"name": "@fuman/utils",
"type": "module",
"version": "0.0.17",
"version": "0.0.19",
"description": "various utils",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -16,3 +16,3 @@ interface TwoWayLinkedList<K, T> {

#private;
constructor(capacity: number, MapImpl?: new <K, V>() => Map<K, TwoWayLinkedList<K, V>>);
constructor(capacity: number, MapImpl?: new () => Map<K, TwoWayLinkedList<K, V>>);
get(key: K): V | undefined;

@@ -19,0 +19,0 @@ has(key: K): boolean;

@@ -16,3 +16,3 @@ interface TwoWayLinkedList<K, T> {

#private;
constructor(capacity: number, MapImpl?: new <K, V>() => Map<K, TwoWayLinkedList<K, V>>);
constructor(capacity: number, MapImpl?: new () => Map<K, TwoWayLinkedList<K, V>>);
get(key: K): V | undefined;

@@ -19,0 +19,0 @@ has(key: K): boolean;