diff --git a/package.json b/package.json index dc94d3f58b..aaa2a26fde 100644 --- a/package.json +++ b/package.json @@ -98,7 +98,7 @@ "ipfs-bitswap": "^0.27.0", "ipfs-block": "~0.8.1", "ipfs-block-service": "~0.16.0", - "ipfs-http-client": "^42.0.0", + "ipfs-http-client": "github:ipfs/js-ipfs-http-client#feat/meta-for-get", "ipfs-http-response": "^0.5.0", "ipfs-mfs": "^1.0.0", "ipfs-multipart": "^0.3.0", @@ -184,7 +184,7 @@ "form-data": "^3.0.0", "go-ipfs-dep": "^0.4.23", "hat": "0.0.3", - "interface-ipfs-core": "^0.131.7", + "interface-ipfs-core": "github:ipfs/interface-js-ipfs-core#test/meta-for-get", "ipfs-interop": "github:ipfs/interop#refactor/async-await", "ipfsd-ctl": "github:ipfs/js-ipfsd-ctl#remove-option-normalisation", "ncp": "^2.0.0", diff --git a/src/http/api/resources/files-regular.js b/src/http/api/resources/files-regular.js index 5d4e728e5f..809ee18cff 100644 --- a/src/http/api/resources/files-regular.js +++ b/src/http/api/resources/files-regular.js @@ -95,7 +95,9 @@ exports.get = { async function * (source) { for await (const file of source) { const header = { - name: file.path + name: file.path, + mtime: file.mtime ? new Date(file.mtime.secs * 1000) : null, + mode: file.mode } if (file.content) {