@helia/interface 5.1.0 → 5.2.0-c7024de
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/README.md +2 -2
- package/dist/src/routing.d.ts +2 -2
- package/dist/src/routing.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/routing.ts +2 -2
- package/LICENSE +0 -4
- package/dist/typedoc-urls.json +0 -71
package/README.md
CHANGED
|
@@ -56,8 +56,8 @@ $ npm i @helia/interface
|
|
|
56
56
|
|
|
57
57
|
Licensed under either of
|
|
58
58
|
|
|
59
|
-
- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
|
|
60
|
-
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
|
|
59
|
+
- Apache 2.0, ([LICENSE-APACHE](https://github.com/ipfs/helia/blob/main/packages/interface/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
|
|
60
|
+
- MIT ([LICENSE-MIT](https://github.com/ipfs/helia/blob/main/packages/interface/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
|
|
61
61
|
|
|
62
62
|
# Contribute
|
|
63
63
|
|
package/dist/src/routing.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AbortOptions, PeerId, PeerInfo } from '@libp2p/interface';
|
|
1
|
+
import type { AbortOptions, PeerId, PeerInfo, TraceOptions } from '@libp2p/interface';
|
|
2
2
|
import type { CID } from 'multiformats/cid';
|
|
3
3
|
import type { ProgressOptions } from 'progress-events';
|
|
4
4
|
/**
|
|
@@ -7,7 +7,7 @@ import type { ProgressOptions } from 'progress-events';
|
|
|
7
7
|
* local cache that may be used in preference over network calls, for example
|
|
8
8
|
* when a record has a TTL.
|
|
9
9
|
*/
|
|
10
|
-
export interface RoutingOptions extends AbortOptions, ProgressOptions {
|
|
10
|
+
export interface RoutingOptions extends AbortOptions, ProgressOptions, TraceOptions {
|
|
11
11
|
/**
|
|
12
12
|
* Pass `false` to not use the network
|
|
13
13
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../src/routing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"routing.d.ts","sourceRoot":"","sources":["../../src/routing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AACrF,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAA;AAC3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEtD;;;;;GAKG;AACH,MAAM,WAAW,cAAe,SAAQ,YAAY,EAAE,eAAe,EAAE,YAAY;IACjF;;;;OAIG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IAEpB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,QAAS,SAAQ,QAAQ;IACxC;;;;;;;;;;;OAWG;IACH,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CACrB;AAED,MAAM,WAAW,OAAO;IACtB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAE1D;;;;;;;;;;OAUG;IACH,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAEhE;;;;;;;;;;;OAWG;IACH,aAAa,CAAC,GAAG,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAA;IAE1E;;;;;;;;;;;;;OAaG;IACH,GAAG,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAEhF;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,GAAG,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;IAEnE;;;;;;;;;OASG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;IAErE;;;;;;;;;;;;OAYG;IACH,eAAe,CAAC,GAAG,EAAE,UAAU,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,aAAa,CAAC,QAAQ,CAAC,CAAA;CACpF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helia/interface",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0-c7024de",
|
|
4
4
|
"description": "The Helia API",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/ipfs/helia/tree/main/packages/interface#readme",
|
|
@@ -71,16 +71,16 @@
|
|
|
71
71
|
"build": "aegir build"
|
|
72
72
|
},
|
|
73
73
|
"dependencies": {
|
|
74
|
-
"@libp2p/interface": "^2.
|
|
75
|
-
"@multiformats/dns": "^1.0.
|
|
76
|
-
"interface-blockstore": "^5.
|
|
77
|
-
"interface-datastore": "^8.
|
|
78
|
-
"interface-store": "^6.0.
|
|
79
|
-
"multiformats": "^13.1
|
|
80
|
-
"progress-events": "^1.0.
|
|
74
|
+
"@libp2p/interface": "^2.2.1",
|
|
75
|
+
"@multiformats/dns": "^1.0.6",
|
|
76
|
+
"interface-blockstore": "^5.3.1",
|
|
77
|
+
"interface-datastore": "^8.3.1",
|
|
78
|
+
"interface-store": "^6.0.2",
|
|
79
|
+
"multiformats": "^13.3.1",
|
|
80
|
+
"progress-events": "^1.0.1"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
|
-
"aegir": "^45.0.
|
|
83
|
+
"aegir": "^45.0.6"
|
|
84
84
|
},
|
|
85
85
|
"sideEffects": false
|
|
86
86
|
}
|
package/src/routing.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AbortOptions, PeerId, PeerInfo } from '@libp2p/interface'
|
|
1
|
+
import type { AbortOptions, PeerId, PeerInfo, TraceOptions } from '@libp2p/interface'
|
|
2
2
|
import type { CID } from 'multiformats/cid'
|
|
3
3
|
import type { ProgressOptions } from 'progress-events'
|
|
4
4
|
|
|
@@ -8,7 +8,7 @@ import type { ProgressOptions } from 'progress-events'
|
|
|
8
8
|
* local cache that may be used in preference over network calls, for example
|
|
9
9
|
* when a record has a TTL.
|
|
10
10
|
*/
|
|
11
|
-
export interface RoutingOptions extends AbortOptions, ProgressOptions {
|
|
11
|
+
export interface RoutingOptions extends AbortOptions, ProgressOptions, TraceOptions {
|
|
12
12
|
/**
|
|
13
13
|
* Pass `false` to not use the network
|
|
14
14
|
*
|
package/LICENSE
DELETED
package/dist/typedoc-urls.json
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"InsufficientProvidersError": "https://ipfs.github.io/helia/classes/helia.InsufficientProvidersError.html",
|
|
3
|
-
"NoRoutersAvailableError": "https://ipfs.github.io/helia/classes/helia.NoRoutersAvailableError.html",
|
|
4
|
-
"UnknownCodecError": "https://ipfs.github.io/helia/classes/helia.UnknownCodecError.html",
|
|
5
|
-
"UnknownHashAlgorithmError": "https://ipfs.github.io/helia/classes/helia.UnknownHashAlgorithmError.html",
|
|
6
|
-
"AddOptions": "https://ipfs.github.io/helia/interfaces/helia.AddOptions.html",
|
|
7
|
-
"./pins:AddOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface.pins.AddOptions.html",
|
|
8
|
-
"BlockAnnounceOptions": "https://ipfs.github.io/helia/interfaces/helia.BlockAnnounceOptions.html",
|
|
9
|
-
"./blocks:BlockAnnounceOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface.blocks.BlockAnnounceOptions.html",
|
|
10
|
-
"BlockBroker": "https://ipfs.github.io/helia/interfaces/helia.BlockBroker.html",
|
|
11
|
-
"./blocks:BlockBroker": "https://ipfs.github.io/helia/interfaces/_helia_interface.blocks.BlockBroker.html",
|
|
12
|
-
"BlockRetrievalOptions": "https://ipfs.github.io/helia/interfaces/helia.BlockRetrievalOptions.html",
|
|
13
|
-
"./blocks:BlockRetrievalOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface.blocks.BlockRetrievalOptions.html",
|
|
14
|
-
"Blocks": "https://ipfs.github.io/helia/interfaces/helia.Blocks.html",
|
|
15
|
-
"./blocks:Blocks": "https://ipfs.github.io/helia/interfaces/_helia_interface.blocks.Blocks.html",
|
|
16
|
-
"CodecLoader": "https://ipfs.github.io/helia/interfaces/helia.CodecLoader.html",
|
|
17
|
-
".:CodecLoader": "https://ipfs.github.io/helia/interfaces/_helia_interface.index.CodecLoader.html",
|
|
18
|
-
"CreateSessionOptions": "https://ipfs.github.io/helia/interfaces/helia.CreateSessionOptions.html",
|
|
19
|
-
"./blocks:CreateSessionOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface.blocks.CreateSessionOptions.html",
|
|
20
|
-
"GCOptions": "https://ipfs.github.io/helia/interfaces/helia.GCOptions.html",
|
|
21
|
-
".:GCOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface.index.GCOptions.html",
|
|
22
|
-
"GetOfflineOptions": "https://ipfs.github.io/helia/interfaces/helia.GetOfflineOptions.html",
|
|
23
|
-
"./blocks:GetOfflineOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface.blocks.GetOfflineOptions.html",
|
|
24
|
-
"HasherLoader": "https://ipfs.github.io/helia/interfaces/helia.HasherLoader.html",
|
|
25
|
-
".:HasherLoader": "https://ipfs.github.io/helia/interfaces/_helia_interface.index.HasherLoader.html",
|
|
26
|
-
"Helia": "https://ipfs.github.io/helia/interfaces/helia.Helia.html",
|
|
27
|
-
".:Helia": "https://ipfs.github.io/helia/interfaces/_helia_interface.index.Helia.html",
|
|
28
|
-
"IsPinnedOptions": "https://ipfs.github.io/helia/interfaces/helia.IsPinnedOptions.html",
|
|
29
|
-
"./pins:IsPinnedOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface.pins.IsPinnedOptions.html",
|
|
30
|
-
"LsOptions": "https://ipfs.github.io/helia/interfaces/helia.LsOptions.html",
|
|
31
|
-
"./pins:LsOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface.pins.LsOptions.html",
|
|
32
|
-
"Pair": "https://ipfs.github.io/helia/interfaces/helia.Pair.html",
|
|
33
|
-
"./blocks:Pair": "https://ipfs.github.io/helia/interfaces/_helia_interface.blocks.Pair.html",
|
|
34
|
-
"Pin": "https://ipfs.github.io/helia/interfaces/helia.Pin.html",
|
|
35
|
-
"./pins:Pin": "https://ipfs.github.io/helia/interfaces/_helia_interface.pins.Pin.html",
|
|
36
|
-
"Pins": "https://ipfs.github.io/helia/interfaces/helia.Pins.html",
|
|
37
|
-
"./pins:Pins": "https://ipfs.github.io/helia/interfaces/_helia_interface.pins.Pins.html",
|
|
38
|
-
"Provider": "https://ipfs.github.io/helia/interfaces/helia.Provider.html",
|
|
39
|
-
"RmOptions": "https://ipfs.github.io/helia/interfaces/helia.RmOptions.html",
|
|
40
|
-
"./pins:RmOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface.pins.RmOptions.html",
|
|
41
|
-
"Routing": "https://ipfs.github.io/helia/interfaces/helia.Routing.html",
|
|
42
|
-
"RoutingOptions": "https://ipfs.github.io/helia/interfaces/helia.RoutingOptions.html",
|
|
43
|
-
"SessionBlockstore": "https://ipfs.github.io/helia/interfaces/helia.SessionBlockstore.html",
|
|
44
|
-
"./blocks:SessionBlockstore": "https://ipfs.github.io/helia/interfaces/_helia_interface.blocks.SessionBlockstore.html",
|
|
45
|
-
"AddPinEvents": "https://ipfs.github.io/helia/types/helia.AddPinEvents.html",
|
|
46
|
-
"./pins:AddPinEvents": "https://ipfs.github.io/helia/types/_helia_interface.pins.AddPinEvents.html",
|
|
47
|
-
"DeleteBlockProgressEvents": "https://ipfs.github.io/helia/types/helia.DeleteBlockProgressEvents.html",
|
|
48
|
-
"./blocks:DeleteBlockProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface.blocks.DeleteBlockProgressEvents.html",
|
|
49
|
-
"DeleteManyBlocksProgressEvents": "https://ipfs.github.io/helia/types/helia.DeleteManyBlocksProgressEvents.html",
|
|
50
|
-
"./blocks:DeleteManyBlocksProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface.blocks.DeleteManyBlocksProgressEvents.html",
|
|
51
|
-
"GcEvents": "https://ipfs.github.io/helia/types/helia.GcEvents.html",
|
|
52
|
-
".:GcEvents": "https://ipfs.github.io/helia/types/_helia_interface.index.GcEvents.html",
|
|
53
|
-
"GetAllBlocksProgressEvents": "https://ipfs.github.io/helia/types/helia.GetAllBlocksProgressEvents.html",
|
|
54
|
-
"./blocks:GetAllBlocksProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface.blocks.GetAllBlocksProgressEvents.html",
|
|
55
|
-
"GetBlockProgressEvents": "https://ipfs.github.io/helia/types/helia.GetBlockProgressEvents.html",
|
|
56
|
-
"./blocks:GetBlockProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface.blocks.GetBlockProgressEvents.html",
|
|
57
|
-
"GetManyBlocksProgressEvents": "https://ipfs.github.io/helia/types/helia.GetManyBlocksProgressEvents.html",
|
|
58
|
-
"./blocks:GetManyBlocksProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface.blocks.GetManyBlocksProgressEvents.html",
|
|
59
|
-
"HasBlockProgressEvents": "https://ipfs.github.io/helia/types/helia.HasBlockProgressEvents.html",
|
|
60
|
-
"./blocks:HasBlockProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface.blocks.HasBlockProgressEvents.html",
|
|
61
|
-
"PinType": "https://ipfs.github.io/helia/types/helia.PinType.html",
|
|
62
|
-
"./pins:PinType": "https://ipfs.github.io/helia/types/_helia_interface.pins.PinType.html",
|
|
63
|
-
"PutBlockProgressEvents": "https://ipfs.github.io/helia/types/helia.PutBlockProgressEvents.html",
|
|
64
|
-
"./blocks:PutBlockProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface.blocks.PutBlockProgressEvents.html",
|
|
65
|
-
"PutManyBlocksProgressEvents": "https://ipfs.github.io/helia/types/helia.PutManyBlocksProgressEvents.html",
|
|
66
|
-
"./blocks:PutManyBlocksProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface.blocks.PutManyBlocksProgressEvents.html",
|
|
67
|
-
"DEFAULT_SESSION_MAX_PROVIDERS": "https://ipfs.github.io/helia/variables/helia.DEFAULT_SESSION_MAX_PROVIDERS.html",
|
|
68
|
-
"./blocks:DEFAULT_SESSION_MAX_PROVIDERS": "https://ipfs.github.io/helia/variables/_helia_interface.blocks.DEFAULT_SESSION_MAX_PROVIDERS.html",
|
|
69
|
-
"DEFAULT_SESSION_MIN_PROVIDERS": "https://ipfs.github.io/helia/variables/helia.DEFAULT_SESSION_MIN_PROVIDERS.html",
|
|
70
|
-
"./blocks:DEFAULT_SESSION_MIN_PROVIDERS": "https://ipfs.github.io/helia/variables/_helia_interface.blocks.DEFAULT_SESSION_MIN_PROVIDERS.html"
|
|
71
|
-
}
|