@vercel/og 0.5.14 → 0.5.15

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.
@@ -1,5 +1,5 @@
1
1
  import type { ReactElement } from 'react';
2
2
  import type { ImageResponseOptions } from './types';
3
- export declare class ImageResponse {
3
+ export declare class ImageResponse extends Response {
4
4
  constructor(element: ReactElement, options?: ImageResponseOptions);
5
5
  }
@@ -18786,7 +18786,7 @@ async function render(satori, resvg, opts, defaultFonts, element) {
18786
18786
  var initializedResvg = initWasm(resvg_wasm);
18787
18787
  var initializedYoga = initYoga(yoga_wasm).then((yoga2) => Bl(yoga2));
18788
18788
  var fallbackFont = fetch(new URL("./noto-sans-v27-latin-regular.ttf", import.meta.url)).then((res) => res.arrayBuffer());
18789
- var ImageResponse = class {
18789
+ var ImageResponse = class extends Response {
18790
18790
  constructor(element, options = {}) {
18791
18791
  const result = new ReadableStream({
18792
18792
  async start(controller) {
@@ -18806,7 +18806,7 @@ var ImageResponse = class {
18806
18806
  controller.close();
18807
18807
  }
18808
18808
  });
18809
- return new Response(result, {
18809
+ super(result, {
18810
18810
  headers: {
18811
18811
  "content-type": "image/png",
18812
18812
  "cache-control": process.env.NODE_ENV === "development" ? "no-cache, no-store" : "public, immutable, no-transform, max-age=31536000",