@helia/interface 4.0.1 → 4.1.0-ecf5394
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/index.d.ts +6 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js.map +1 -1
- package/package.json +2 -1
- package/src/index.ts +7 -0
- package/dist/typedoc-urls.json +0 -59
package/dist/src/index.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ import type { Blocks } from './blocks.js';
|
|
|
17
17
|
import type { Pins } from './pins.js';
|
|
18
18
|
import type { Routing } from './routing.js';
|
|
19
19
|
import type { AbortOptions, ComponentLogger } from '@libp2p/interface';
|
|
20
|
+
import type { DNS } from '@multiformats/dns';
|
|
20
21
|
import type { Datastore } from 'interface-datastore';
|
|
21
22
|
import type { MultihashHasher } from 'multiformats';
|
|
22
23
|
import type { CID } from 'multiformats/cid';
|
|
@@ -57,6 +58,11 @@ export interface Helia {
|
|
|
57
58
|
* algorithm.
|
|
58
59
|
*/
|
|
59
60
|
hashers: Record<number, MultihashHasher>;
|
|
61
|
+
/**
|
|
62
|
+
* The DNS property can be used to perform lookups of various record types and
|
|
63
|
+
* will use a resolver appropriate to the current platform.
|
|
64
|
+
*/
|
|
65
|
+
dns: DNS;
|
|
60
66
|
/**
|
|
61
67
|
* Starts the Helia node
|
|
62
68
|
*/
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACzC,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AACrC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;A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G,EAAE,GAAG,CAAA;IAER;;OAEG;IACH,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IAEtB;;OAEG;IACH,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IAErB;;OAEG;IACH,EAAE,CAAC,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACvC;AAED,MAAM,MAAM,QAAQ,GAClB,aAAa,CAAC,kBAAkB,EAAE,GAAG,CAAC,GACtC,aAAa,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAA;AAExC,MAAM,WAAW,SAAU,SAAQ,YAAY,EAAE,eAAe,CAAC,QAAQ,CAAC;CAEzE;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,KAAK,EAAE,UAAU,GAAG,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE,SAAS,CAAC,CAAA;CACzD;AAED,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA8FH,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA;AACzB,cAAc,cAAc,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helia/interface",
|
|
3
|
-
"version": "4.0
|
|
3
|
+
"version": "4.1.0-ecf5394",
|
|
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,6 +71,7 @@
|
|
|
71
71
|
},
|
|
72
72
|
"dependencies": {
|
|
73
73
|
"@libp2p/interface": "^1.1.4",
|
|
74
|
+
"@multiformats/dns": "^1.0.1",
|
|
74
75
|
"interface-blockstore": "^5.2.10",
|
|
75
76
|
"interface-datastore": "^8.2.11",
|
|
76
77
|
"interface-store": "^5.1.8",
|
package/src/index.ts
CHANGED
|
@@ -18,6 +18,7 @@ import type { Blocks } from './blocks.js'
|
|
|
18
18
|
import type { Pins } from './pins.js'
|
|
19
19
|
import type { Routing } from './routing.js'
|
|
20
20
|
import type { AbortOptions, ComponentLogger } from '@libp2p/interface'
|
|
21
|
+
import type { DNS } from '@multiformats/dns'
|
|
21
22
|
import type { Datastore } from 'interface-datastore'
|
|
22
23
|
import type { MultihashHasher } from 'multiformats'
|
|
23
24
|
import type { CID } from 'multiformats/cid'
|
|
@@ -67,6 +68,12 @@ export interface Helia {
|
|
|
67
68
|
*/
|
|
68
69
|
hashers: Record<number, MultihashHasher>
|
|
69
70
|
|
|
71
|
+
/**
|
|
72
|
+
* The DNS property can be used to perform lookups of various record types and
|
|
73
|
+
* will use a resolver appropriate to the current platform.
|
|
74
|
+
*/
|
|
75
|
+
dns: DNS
|
|
76
|
+
|
|
70
77
|
/**
|
|
71
78
|
* Starts the Helia node
|
|
72
79
|
*/
|
package/dist/typedoc-urls.json
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"AddOptions": "https://ipfs.github.io/helia/interfaces/helia.AddOptions.html",
|
|
3
|
-
"./pins:AddOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface.pins.AddOptions.html",
|
|
4
|
-
"BlockAnnouncer": "https://ipfs.github.io/helia/interfaces/helia.BlockAnnouncer.html",
|
|
5
|
-
"./blocks:BlockAnnouncer": "https://ipfs.github.io/helia/interfaces/_helia_interface.blocks.BlockAnnouncer.html",
|
|
6
|
-
"BlockRetriever": "https://ipfs.github.io/helia/interfaces/helia.BlockRetriever.html",
|
|
7
|
-
"./blocks:BlockRetriever": "https://ipfs.github.io/helia/interfaces/_helia_interface.blocks.BlockRetriever.html",
|
|
8
|
-
"Blocks": "https://ipfs.github.io/helia/interfaces/helia.Blocks.html",
|
|
9
|
-
"./blocks:Blocks": "https://ipfs.github.io/helia/interfaces/_helia_interface.blocks.Blocks.html",
|
|
10
|
-
"GCOptions": "https://ipfs.github.io/helia/interfaces/helia.GCOptions.html",
|
|
11
|
-
".:GCOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface.index.GCOptions.html",
|
|
12
|
-
"GetOfflineOptions": "https://ipfs.github.io/helia/interfaces/helia.GetOfflineOptions.html",
|
|
13
|
-
"./blocks:GetOfflineOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface.blocks.GetOfflineOptions.html",
|
|
14
|
-
"Helia": "https://ipfs.github.io/helia/interfaces/helia.Helia.html",
|
|
15
|
-
".:Helia": "https://ipfs.github.io/helia/interfaces/_helia_interface.index.Helia.html",
|
|
16
|
-
"IsPinnedOptions": "https://ipfs.github.io/helia/interfaces/helia.IsPinnedOptions.html",
|
|
17
|
-
"./pins:IsPinnedOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface.pins.IsPinnedOptions.html",
|
|
18
|
-
"LsOptions": "https://ipfs.github.io/helia/interfaces/helia.LsOptions.html",
|
|
19
|
-
"./pins:LsOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface.pins.LsOptions.html",
|
|
20
|
-
"Pair": "https://ipfs.github.io/helia/interfaces/helia.Pair.html",
|
|
21
|
-
"./blocks:Pair": "https://ipfs.github.io/helia/interfaces/_helia_interface.blocks.Pair.html",
|
|
22
|
-
"Pin": "https://ipfs.github.io/helia/interfaces/helia.Pin.html",
|
|
23
|
-
"./pins:Pin": "https://ipfs.github.io/helia/interfaces/_helia_interface.pins.Pin.html",
|
|
24
|
-
"Pins": "https://ipfs.github.io/helia/interfaces/helia.Pins.html",
|
|
25
|
-
"./pins:Pins": "https://ipfs.github.io/helia/interfaces/_helia_interface.pins.Pins.html",
|
|
26
|
-
"Provider": "https://ipfs.github.io/helia/interfaces/helia.Provider.html",
|
|
27
|
-
"RmOptions": "https://ipfs.github.io/helia/interfaces/helia.RmOptions.html",
|
|
28
|
-
"./pins:RmOptions": "https://ipfs.github.io/helia/interfaces/_helia_interface.pins.RmOptions.html",
|
|
29
|
-
"Routing": "https://ipfs.github.io/helia/interfaces/helia.Routing.html",
|
|
30
|
-
"RoutingOptions": "https://ipfs.github.io/helia/interfaces/helia.RoutingOptions.html",
|
|
31
|
-
"AddPinEvents": "https://ipfs.github.io/helia/types/helia.AddPinEvents.html",
|
|
32
|
-
"./pins:AddPinEvents": "https://ipfs.github.io/helia/types/_helia_interface.pins.AddPinEvents.html",
|
|
33
|
-
"BlockBroker": "https://ipfs.github.io/helia/types/helia.BlockBroker.html",
|
|
34
|
-
"./blocks:BlockBroker": "https://ipfs.github.io/helia/types/_helia_interface.blocks.BlockBroker.html",
|
|
35
|
-
"BlockRetrievalOptions": "https://ipfs.github.io/helia/types/helia.BlockRetrievalOptions.html",
|
|
36
|
-
"./blocks:BlockRetrievalOptions": "https://ipfs.github.io/helia/types/_helia_interface.blocks.BlockRetrievalOptions.html",
|
|
37
|
-
"DeleteBlockProgressEvents": "https://ipfs.github.io/helia/types/helia.DeleteBlockProgressEvents.html",
|
|
38
|
-
"./blocks:DeleteBlockProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface.blocks.DeleteBlockProgressEvents.html",
|
|
39
|
-
"DeleteManyBlocksProgressEvents": "https://ipfs.github.io/helia/types/helia.DeleteManyBlocksProgressEvents.html",
|
|
40
|
-
"./blocks:DeleteManyBlocksProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface.blocks.DeleteManyBlocksProgressEvents.html",
|
|
41
|
-
"GcEvents": "https://ipfs.github.io/helia/types/helia.GcEvents.html",
|
|
42
|
-
".:GcEvents": "https://ipfs.github.io/helia/types/_helia_interface.index.GcEvents.html",
|
|
43
|
-
"GetAllBlocksProgressEvents": "https://ipfs.github.io/helia/types/helia.GetAllBlocksProgressEvents.html",
|
|
44
|
-
"./blocks:GetAllBlocksProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface.blocks.GetAllBlocksProgressEvents.html",
|
|
45
|
-
"GetBlockProgressEvents": "https://ipfs.github.io/helia/types/helia.GetBlockProgressEvents.html",
|
|
46
|
-
"./blocks:GetBlockProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface.blocks.GetBlockProgressEvents.html",
|
|
47
|
-
"GetManyBlocksProgressEvents": "https://ipfs.github.io/helia/types/helia.GetManyBlocksProgressEvents.html",
|
|
48
|
-
"./blocks:GetManyBlocksProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface.blocks.GetManyBlocksProgressEvents.html",
|
|
49
|
-
"HasBlockProgressEvents": "https://ipfs.github.io/helia/types/helia.HasBlockProgressEvents.html",
|
|
50
|
-
"./blocks:HasBlockProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface.blocks.HasBlockProgressEvents.html",
|
|
51
|
-
"PinType": "https://ipfs.github.io/helia/types/helia.PinType.html",
|
|
52
|
-
"./pins:PinType": "https://ipfs.github.io/helia/types/_helia_interface.pins.PinType.html",
|
|
53
|
-
"PutBlockProgressEvents": "https://ipfs.github.io/helia/types/helia.PutBlockProgressEvents.html",
|
|
54
|
-
"./blocks:PutBlockProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface.blocks.PutBlockProgressEvents.html",
|
|
55
|
-
"PutManyBlocksProgressEvents": "https://ipfs.github.io/helia/types/helia.PutManyBlocksProgressEvents.html",
|
|
56
|
-
"./blocks:PutManyBlocksProgressEvents": "https://ipfs.github.io/helia/types/_helia_interface.blocks.PutManyBlocksProgressEvents.html",
|
|
57
|
-
"DAGWalker": "https://ipfs.github.io/helia/interfaces/_helia_http.DAGWalker.html",
|
|
58
|
-
".:DAGWalker": "https://ipfs.github.io/helia/interfaces/_helia_interface.index.DAGWalker.html"
|
|
59
|
-
}
|