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

test: tests and fixes for CID version agnostic read and write #1757

Merged
merged 2 commits into from
Dec 15, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@
"ipfs-multipart": "~0.1.0",
"ipfs-repo": "~0.26.0",
"ipfs-unixfs": "~0.1.16",
"ipfs-unixfs-engine": "~0.35.2",
"ipfs-unixfs-engine": "~0.35.3",
"ipld": "~0.20.1",
"ipld-bitcoin": "~0.1.8",
"ipld-dag-pb": "~0.15.0",
Expand Down
4 changes: 2 additions & 2 deletions src/http/api/resources/files-regular.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const mh = require('multihashes')
const CID = require('cids')
const multipart = require('ipfs-multipart')
const debug = require('debug')
const tar = require('tar-stream')
Expand Down Expand Up @@ -51,7 +51,7 @@ exports.parseKey = (request, reply) => {
}

try {
mh.fromB58String(key)
new CID(key) // eslint-disable-line no-new
} catch (err) {
log.error(err)
return reply({
Expand Down