@libp2p/utils
Advanced tools
Comparing version 6.1.3-c2ff2e454 to 6.1.3-c917314f3
@@ -1,4 +0,4 @@ | ||
export interface CancelableFunction { | ||
import type { Startable } from '@libp2p/interface'; | ||
export interface DebouncedFunction extends Startable { | ||
(): void; | ||
stop(): void; | ||
} | ||
@@ -10,3 +10,3 @@ /** | ||
*/ | ||
export declare function debounce(func: () => void | Promise<void>, wait: number): CancelableFunction; | ||
export declare function debounce(func: () => void | Promise<void>, wait: number): DebouncedFunction; | ||
//# sourceMappingURL=debounce.d.ts.map |
@@ -16,2 +16,3 @@ /** | ||
}; | ||
output.start = () => { }; | ||
output.stop = () => { | ||
@@ -18,0 +19,0 @@ clearTimeout(timeout); |
{ | ||
"name": "@libp2p/utils", | ||
"version": "6.1.3-c2ff2e454", | ||
"version": "6.1.3-c917314f3", | ||
"description": "Package to aggregate shared logic and dependencies for the libp2p ecosystem", | ||
@@ -159,5 +159,5 @@ "license": "Apache-2.0 OR MIT", | ||
"@chainsafe/is-ip": "^2.0.2", | ||
"@libp2p/crypto": "5.0.6-c2ff2e454", | ||
"@libp2p/interface": "2.2.0-c2ff2e454", | ||
"@libp2p/logger": "5.1.3-c2ff2e454", | ||
"@libp2p/crypto": "5.0.6-c917314f3", | ||
"@libp2p/interface": "2.2.0-c917314f3", | ||
"@libp2p/logger": "5.1.3-c917314f3", | ||
"@multiformats/multiaddr": "^12.2.3", | ||
@@ -183,3 +183,3 @@ "@sindresorhus/fnv1a": "^3.1.0", | ||
"devDependencies": { | ||
"@libp2p/peer-id": "5.0.7-c2ff2e454", | ||
"@libp2p/peer-id": "5.0.7-c917314f3", | ||
"@types/netmask": "^2.0.5", | ||
@@ -186,0 +186,0 @@ "aegir": "^44.0.1", |
@@ -1,4 +0,5 @@ | ||
export interface CancelableFunction { | ||
import type { Startable } from '@libp2p/interface' | ||
export interface DebouncedFunction extends Startable { | ||
(): void | ||
stop(): void | ||
} | ||
@@ -11,3 +12,3 @@ | ||
*/ | ||
export function debounce (func: () => void | Promise<void>, wait: number): CancelableFunction { | ||
export function debounce (func: () => void | Promise<void>, wait: number): DebouncedFunction { | ||
let timeout: ReturnType<typeof setTimeout> | undefined | ||
@@ -24,2 +25,3 @@ | ||
} | ||
output.start = () => {} | ||
output.stop = () => { | ||
@@ -26,0 +28,0 @@ clearTimeout(timeout) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
266685
5071
+ Added@libp2p/crypto@5.0.6-c917314f3(transitive)
+ Added@libp2p/interface@2.2.0-c917314f3(transitive)
+ Added@libp2p/logger@5.1.3-c917314f3(transitive)
- Removed@libp2p/crypto@5.0.6-c2ff2e454(transitive)
- Removed@libp2p/interface@2.2.0-c2ff2e454(transitive)
- Removed@libp2p/logger@5.1.3-c2ff2e454(transitive)