Skip to content

Commit

Permalink
chore: add missing dep
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Apr 15, 2024
1 parent ed8b611 commit b26ebab
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
1 change: 1 addition & 0 deletions packages/verified-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
"it-pipe": "^3.0.1",
"it-tar": "^6.0.5",
"it-to-browser-readablestream": "^2.0.6",
"lru-cache": "^10.2.0",
"multiformats": "^13.1.0",
"progress-events": "^1.0.0",
"uint8arrays": "^5.0.3"
Expand Down
11 changes: 1 addition & 10 deletions packages/verified-fetch/src/verified-fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,6 @@ interface VerifiedFetchComponents {
ipns?: IPNS
}

/**
* Potential future options for the VerifiedFetch constructor.
*/
interface VerifiedFetchInit {
contentTypeParser?: ContentTypeParser
dnsResolvers?: DNSResolver[]
}

interface FetchHandlerFunctionArg {
cid: CID
path: string
Expand Down Expand Up @@ -149,7 +141,7 @@ export class VerifiedFetch {
private readonly contentTypeParser: ContentTypeParser | undefined
private readonly blockstoreSessions: LRUCache<string, SessionBlockstore>

constructor ({ helia, ipns }: VerifiedFetchComponents, init?: VerifiedFetchInit) {
constructor ({ helia, ipns }: VerifiedFetchComponents, init?: CreateVerifiedFetchOptions) {
this.helia = helia
this.log = helia.logger.forComponent('helia:verified-fetch')
this.ipns = ipns ?? heliaIpns(helia)
Expand Down Expand Up @@ -355,7 +347,6 @@ export class VerifiedFetch {
let redirected = false
const byteRangeContext = new ByteRangeContext(this.helia.logger, options?.headers)
const blockstore = this.getBlockstore(cid, cacheKey, session, options)
const fs = unixfs({ blockstore })

try {
const pathDetails = await walkPath(blockstore, `${cid.toString()}/${path}`, options)
Expand Down

0 comments on commit b26ebab

Please sign in to comment.