@libp2p/utils
Advanced tools
Comparing version 6.1.3-c2ff2e454 to 6.1.3-d30d07e6f
@@ -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-d30d07e6f", | ||
"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-d30d07e6f", | ||
"@libp2p/interface": "2.2.0-d30d07e6f", | ||
"@libp2p/logger": "5.1.3-d30d07e6f", | ||
"@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-d30d07e6f", | ||
"@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
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
266685
39434
5071
26
66
321
+ Added@libp2p/crypto@5.0.6-d30d07e6f(transitive)
+ Added@libp2p/interface@2.2.0-d30d07e6f(transitive)
+ Added@libp2p/logger@5.1.3-d30d07e6f(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)