Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 5bfc313

Browse files
committed
chore: bump js-ipfs-api and fix http ping validation
1 parent bb49cad commit 5bfc313

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
"hapi-set-header": "^1.0.2",
108108
"hoek": "^5.0.3",
109109
"human-to-milliseconds": "^1.0.0",
110-
"ipfs-api": "^18.2.1",
110+
"ipfs-api": "^19.0.0",
111111
"ipfs-bitswap": "~0.19.0",
112112
"ipfs-block": "~0.6.1",
113113
"ipfs-block-service": "~0.13.0",

src/cli/commands/ping.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ module.exports = {
2222
handler (argv) {
2323
const peerId = argv.peerId
2424
const count = argv.count || 10
25-
2625
pull(
2726
argv.ipfs.pingPullStream(peerId, { count }),
2827
pullCatch(err => {

src/http/api/resources/ping.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ exports.get = {
1919
}),
2020
count: Joi.number().greater(0),
2121
arg: Joi.string()
22-
})
22+
}).unknown()
2323
},
2424
handler: (request, reply) => {
2525
const ipfs = request.server.app.ipfs

0 commit comments

Comments
 (0)