@helia/dag-cbor 5.0.7-eaeb734d → 5.1.0
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 +1 -1
- package/dist/index.min.js.map +4 -4
- package/dist/src/dag-cbor.d.ts +1 -1
- package/dist/src/index.js +1 -1
- package/dist/typedoc-urls.json +12 -0
- package/package.json +3 -3
- package/src/dag-cbor.ts +1 -1
- package/src/index.ts +1 -1
package/dist/src/dag-cbor.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CID } from 'multiformats/cid';
|
|
2
|
-
import type { AddOptions, DAGCBORComponents, DAGCBOR as DAGCBORInterface, GetOptions } from './index.
|
|
2
|
+
import type { AddOptions, DAGCBORComponents, DAGCBOR as DAGCBORInterface, GetOptions } from './index.ts';
|
|
3
3
|
export declare class DAGCBOR implements DAGCBORInterface {
|
|
4
4
|
private readonly components;
|
|
5
5
|
constructor(components: DAGCBORComponents);
|
package/dist/src/index.js
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
* ```
|
|
26
26
|
*/
|
|
27
27
|
import { CID } from 'multiformats/cid';
|
|
28
|
-
import { DAGCBOR as DAGCBORClass } from
|
|
28
|
+
import { DAGCBOR as DAGCBORClass } from "./dag-cbor.js";
|
|
29
29
|
/**
|
|
30
30
|
* Create a {@link DAGCBOR} instance for use with {@link https://github.com/ipfs/helia Helia}
|
|
31
31
|
*/
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"AddOptions": "https://ipfs.github.io/helia/interfaces/_helia_dag-cbor.AddOptions.html",
|
|
3
|
+
".:AddOptions": "https://ipfs.github.io/helia/interfaces/_helia_dag-cbor.AddOptions.html",
|
|
4
|
+
"DAGCBOR": "https://ipfs.github.io/helia/interfaces/_helia_dag-cbor.DAGCBOR.html",
|
|
5
|
+
".:DAGCBOR": "https://ipfs.github.io/helia/interfaces/_helia_dag-cbor.DAGCBOR.html",
|
|
6
|
+
"DAGCBORComponents": "https://ipfs.github.io/helia/interfaces/_helia_dag-cbor.DAGCBORComponents.html",
|
|
7
|
+
".:DAGCBORComponents": "https://ipfs.github.io/helia/interfaces/_helia_dag-cbor.DAGCBORComponents.html",
|
|
8
|
+
"GetOptions": "https://ipfs.github.io/helia/interfaces/_helia_dag-cbor.GetOptions.html",
|
|
9
|
+
".:GetOptions": "https://ipfs.github.io/helia/interfaces/_helia_dag-cbor.GetOptions.html",
|
|
10
|
+
"dagCbor": "https://ipfs.github.io/helia/functions/_helia_dag-cbor.dagCbor.html",
|
|
11
|
+
".:dagCbor": "https://ipfs.github.io/helia/functions/_helia_dag-cbor.dagCbor.html"
|
|
12
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@helia/dag-cbor",
|
|
3
|
-
"version": "5.0
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "Add/get IPLD blocks containing dag-cbor with your Helia node",
|
|
5
5
|
"license": "Apache-2.0 OR MIT",
|
|
6
6
|
"homepage": "https://github.com/ipfs/helia/tree/main/packages/dag-cbor#readme",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"test:electron-main": "aegir test -t electron-main"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@helia/interface": "6.
|
|
51
|
+
"@helia/interface": "^6.2.0",
|
|
52
52
|
"@ipld/dag-cbor": "^9.2.5",
|
|
53
|
-
"@libp2p/interface": "^3.
|
|
53
|
+
"@libp2p/interface": "^3.2.0",
|
|
54
54
|
"interface-blockstore": "^6.0.1",
|
|
55
55
|
"it-to-buffer": "^4.0.10",
|
|
56
56
|
"multiformats": "^13.4.1",
|
package/src/dag-cbor.ts
CHANGED
|
@@ -3,7 +3,7 @@ import * as codec from '@ipld/dag-cbor'
|
|
|
3
3
|
import toBuffer from 'it-to-buffer'
|
|
4
4
|
import { CID } from 'multiformats/cid'
|
|
5
5
|
import { sha256 } from 'multiformats/hashes/sha2'
|
|
6
|
-
import type { AddOptions, DAGCBORComponents, DAGCBOR as DAGCBORInterface, GetOptions } from './index.
|
|
6
|
+
import type { AddOptions, DAGCBORComponents, DAGCBOR as DAGCBORInterface, GetOptions } from './index.ts'
|
|
7
7
|
|
|
8
8
|
export class DAGCBOR implements DAGCBORInterface {
|
|
9
9
|
private readonly components: DAGCBORComponents
|
package/src/index.ts
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
28
|
import { CID } from 'multiformats/cid'
|
|
29
|
-
import { DAGCBOR as DAGCBORClass } from './dag-cbor.
|
|
29
|
+
import { DAGCBOR as DAGCBORClass } from './dag-cbor.ts'
|
|
30
30
|
import type { GetBlockProgressEvents, ProviderOptions, PutBlockProgressEvents } from '@helia/interface/blocks'
|
|
31
31
|
import type { AbortOptions } from '@libp2p/interface'
|
|
32
32
|
import type { Blockstore } from 'interface-blockstore'
|