diff --git a/package.json b/package.json index d8a35f708..08138bed6 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "dependencies": { "any-signal": "^2.0.0", "bignumber.js": "^9.0.0", - "cids": "^1.0.0", + "cids": "^1.1.5", "debug": "^4.1.1", "form-data": "^3.0.0", "ipfs-core-utils": "^0.5.4", diff --git a/src/dag/put.js b/src/dag/put.js index c06e43f62..1f58b3227 100644 --- a/src/dag/put.js +++ b/src/dag/put.js @@ -28,7 +28,6 @@ module.exports = configure((api, opts) => { const cid = new CID(options.cid) encodingOptions = { ...options, - // @ts-expect-error - https://github.com/multiformats/js-cid/pull/138 format: multicodec.getName(cid.code), hashAlg: multihash.decode(cid.multihash).name } diff --git a/test/node/agent.js b/test/node/agent.js index 3a4e18cd9..6cc98cbe5 100644 --- a/test/node/agent.js +++ b/test/node/agent.js @@ -82,6 +82,11 @@ describe('agent', function () { break } + + if (i === 4) { + // should have first two responses by now + expect(responses).to.have.lengthOf(2) + } } // wait for the final request to arrive