diff --git a/packages/ipfs-http-gateway/package.json b/packages/ipfs-http-gateway/package.json index 5bbf2fc9f6..c5891d0d75 100644 --- a/packages/ipfs-http-gateway/package.json +++ b/packages/ipfs-http-gateway/package.json @@ -47,7 +47,7 @@ "debug": "^4.1.1", "hapi-pino": "^8.3.0", "ipfs-core-types": "^0.7.1", - "ipfs-http-response": "^0.7.0", + "ipfs-http-response": "^1.0.1", "is-ipfs": "^6.0.1", "it-last": "^1.0.4", "it-to-stream": "^1.0.0", diff --git a/packages/ipfs-http-gateway/src/resources/gateway.js b/packages/ipfs-http-gateway/src/resources/gateway.js index 2c6460f06c..8508e06ed1 100644 --- a/packages/ipfs-http-gateway/src/resources/gateway.js +++ b/packages/ipfs-http-gateway/src/resources/gateway.js @@ -7,10 +7,7 @@ const Ammo = require('@hapi/ammo') // HTTP Range processing utilities const last = require('it-last') const { CID } = require('multiformats/cid') const { base32 } = require('multiformats/bases/base32') -// @ts-ignore no types -const { resolver } = require('ipfs-http-response') -// @ts-ignore no types -const detectContentType = require('ipfs-http-response/src/utils/content-type') +const { resolver, utils: { detectContentType } } = require('ipfs-http-response') const isIPFS = require('is-ipfs') // @ts-ignore no types const toStream = require('it-to-stream')