File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ which can greatly reduce dependencies and bundle size.
14
14
15
15
``` js
16
16
import { create } from ' multiformats'
17
- import sha2 from ' multiformats/hashes/sha2.js '
17
+ import sha2 from ' multiformats/hashes/sha2'
18
18
import dagcbor from ' @ipld/dag-cbor'
19
19
const { multihash , multicodec , CID } = create ()
20
20
multihash .add (sha2)
@@ -31,7 +31,7 @@ with the `Block` API.
31
31
32
32
``` js
33
33
// Import basics package with dep-free codecs, hashes, and base encodings
34
- import multiformats from ' multiformats/basics.js '
34
+ import multiformats from ' multiformats/basics'
35
35
import dagcbor from ' @ipld/dag-cbor'
36
36
import { create } from ' @ipld/block' // Yet to be released Block interface
37
37
multiformats .multicodec .add (dagcbor)
You can’t perform that action at this time.
0 commit comments