@libp2p/utils
Advanced tools
Comparing version 6.1.3 to 6.2.0
@@ -183,2 +183,5 @@ import { StreamResetError, StreamStateError } from '@libp2p/interface'; | ||
async close(options) { | ||
if (this.status !== 'open') { | ||
return; | ||
} | ||
this.log.trace('closing gracefully'); | ||
@@ -185,0 +188,0 @@ this.status = 'closing'; |
@@ -32,2 +32,6 @@ { | ||
"./close-source:closeSource": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.close_source.closeSource.html", | ||
"DebouncedFunction": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.debounce.DebouncedFunction.html", | ||
"./debounce:DebouncedFunction": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.debounce.DebouncedFunction.html", | ||
"debounce": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.debounce.debounce.html", | ||
"./debounce:debounce": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.debounce.debounce.html", | ||
"BloomFilter": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.filters.BloomFilter.html", | ||
@@ -100,2 +104,8 @@ "Bucket": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.filters.Bucket.html", | ||
"./rate-limiter:RateRecord": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.rate_limiter.RateRecord.html", | ||
"RepeatingTask": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.repeating_task.RepeatingTask.html", | ||
"./repeating-task:RepeatingTask": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.repeating_task.RepeatingTask.html", | ||
"RepeatingTaskOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.repeating_task.RepeatingTaskOptions.html", | ||
"./repeating-task:RepeatingTaskOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.repeating_task.RepeatingTaskOptions.html", | ||
"repeatingTask": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.repeating_task.repeatingTask-1.html", | ||
"./repeating-task:repeatingTask": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.repeating_task.repeatingTask-1.html", | ||
"StreamProperties": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.stream_to_ma_conn.StreamProperties.html", | ||
@@ -102,0 +112,0 @@ "./stream-to-ma-conn:StreamProperties": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.stream_to_ma_conn.StreamProperties.html", |
{ | ||
"name": "@libp2p/utils", | ||
"version": "6.1.3", | ||
"version": "6.2.0", | ||
"description": "Package to aggregate shared logic and dependencies for the libp2p ecosystem", | ||
@@ -71,2 +71,6 @@ "license": "Apache-2.0 OR MIT", | ||
}, | ||
"./debounce": { | ||
"types": "./dist/src/debounce.d.ts", | ||
"import": "./dist/src/debounce.js" | ||
}, | ||
"./filters": { | ||
@@ -116,2 +120,6 @@ "types": "./dist/src/filters/index.d.ts", | ||
}, | ||
"./repeating-task": { | ||
"types": "./dist/src/repeating-task.d.ts", | ||
"import": "./dist/src/repeating-task.js" | ||
}, | ||
"./stream-to-ma-conn": { | ||
@@ -118,0 +126,0 @@ "types": "./dist/src/stream-to-ma-conn.d.ts", |
@@ -287,2 +287,6 @@ import { StreamResetError, StreamStateError } from '@libp2p/interface' | ||
async close (options?: AbortOptions): Promise<void> { | ||
if (this.status !== 'open') { | ||
return | ||
} | ||
this.log.trace('closing gracefully') | ||
@@ -289,0 +293,0 @@ |
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
281633
170
5199