@libp2p/utils 6.5.3 → 6.5.4-6f8cfeafb
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/filters/bloom-filter.d.ts +1 -1
- package/dist/src/filters/bloom-filter.js +7 -7
- package/dist/src/moving-average.d.ts +2 -2
- package/dist/src/moving-average.js +4 -4
- package/dist/src/rate-limiter.d.ts +1 -1
- package/dist/src/stream-to-ma-conn.js +3 -3
- package/dist/src/stream-to-ma-conn.js.map +1 -1
- package/package.json +7 -7
- package/src/filters/bloom-filter.ts +7 -7
- package/src/moving-average.ts +4 -4
- package/src/rate-limiter.ts +1 -1
- package/src/stream-to-ma-conn.ts +3 -3
- package/dist/typedoc-urls.json +0 -139
|
@@ -30,5 +30,5 @@ export declare class BloomFilter implements Filter {
|
|
|
30
30
|
* Create a `BloomFilter` with the smallest `bits` and `hashes` value for the
|
|
31
31
|
* specified item count and error rate.
|
|
32
32
|
*/
|
|
33
|
-
export declare function createBloomFilter(
|
|
33
|
+
export declare function createBloomFilter(itemCount: number, errorRate?: number): Filter;
|
|
34
34
|
//# sourceMappingURL=bloom-filter.d.ts.map
|
|
@@ -60,23 +60,23 @@ export class BloomFilter {
|
|
|
60
60
|
setbit(bit) {
|
|
61
61
|
const pos = Math.floor(bit / 8);
|
|
62
62
|
const shift = bit % 8;
|
|
63
|
-
let
|
|
64
|
-
|
|
65
|
-
this.buffer[pos] =
|
|
63
|
+
let bitField = this.buffer[pos];
|
|
64
|
+
bitField |= (0x1 << shift);
|
|
65
|
+
this.buffer[pos] = bitField;
|
|
66
66
|
}
|
|
67
67
|
getbit(bit) {
|
|
68
68
|
const pos = Math.floor(bit / 8);
|
|
69
69
|
const shift = bit % 8;
|
|
70
|
-
const
|
|
71
|
-
return (
|
|
70
|
+
const bitField = this.buffer[pos];
|
|
71
|
+
return (bitField & (0x1 << shift)) !== 0;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
/**
|
|
75
75
|
* Create a `BloomFilter` with the smallest `bits` and `hashes` value for the
|
|
76
76
|
* specified item count and error rate.
|
|
77
77
|
*/
|
|
78
|
-
export function createBloomFilter(
|
|
79
|
-
const opts = optimize(
|
|
78
|
+
export function createBloomFilter(itemCount, errorRate = 0.005) {
|
|
79
|
+
const opts = optimize(itemCount, errorRate);
|
|
80
80
|
return new BloomFilter(opts);
|
|
81
81
|
}
|
|
82
82
|
function optimize(itemCount, errorRate = 0.005) {
|
|
@@ -9,9 +9,9 @@ export declare class MovingAverage {
|
|
|
9
9
|
variance: number;
|
|
10
10
|
deviation: number;
|
|
11
11
|
forecast: number;
|
|
12
|
-
private readonly
|
|
12
|
+
private readonly timeSpan;
|
|
13
13
|
private previousTime?;
|
|
14
|
-
constructor(
|
|
14
|
+
constructor(timeSpan: number);
|
|
15
15
|
alpha(t: number, pt: number): number;
|
|
16
16
|
push(value: number, time?: number): void;
|
|
17
17
|
}
|
|
@@ -9,17 +9,17 @@ export class MovingAverage {
|
|
|
9
9
|
variance;
|
|
10
10
|
deviation;
|
|
11
11
|
forecast;
|
|
12
|
-
|
|
12
|
+
timeSpan;
|
|
13
13
|
previousTime;
|
|
14
|
-
constructor(
|
|
15
|
-
this.
|
|
14
|
+
constructor(timeSpan) {
|
|
15
|
+
this.timeSpan = timeSpan;
|
|
16
16
|
this.movingAverage = 0;
|
|
17
17
|
this.variance = 0;
|
|
18
18
|
this.deviation = 0;
|
|
19
19
|
this.forecast = 0;
|
|
20
20
|
}
|
|
21
21
|
alpha(t, pt) {
|
|
22
|
-
return 1 - (Math.exp(-(t - pt) / this.
|
|
22
|
+
return 1 - (Math.exp(-(t - pt) / this.timeSpan));
|
|
23
23
|
}
|
|
24
24
|
push(value, time = Date.now()) {
|
|
25
25
|
if (this.previousTime != null) {
|
|
@@ -9,19 +9,19 @@ export function streamToMaConnection(props) {
|
|
|
9
9
|
const log = logger.forComponent('libp2p:stream:converter');
|
|
10
10
|
let closedRead = false;
|
|
11
11
|
let closedWrite = false;
|
|
12
|
-
// piggyback on `stream.close` invocations to close
|
|
12
|
+
// piggyback on `stream.close` invocations to close multiaddr connection
|
|
13
13
|
const streamClose = stream.close.bind(stream);
|
|
14
14
|
stream.close = async (options) => {
|
|
15
15
|
await streamClose(options);
|
|
16
16
|
close(true);
|
|
17
17
|
};
|
|
18
|
-
// piggyback on `stream.abort` invocations to close
|
|
18
|
+
// piggyback on `stream.abort` invocations to close multiaddr connection
|
|
19
19
|
const streamAbort = stream.abort.bind(stream);
|
|
20
20
|
stream.abort = (err) => {
|
|
21
21
|
streamAbort(err);
|
|
22
22
|
close(true);
|
|
23
23
|
};
|
|
24
|
-
// piggyback on `stream.sink` invocations to close
|
|
24
|
+
// piggyback on `stream.sink` invocations to close multiaddr connection
|
|
25
25
|
const streamSink = stream.sink.bind(stream);
|
|
26
26
|
stream.sink = async (source) => {
|
|
27
27
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stream-to-ma-conn.js","sourceRoot":"","sources":["../../src/stream-to-ma-conn.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,YAAY,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAsB9B;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAAE,KAAuB;IAC3D,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,KAAK,CAAA;IACrE,MAAM,GAAG,GAAG,MAAM,CAAC,YAAY,CAAC,yBAAyB,CAAC,CAAA;IAE1D,IAAI,UAAU,GAAG,KAAK,CAAA;IACtB,IAAI,WAAW,GAAG,KAAK,CAAA;IAEvB,
|
|
1
|
+
{"version":3,"file":"stream-to-ma-conn.js","sourceRoot":"","sources":["../../src/stream-to-ma-conn.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,YAAY,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAA;AAs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@@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@libp2p/utils",
|
|
3
|
-
"version": "6.5.
|
|
3
|
+
"version": "6.5.4-6f8cfeafb",
|
|
4
4
|
"description": "Package to aggregate shared logic and dependencies for the libp2p ecosystem",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/libp2p/js-libp2p/tree/main/packages/utils#readme",
|
|
@@ -189,9 +189,9 @@
|
|
|
189
189
|
"dependencies": {
|
|
190
190
|
"@chainsafe/is-ip": "^2.0.2",
|
|
191
191
|
"@chainsafe/netmask": "^2.0.0",
|
|
192
|
-
"@libp2p/crypto": "
|
|
193
|
-
"@libp2p/interface": "
|
|
194
|
-
"@libp2p/logger": "
|
|
192
|
+
"@libp2p/crypto": "5.0.12-6f8cfeafb",
|
|
193
|
+
"@libp2p/interface": "2.6.0-6f8cfeafb",
|
|
194
|
+
"@libp2p/logger": "5.1.9-6f8cfeafb",
|
|
195
195
|
"@multiformats/multiaddr": "^12.3.3",
|
|
196
196
|
"@sindresorhus/fnv1a": "^3.1.0",
|
|
197
197
|
"any-signal": "^4.1.1",
|
|
@@ -205,14 +205,14 @@
|
|
|
205
205
|
"netmask": "^2.0.2",
|
|
206
206
|
"p-defer": "^4.0.1",
|
|
207
207
|
"race-event": "^1.3.0",
|
|
208
|
-
"race-signal": "^1.1.
|
|
208
|
+
"race-signal": "^1.1.2",
|
|
209
209
|
"uint8arraylist": "^2.4.8",
|
|
210
210
|
"uint8arrays": "^5.1.0"
|
|
211
211
|
},
|
|
212
212
|
"devDependencies": {
|
|
213
|
-
"@libp2p/peer-id": "
|
|
213
|
+
"@libp2p/peer-id": "5.0.13-6f8cfeafb",
|
|
214
214
|
"@types/netmask": "^2.0.5",
|
|
215
|
-
"aegir": "^45.
|
|
215
|
+
"aegir": "^45.1.1",
|
|
216
216
|
"benchmark": "^2.1.4",
|
|
217
217
|
"delay": "^6.0.0",
|
|
218
218
|
"it-all": "^3.0.6",
|
|
@@ -81,17 +81,17 @@ export class BloomFilter implements Filter {
|
|
|
81
81
|
const pos = Math.floor(bit / 8)
|
|
82
82
|
const shift = bit % 8
|
|
83
83
|
|
|
84
|
-
let
|
|
85
|
-
|
|
86
|
-
this.buffer[pos] =
|
|
84
|
+
let bitField = this.buffer[pos]
|
|
85
|
+
bitField |= (0x1 << shift)
|
|
86
|
+
this.buffer[pos] = bitField
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
getbit (bit: number): boolean {
|
|
90
90
|
const pos = Math.floor(bit / 8)
|
|
91
91
|
const shift = bit % 8
|
|
92
92
|
|
|
93
|
-
const
|
|
94
|
-
return (
|
|
93
|
+
const bitField = this.buffer[pos]
|
|
94
|
+
return (bitField & (0x1 << shift)) !== 0
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
|
|
@@ -99,8 +99,8 @@ export class BloomFilter implements Filter {
|
|
|
99
99
|
* Create a `BloomFilter` with the smallest `bits` and `hashes` value for the
|
|
100
100
|
* specified item count and error rate.
|
|
101
101
|
*/
|
|
102
|
-
export function createBloomFilter (
|
|
103
|
-
const opts = optimize(
|
|
102
|
+
export function createBloomFilter (itemCount: number, errorRate: number = 0.005): Filter {
|
|
103
|
+
const opts = optimize(itemCount, errorRate)
|
|
104
104
|
return new BloomFilter(opts)
|
|
105
105
|
}
|
|
106
106
|
|
package/src/moving-average.ts
CHANGED
|
@@ -9,11 +9,11 @@ export class MovingAverage {
|
|
|
9
9
|
public variance: number
|
|
10
10
|
public deviation: number
|
|
11
11
|
public forecast: number
|
|
12
|
-
private readonly
|
|
12
|
+
private readonly timeSpan: number
|
|
13
13
|
private previousTime?: number
|
|
14
14
|
|
|
15
|
-
constructor (
|
|
16
|
-
this.
|
|
15
|
+
constructor (timeSpan: number) {
|
|
16
|
+
this.timeSpan = timeSpan
|
|
17
17
|
this.movingAverage = 0
|
|
18
18
|
this.variance = 0
|
|
19
19
|
this.deviation = 0
|
|
@@ -21,7 +21,7 @@ export class MovingAverage {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
alpha (t: number, pt: number): number {
|
|
24
|
-
return 1 - (Math.exp(-(t - pt) / this.
|
|
24
|
+
return 1 - (Math.exp(-(t - pt) / this.timeSpan))
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
push (value: number, time: number = Date.now()): void {
|
package/src/rate-limiter.ts
CHANGED
package/src/stream-to-ma-conn.ts
CHANGED
|
@@ -32,21 +32,21 @@ export function streamToMaConnection (props: StreamProperties): MultiaddrConnect
|
|
|
32
32
|
let closedRead = false
|
|
33
33
|
let closedWrite = false
|
|
34
34
|
|
|
35
|
-
// piggyback on `stream.close` invocations to close
|
|
35
|
+
// piggyback on `stream.close` invocations to close multiaddr connection
|
|
36
36
|
const streamClose = stream.close.bind(stream)
|
|
37
37
|
stream.close = async (options) => {
|
|
38
38
|
await streamClose(options)
|
|
39
39
|
close(true)
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
// piggyback on `stream.abort` invocations to close
|
|
42
|
+
// piggyback on `stream.abort` invocations to close multiaddr connection
|
|
43
43
|
const streamAbort = stream.abort.bind(stream)
|
|
44
44
|
stream.abort = (err) => {
|
|
45
45
|
streamAbort(err)
|
|
46
46
|
close(true)
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
// piggyback on `stream.sink` invocations to close
|
|
49
|
+
// piggyback on `stream.sink` invocations to close multiaddr connection
|
|
50
50
|
const streamSink = stream.sink.bind(stream)
|
|
51
51
|
stream.sink = async (source) => {
|
|
52
52
|
try {
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"createTimeoutOptions": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.abort_options.createTimeoutOptions.html",
|
|
3
|
-
"./abort-options:createTimeoutOptions": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.abort_options.createTimeoutOptions.html",
|
|
4
|
-
"AbstractStream": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.abstract_stream.AbstractStream.html",
|
|
5
|
-
"./abstract-stream:AbstractStream": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.abstract_stream.AbstractStream.html",
|
|
6
|
-
"AbstractStreamInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.abstract_stream.AbstractStreamInit.html",
|
|
7
|
-
"./abstract-stream:AbstractStreamInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.abstract_stream.AbstractStreamInit.html",
|
|
8
|
-
"AdaptiveTimeout": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.adaptive_timeout.AdaptiveTimeout.html",
|
|
9
|
-
"./adaptive-timeout:AdaptiveTimeout": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.adaptive_timeout.AdaptiveTimeout.html",
|
|
10
|
-
"AdaptiveTimeoutInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.adaptive_timeout.AdaptiveTimeoutInit.html",
|
|
11
|
-
"./adaptive-timeout:AdaptiveTimeoutInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.adaptive_timeout.AdaptiveTimeoutInit.html",
|
|
12
|
-
"AdaptiveTimeoutSignal": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.adaptive_timeout.AdaptiveTimeoutSignal.html",
|
|
13
|
-
"./adaptive-timeout:AdaptiveTimeoutSignal": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.adaptive_timeout.AdaptiveTimeoutSignal.html",
|
|
14
|
-
"GetTimeoutSignalOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.adaptive_timeout.GetTimeoutSignalOptions.html",
|
|
15
|
-
"./adaptive-timeout:GetTimeoutSignalOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.adaptive_timeout.GetTimeoutSignalOptions.html",
|
|
16
|
-
"DEFAULT_FAILURE_MULTIPLIER": "https://libp2p.github.io/js-libp2p/variables/_libp2p_utils.adaptive_timeout.DEFAULT_FAILURE_MULTIPLIER.html",
|
|
17
|
-
"./adaptive-timeout:DEFAULT_FAILURE_MULTIPLIER": "https://libp2p.github.io/js-libp2p/variables/_libp2p_utils.adaptive_timeout.DEFAULT_FAILURE_MULTIPLIER.html",
|
|
18
|
-
"DEFAULT_MIN_TIMEOUT": "https://libp2p.github.io/js-libp2p/variables/_libp2p_utils.adaptive_timeout.DEFAULT_MIN_TIMEOUT.html",
|
|
19
|
-
"./adaptive-timeout:DEFAULT_MIN_TIMEOUT": "https://libp2p.github.io/js-libp2p/variables/_libp2p_utils.adaptive_timeout.DEFAULT_MIN_TIMEOUT.html",
|
|
20
|
-
"DEFAULT_TIMEOUT_MULTIPLIER": "https://libp2p.github.io/js-libp2p/variables/_libp2p_utils.adaptive_timeout.DEFAULT_TIMEOUT_MULTIPLIER.html",
|
|
21
|
-
"./adaptive-timeout:DEFAULT_TIMEOUT_MULTIPLIER": "https://libp2p.github.io/js-libp2p/variables/_libp2p_utils.adaptive_timeout.DEFAULT_TIMEOUT_MULTIPLIER.html",
|
|
22
|
-
"arrayEquals": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.array_equals.arrayEquals.html",
|
|
23
|
-
"./array-equals:arrayEquals": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.array_equals.arrayEquals.html",
|
|
24
|
-
"SafelyCloseConnectionOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.close.SafelyCloseConnectionOptions.html",
|
|
25
|
-
"./close:SafelyCloseConnectionOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.close.SafelyCloseConnectionOptions.html",
|
|
26
|
-
"safelyCloseConnectionIfUnused": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.close.safelyCloseConnectionIfUnused.html",
|
|
27
|
-
"./close:safelyCloseConnectionIfUnused": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.close.safelyCloseConnectionIfUnused.html",
|
|
28
|
-
"safelyCloseStream": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.close.safelyCloseStream.html",
|
|
29
|
-
"./close:safelyCloseStream": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.close.safelyCloseStream.html",
|
|
30
|
-
"closeSource": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.close_source.closeSource.html",
|
|
31
|
-
"./close-source:closeSource": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.close_source.closeSource.html",
|
|
32
|
-
"DebouncedFunction": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.debounce.DebouncedFunction.html",
|
|
33
|
-
"./debounce:DebouncedFunction": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.debounce.DebouncedFunction.html",
|
|
34
|
-
"debounce": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.debounce.debounce.html",
|
|
35
|
-
"./debounce:debounce": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.debounce.debounce.html",
|
|
36
|
-
"BloomFilter": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.filters.BloomFilter.html",
|
|
37
|
-
"Bucket": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.filters.Bucket.html",
|
|
38
|
-
"CuckooFilter": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.filters.CuckooFilter.html",
|
|
39
|
-
"Fingerprint": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.filters.Fingerprint.html",
|
|
40
|
-
"ScalableCuckooFilter": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.filters.ScalableCuckooFilter.html",
|
|
41
|
-
"BloomFilterOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.filters.BloomFilterOptions.html",
|
|
42
|
-
"CuckooFilterInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.filters.CuckooFilterInit.html",
|
|
43
|
-
"Filter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.filters.Filter.html",
|
|
44
|
-
"./filters:Filter": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.filters.Filter.html",
|
|
45
|
-
"Hash": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.filters.Hash.html",
|
|
46
|
-
"ScalableCuckooFilterInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.filters.ScalableCuckooFilterInit.html",
|
|
47
|
-
"createBloomFilter": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.filters.createBloomFilter.html",
|
|
48
|
-
"createCuckooFilter": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.filters.createCuckooFilter.html",
|
|
49
|
-
"createScalableCuckooFilter": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.filters.createScalableCuckooFilter.html",
|
|
50
|
-
"isGlobalUnicastIp": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.global_unicast_ip.isGlobalUnicastIp.html",
|
|
51
|
-
"./global-unicast-ip:isGlobalUnicastIp": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.global_unicast_ip.isGlobalUnicastIp.html",
|
|
52
|
-
"ipPortToMultiaddr": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.ip_port_to_multiaddr.ipPortToMultiaddr.html",
|
|
53
|
-
"./ip-port-to-multiaddr:ipPortToMultiaddr": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.ip_port_to_multiaddr.ipPortToMultiaddr.html",
|
|
54
|
-
"isAsyncGenerator": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.is_async_generator.isAsyncGenerator.html",
|
|
55
|
-
"./is-async-generator:isAsyncGenerator": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.is_async_generator.isAsyncGenerator.html",
|
|
56
|
-
"isGenerator": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.is_generator.isGenerator.html",
|
|
57
|
-
"./is-generator:isGenerator": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.is_generator.isGenerator.html",
|
|
58
|
-
"isPromise": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.is_promise.isPromise.html",
|
|
59
|
-
"./is-promise:isPromise": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.is_promise.isPromise.html",
|
|
60
|
-
"isLinkLocalIp": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.link_local_ip.isLinkLocalIp.html",
|
|
61
|
-
"./link-local-ip:isLinkLocalIp": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.link_local_ip.isLinkLocalIp.html",
|
|
62
|
-
"MovingAverage": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.moving_average.MovingAverage.html",
|
|
63
|
-
"./moving-average:MovingAverage": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.moving_average.MovingAverage.html",
|
|
64
|
-
"isGlobalUnicast": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.multiaddr_is_global_unicast.isGlobalUnicast.html",
|
|
65
|
-
"./multiaddr/is-global-unicast:isGlobalUnicast": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.multiaddr_is_global_unicast.isGlobalUnicast.html",
|
|
66
|
-
"isIpBased": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.multiaddr_is_ip_based.isIpBased.html",
|
|
67
|
-
"./multiaddr/is-ip-based:isIpBased": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.multiaddr_is_ip_based.isIpBased.html",
|
|
68
|
-
"isLinkLocal": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.multiaddr_is_link_local.isLinkLocal.html",
|
|
69
|
-
"./multiaddr/is-link-local:isLinkLocal": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.multiaddr_is_link_local.isLinkLocal.html",
|
|
70
|
-
"isLoopback": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.multiaddr_is_loopback.isLoopback.html",
|
|
71
|
-
"./multiaddr/is-loopback:isLoopback": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.multiaddr_is_loopback.isLoopback.html",
|
|
72
|
-
"isNetworkAddress": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.multiaddr_is_network_address.isNetworkAddress.html",
|
|
73
|
-
"./multiaddr/is-network-address:isNetworkAddress": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.multiaddr_is_network_address.isNetworkAddress.html",
|
|
74
|
-
"isPrivate": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.multiaddr_is_private.isPrivate.html",
|
|
75
|
-
"./multiaddr/is-private:isPrivate": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.multiaddr_is_private.isPrivate.html",
|
|
76
|
-
"PeerQueue": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.peer_queue.PeerQueue.html",
|
|
77
|
-
"./peer-queue:PeerQueue": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.peer_queue.PeerQueue.html",
|
|
78
|
-
"PeerQueueJobOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.peer_queue.PeerQueueJobOptions.html",
|
|
79
|
-
"./peer-queue:PeerQueueJobOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.peer_queue.PeerQueueJobOptions.html",
|
|
80
|
-
"PriorityQueue": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.priority_queue.PriorityQueue.html",
|
|
81
|
-
"./priority-queue:PriorityQueue": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.priority_queue.PriorityQueue.html",
|
|
82
|
-
"PriorityQueueJobOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.priority_queue.PriorityQueueJobOptions.html",
|
|
83
|
-
"./priority-queue:PriorityQueueJobOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.priority_queue.PriorityQueueJobOptions.html",
|
|
84
|
-
"isPrivateIp": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.private_ip.isPrivateIp.html",
|
|
85
|
-
"./private-ip:isPrivateIp": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.private_ip.isPrivateIp.html",
|
|
86
|
-
"Job": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.queue.Job.html",
|
|
87
|
-
"JobRecipient": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.queue.JobRecipient.html",
|
|
88
|
-
"Queue": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.queue.Queue.html",
|
|
89
|
-
"./queue:Queue": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.queue.Queue.html",
|
|
90
|
-
"Comparator": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.queue.Comparator.html",
|
|
91
|
-
"./queue:Comparator": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.queue.Comparator.html",
|
|
92
|
-
"JobMatcher": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.queue.JobMatcher.html",
|
|
93
|
-
"./queue:JobMatcher": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.queue.JobMatcher.html",
|
|
94
|
-
"JobTimeline": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.queue.JobTimeline.html",
|
|
95
|
-
"QueueEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.queue.QueueEvents.html",
|
|
96
|
-
"./queue:QueueEvents": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.queue.QueueEvents.html",
|
|
97
|
-
"QueueInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.queue.QueueInit.html",
|
|
98
|
-
"./queue:QueueInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.queue.QueueInit.html",
|
|
99
|
-
"QueueJobFailure": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.queue.QueueJobFailure.html",
|
|
100
|
-
"./queue:QueueJobFailure": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.queue.QueueJobFailure.html",
|
|
101
|
-
"QueueJobSuccess": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.queue.QueueJobSuccess.html",
|
|
102
|
-
"./queue:QueueJobSuccess": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.queue.QueueJobSuccess.html",
|
|
103
|
-
"RunFunction": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.queue.RunFunction.html",
|
|
104
|
-
"./queue:RunFunction": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.queue.RunFunction.html",
|
|
105
|
-
"JobStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_utils.queue.JobStatus.html",
|
|
106
|
-
"./queue:JobStatus": "https://libp2p.github.io/js-libp2p/types/_libp2p_utils.queue.JobStatus.html",
|
|
107
|
-
"MemoryStorage": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.rate_limiter.MemoryStorage.html",
|
|
108
|
-
"./rate-limiter:MemoryStorage": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.rate_limiter.MemoryStorage.html",
|
|
109
|
-
"RateLimiter": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.rate_limiter.RateLimiter.html",
|
|
110
|
-
"./rate-limiter:RateLimiter": "https://libp2p.github.io/js-libp2p/classes/_libp2p_utils.rate_limiter.RateLimiter.html",
|
|
111
|
-
"GetKeySecDurationOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.rate_limiter.GetKeySecDurationOptions.html",
|
|
112
|
-
"./rate-limiter:GetKeySecDurationOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.rate_limiter.GetKeySecDurationOptions.html",
|
|
113
|
-
"RateLimiterInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.rate_limiter.RateLimiterInit.html",
|
|
114
|
-
"./rate-limiter:RateLimiterInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.rate_limiter.RateLimiterInit.html",
|
|
115
|
-
"RateLimiterResult": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.rate_limiter.RateLimiterResult.html",
|
|
116
|
-
"./rate-limiter:RateLimiterResult": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.rate_limiter.RateLimiterResult.html",
|
|
117
|
-
"RateRecord": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.rate_limiter.RateRecord.html",
|
|
118
|
-
"./rate-limiter:RateRecord": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.rate_limiter.RateRecord.html",
|
|
119
|
-
"RepeatingTask": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.repeating_task.RepeatingTask.html",
|
|
120
|
-
"./repeating-task:RepeatingTask": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.repeating_task.RepeatingTask.html",
|
|
121
|
-
"RepeatingTaskOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.repeating_task.RepeatingTaskOptions.html",
|
|
122
|
-
"./repeating-task:RepeatingTaskOptions": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.repeating_task.RepeatingTaskOptions.html",
|
|
123
|
-
"repeatingTask": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.repeating_task.repeatingTask-1.html",
|
|
124
|
-
"./repeating-task:repeatingTask": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.repeating_task.repeatingTask-1.html",
|
|
125
|
-
"StreamProperties": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.stream_to_ma_conn.StreamProperties.html",
|
|
126
|
-
"./stream-to-ma-conn:StreamProperties": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.stream_to_ma_conn.StreamProperties.html",
|
|
127
|
-
"streamToMaConnection": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.stream_to_ma_conn.streamToMaConnection.html",
|
|
128
|
-
"./stream-to-ma-conn:streamToMaConnection": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.stream_to_ma_conn.streamToMaConnection.html",
|
|
129
|
-
"CreateTrackedListInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.tracked_list.CreateTrackedListInit.html",
|
|
130
|
-
"./tracked-list:CreateTrackedListInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.tracked_list.CreateTrackedListInit.html",
|
|
131
|
-
"trackedList": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.tracked_list.trackedList.html",
|
|
132
|
-
"./tracked-list:trackedList": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.tracked_list.trackedList.html",
|
|
133
|
-
"CreateTrackedMapInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.tracked_map.CreateTrackedMapInit.html",
|
|
134
|
-
"./tracked-map:CreateTrackedMapInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.tracked_map.CreateTrackedMapInit.html",
|
|
135
|
-
"TrackedMapInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.tracked_map.TrackedMapInit.html",
|
|
136
|
-
"./tracked-map:TrackedMapInit": "https://libp2p.github.io/js-libp2p/interfaces/_libp2p_utils.tracked_map.TrackedMapInit.html",
|
|
137
|
-
"trackedMap": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.tracked_map.trackedMap.html",
|
|
138
|
-
"./tracked-map:trackedMap": "https://libp2p.github.io/js-libp2p/functions/_libp2p_utils.tracked_map.trackedMap.html"
|
|
139
|
-
}
|