diff --git a/examples/full-s3-repo/index.js b/examples/full-s3-repo/index.js index 2740d9b..e251c24 100644 --- a/examples/full-s3-repo/index.js +++ b/examples/full-s3-repo/index.js @@ -3,7 +3,6 @@ const IPFS = require('ipfs') const { createRepo } = require('datastore-s3') const toBuffer = require('it-to-buffer') -const last = require('it-last') ;(async () => { // Create the repo @@ -29,10 +28,10 @@ const last = require('it-last') console.log('Version:', version.version) // Once we have the version, let's add a file to IPFS - const { path, cid } = await last(node.add({ + const { path, cid } = await node.add({ path: 'data.txt', content: Buffer.from(require('crypto').randomBytes(1024 * 25)) - })) + }) console.log('\nAdded file:', path, cid) diff --git a/examples/full-s3-repo/package.json b/examples/full-s3-repo/package.json index 53d6104..7e9619e 100644 --- a/examples/full-s3-repo/package.json +++ b/examples/full-s3-repo/package.json @@ -12,9 +12,8 @@ "dependencies": { "aws-sdk": "^2.579.0", "datastore-s3": "../../", - "ipfs": "^0.46.0", - "ipfs-repo": "^3.0.2", - "it-last": "^1.0.2", + "ipfs": "^0.50.2", + "ipfs-repo": "^6.0.3", "it-to-buffer": "^1.0.2" } } diff --git a/package.json b/package.json index caaa3c5..4ef6cf8 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ }, "peerDependencies": { "aws-sdk": "2.x", - "ipfs-repo": "^3.0.2" + "ipfs-repo": "^6.0.3" }, "contributors": [ "Jacob Heun ",