Skip to content

Commit f188aba

Browse files
authored
fix: update examples to run with latest js-ipfs (#232)
Updates all examples to the latest deps
1 parent a4e3d59 commit f188aba

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

get-path-accross-formats.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async function main () {
1515
}
1616

1717
const pbNodeCid = await ipfs.dag.put(pbNode, {
18-
format: 'dag-pb',
18+
storeCodec: 'dag-pb',
1919
hashAlg: 'sha2-256'
2020
})
2121

@@ -26,7 +26,7 @@ async function main () {
2626
}
2727

2828
const cborNodeCid = await ipfs.dag.put(myData, {
29-
format: 'dag-cbor',
29+
storeCodec: 'dag-cbor',
3030
hashAlg: 'sha2-512'
3131
})
3232

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"dependencies": {
1616
"@ipld/dag-pb": "^2.1.3",
17-
"ipfs-core": "^0.12.2",
17+
"ipfs-core": "^0.14.0",
1818
"ipld-ethereum": "^6.0.0",
1919
"ipld-format-to-blockcodec": "0.0.1",
2020
"ipld-git": "^0.6.1",

tests/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ async function runTest () {
2020
await node.waitForOutput('302516', 'node', [path.resolve(__dirname, '../eth.js')])
2121

2222
console.info('Testing git.js')
23-
await node.waitForOutput("CID(baf4bcfhoohhpkaa3qsydcrby65wpblgthcrp2ii)", 'node', [path.resolve(__dirname, '../git.js')])
23+
await node.waitForOutput("CID(baf4bcfhgrzxw4mmfpb32ph6wwokwrgcdno22o3y)", 'node', [path.resolve(__dirname, '../git.js')])
2424

2525
console.info('Done!')
2626
}

0 commit comments

Comments
 (0)