helia 7.1.7 → 7.1.8
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/index.min.js +2 -2
- package/dist/index.min.js.map +2 -2
- package/dist/src/index.d.ts +2 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/version.d.ts +1 -1
- package/dist/src/version.js +1 -1
- package/package.json +3 -3
- package/src/index.ts +2 -2
- package/src/version.ts +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ import type { HeliaInit } from './helia.ts';
|
|
|
22
22
|
import type { BitswapOptions } from '@helia/bitswap';
|
|
23
23
|
import type { HTTPOptions } from '@helia/http';
|
|
24
24
|
import type { Helia } from '@helia/interface';
|
|
25
|
-
import type { CreateLibp2pOptions } from '@helia/libp2p';
|
|
25
|
+
import type { CreateLibp2pOptions, DefaultLibp2pServices, HeliaWithLibp2p } from '@helia/libp2p';
|
|
26
26
|
import type { ServiceMap } from '@libp2p/interface';
|
|
27
27
|
export * from '@helia/interface';
|
|
28
28
|
export type { HeliaInit };
|
|
@@ -54,7 +54,7 @@ export declare function createHelia<M extends ServiceMap>(init?: HeliaInit & {
|
|
|
54
54
|
libp2p?: CreateLibp2pOptions<M>;
|
|
55
55
|
http?: HTTPOptions;
|
|
56
56
|
bitswap?: BitswapOptions;
|
|
57
|
-
}):
|
|
57
|
+
}): HeliaWithLibp2p<DefaultLibp2pServices & M>;
|
|
58
58
|
/**
|
|
59
59
|
* Create and return a Helia node without and routing or block broker config.
|
|
60
60
|
*
|
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;;;;;;;;;;;;;;;;;;;GAmBG;AAWH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAWH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAA;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAC9C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAChG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAInD,cAAc,kBAAkB,CAAA;AAEhC,YAAY,EAAE,SAAS,EAAE,CAAA;AAEzB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,WAAW,CAAE,CAAC,SAAS,UAAU,EAAG,IAAI,GAAE,SAAS,GAAG;IAAE,MAAM,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,CAAC;IAAC,IAAI,CAAC,EAAE,WAAW,CAAC;IAAC,OAAO,CAAC,EAAE,cAAc,CAAA;CAAO,GAAG,eAAe,CAAC,qBAAqB,GAAG,CAAC,CAAC,CAcxM;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,gBAAgB,CAAE,IAAI,GAAE,SAAc,GAAG,KAAK,CAQ7D"}
|
package/dist/src/version.d.ts
CHANGED
package/dist/src/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "helia",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.8",
|
|
4
4
|
"description": "An implementation of IPFS in JavaScript",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/ipfs/helia/tree/main/packages/helia#readme",
|
|
@@ -49,10 +49,10 @@
|
|
|
49
49
|
"prepublishOnly": "node scripts/update-version.js && npm run build"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@helia/bitswap": "^4.0.
|
|
52
|
+
"@helia/bitswap": "^4.0.12",
|
|
53
53
|
"@helia/http": "^4.0.6",
|
|
54
54
|
"@helia/interface": "^7.1.1",
|
|
55
|
-
"@helia/libp2p": "^2.1.
|
|
55
|
+
"@helia/libp2p": "^2.1.1",
|
|
56
56
|
"@helia/utils": "^3.0.5",
|
|
57
57
|
"@ipld/dag-cbor": "^10.0.1",
|
|
58
58
|
"@ipld/dag-json": "^11.0.0",
|
package/src/index.ts
CHANGED
|
@@ -32,7 +32,7 @@ import type { HeliaInit } from './helia.ts'
|
|
|
32
32
|
import type { BitswapOptions } from '@helia/bitswap'
|
|
33
33
|
import type { HTTPOptions } from '@helia/http'
|
|
34
34
|
import type { Helia } from '@helia/interface'
|
|
35
|
-
import type { CreateLibp2pOptions } from '@helia/libp2p'
|
|
35
|
+
import type { CreateLibp2pOptions, DefaultLibp2pServices, HeliaWithLibp2p } from '@helia/libp2p'
|
|
36
36
|
import type { ServiceMap } from '@libp2p/interface'
|
|
37
37
|
|
|
38
38
|
// re-export interface types so people don't have to depend on @helia/interface
|
|
@@ -65,7 +65,7 @@ export type { HeliaInit }
|
|
|
65
65
|
* }
|
|
66
66
|
* ```
|
|
67
67
|
*/
|
|
68
|
-
export function createHelia <M extends ServiceMap> (init: HeliaInit & { libp2p?: CreateLibp2pOptions<M>, http?: HTTPOptions, bitswap?: BitswapOptions } = {}):
|
|
68
|
+
export function createHelia <M extends ServiceMap> (init: HeliaInit & { libp2p?: CreateLibp2pOptions<M>, http?: HTTPOptions, bitswap?: BitswapOptions } = {}): HeliaWithLibp2p<DefaultLibp2pServices & M> {
|
|
69
69
|
return withBitswap(withLibp2p(withHTTP(createHeliaLight({
|
|
70
70
|
...init,
|
|
71
71
|
codecs: [
|
package/src/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const version = '7.1.
|
|
1
|
+
export const version = '7.1.8'
|
|
2
2
|
export const name = 'helia'
|