@helia/verified-fetch 7.2.15 → 7.2.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -198,15 +198,17 @@ export class VerifiedFetch {
198
198
  return notAcceptableResponse(resource, requestedMimeTypes, [])
199
199
  }
200
200
 
201
- return this.handleFinalResponse(await ipnsRecordPlugin.handle({
201
+ const context = {
202
202
  ...options,
203
203
  range,
204
204
  url,
205
205
  resource,
206
- redirected: false
207
- }), withServerTiming, {
206
+ redirected: false,
208
207
  serverTiming
209
- })
208
+ }
209
+
210
+ // @ts-expect-error headers type is wrong
211
+ return this.handleFinalResponse(await ipnsRecordPlugin.handle(context), withServerTiming, context)
210
212
  }
211
213
 
212
214
  const resolveResult = await this.urlResolver.resolve(url, serverTiming, options)
@@ -421,6 +423,7 @@ export class VerifiedFetch {
421
423
  setCacheControlHeader({
422
424
  response,
423
425
  ttl: context.ttl,
426
+ expires: context.expires,
424
427
  protocol: context.url.protocol
425
428
  })
426
429
  }