@vercel/og 0.6.8 → 0.7.1
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/emoji/index.d.ts +1 -1
- package/dist/figma/index.d.ts +1 -1
- package/dist/index.edge.d.ts +1 -1
- package/dist/index.edge.js +4008 -2844
- package/dist/index.edge.js.map +1 -1
- package/dist/index.node.d.ts +1 -1
- package/dist/index.node.js +4018 -2848
- package/dist/index.node.js.map +1 -1
- package/dist/types.d.ts +6 -5
- package/package.json +3 -3
package/dist/types.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
/// <reference types="react" />
|
|
3
3
|
/// <reference types="node" />
|
|
4
|
+
/// <reference types="node" />
|
|
4
5
|
import type { SatoriOptions } from 'satori';
|
|
5
6
|
import type { EmojiType } from './emoji';
|
|
6
7
|
import type { OutgoingHttpHeader } from 'http';
|
|
7
|
-
|
|
8
|
+
type ImageOptions = {
|
|
8
9
|
/**
|
|
9
10
|
* The width of the image.
|
|
10
11
|
*
|
|
@@ -41,12 +42,12 @@ declare type ImageOptions = {
|
|
|
41
42
|
*/
|
|
42
43
|
emoji?: EmojiType;
|
|
43
44
|
};
|
|
44
|
-
export
|
|
45
|
+
export type ImageResponseNodeOptions = ImageOptions & {
|
|
45
46
|
status?: number;
|
|
46
47
|
statusText?: string;
|
|
47
48
|
headers?: OutgoingHttpHeader[];
|
|
48
49
|
};
|
|
49
|
-
export
|
|
50
|
+
export type ImageResponseOptions = ImageOptions & ConstructorParameters<typeof Response>[1];
|
|
50
51
|
export interface FigmaImageResponseProps {
|
|
51
52
|
/**
|
|
52
53
|
* Link to the Figma template frame.
|
|
@@ -89,8 +90,8 @@ export interface FigmaComplexTemplate {
|
|
|
89
90
|
centerHorizontally?: boolean;
|
|
90
91
|
} & React.CSSProperties;
|
|
91
92
|
}
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
type Weight = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
|
|
94
|
+
type Style = 'normal' | 'italic';
|
|
94
95
|
interface FontOptions {
|
|
95
96
|
data: Buffer | ArrayBuffer;
|
|
96
97
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vercel/og",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "Generate Open Graph Images dynamically from HTML/CSS without a browser",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.node.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"license": "MPL-2.0",
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@resvg/resvg-wasm": "2.4.0",
|
|
62
|
-
"satori": "0.
|
|
62
|
+
"satori": "0.15.2",
|
|
63
63
|
"yoga-wasm-web": "0.3.3"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"tsup": "^6.1.3",
|
|
69
69
|
"typescript": "^4.7.4"
|
|
70
70
|
},
|
|
71
|
-
"packageManager": "pnpm@
|
|
71
|
+
"packageManager": "pnpm@10.12.4",
|
|
72
72
|
"engines": {
|
|
73
73
|
"node": ">=16"
|
|
74
74
|
}
|