@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.
- package/dist/index.edge.d.ts +1 -1
- package/dist/index.edge.js +2 -2
- package/dist/index.edge.js.map +1 -1
- package/dist/index.node.d.ts +1 -1
- package/dist/index.node.js +2 -2
- package/dist/index.node.js.map +1 -1
- package/package.json +1 -1
package/dist/index.node.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import type { ReactElement } from 'react';
|
|
3
3
|
import type { ImageResponseNodeOptions, ImageResponseOptions } from './types';
|
|
4
4
|
import { Readable } from 'stream';
|
|
5
|
-
export declare class ImageResponse {
|
|
5
|
+
export declare class ImageResponse extends Response {
|
|
6
6
|
constructor(element: ReactElement, options?: ImageResponseOptions);
|
|
7
7
|
}
|
|
8
8
|
/**
|
package/dist/index.node.js
CHANGED
|
@@ -18791,7 +18791,7 @@ var yoga_wasm = fs.readFileSync(fileURLToPath(join(import.meta.url, "../yoga.was
|
|
|
18791
18791
|
var resvg_wasm = fs.readFileSync(fileURLToPath(join(import.meta.url, "../resvg.wasm")));
|
|
18792
18792
|
var initializedResvg = initWasm(resvg_wasm);
|
|
18793
18793
|
var initializedYoga = initYoga(yoga_wasm).then((yoga2) => Bl(yoga2));
|
|
18794
|
-
var ImageResponse = class {
|
|
18794
|
+
var ImageResponse = class extends Response {
|
|
18795
18795
|
constructor(element, options = {}) {
|
|
18796
18796
|
if (typeof Response === "undefined" || typeof ReadableStream === "undefined") {
|
|
18797
18797
|
throw new Error("The `ImageResponse` API is not supported in this runtime, use the `unstable_createNodejsStream` API instead or switch to the Vercel Edge Runtime.");
|
|
@@ -18813,7 +18813,7 @@ var ImageResponse = class {
|
|
|
18813
18813
|
controller.close();
|
|
18814
18814
|
}
|
|
18815
18815
|
});
|
|
18816
|
-
|
|
18816
|
+
super(result, {
|
|
18817
18817
|
headers: {
|
|
18818
18818
|
"content-type": "image/png",
|
|
18819
18819
|
"cache-control": process.env.NODE_ENV === "development" ? "no-cache, no-store" : "public, immutable, no-transform, max-age=31536000",
|