Unverified Commit 1be02e36 authored by Jiachi Liu's avatar Jiachi Liu Committed by GitHub

Update @vercel/og to latest (#54849)

Upgrade `@vercel/og` to `0.5.12` and satori to the corresponding version
parent f0fa7c54
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
"@typescript-eslint/eslint-plugin": "6.1.0", "@typescript-eslint/eslint-plugin": "6.1.0",
"@typescript-eslint/parser": "6.1.0", "@typescript-eslint/parser": "6.1.0",
"@vercel/fetch": "6.1.1", "@vercel/fetch": "6.1.1",
"@vercel/og": "0.5.9", "@vercel/og": "0.5.12",
"@zeit/next-typescript": "1.1.2-canary.0", "@zeit/next-typescript": "1.1.2-canary.0",
"abort-controller": "3.0.0", "abort-controller": "3.0.0",
"alex": "9.1.0", "alex": "9.1.0",
...@@ -208,7 +208,7 @@ ...@@ -208,7 +208,7 @@
"request-promise-core": "1.1.2", "request-promise-core": "1.1.2",
"resolve-from": "5.0.0", "resolve-from": "5.0.0",
"sass": "1.54.0", "sass": "1.54.0",
"satori": "0.10.1", "satori": "0.10.3",
"scheduler-builtin": "npm:scheduler@0.24.0-canary-dd480ef92-20230822", "scheduler-builtin": "npm:scheduler@0.24.0-canary-dd480ef92-20230822",
"scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-dd480ef92-20230822", "scheduler-experimental-builtin": "npm:scheduler@0.0.0-experimental-dd480ef92-20230822",
"seedrandom": "3.0.5", "seedrandom": "3.0.5",
......
export declare class FontDetector {
private rangesByLang;
detect(text: string, fonts: string[]): Promise<{
[lang: string]: string;
}>;
private detectSegment;
private load;
private addDetectors;
}
export declare const languageFontMap: {
'ja-JP': string;
'ko-KR': string;
'zh-CN': string;
'zh-TW': string;
'zh-HK': string;
'th-TH': string;
'bn-IN': string;
'ar-AR': string;
'ta-IN': string;
'ml-IN': string;
'he-IL': string;
'te-IN': string;
devanagari: string;
kannada: string;
symbol: string[];
math: string;
unknown: string;
};
...@@ -17,14 +17,14 @@ declare const code: { ...@@ -17,14 +17,14 @@ declare const code: {
readonly devanagari: RegExp; readonly devanagari: RegExp;
readonly kannada: RegExp; readonly kannada: RegExp;
}; };
declare type Locale = keyof typeof code; type Locale = keyof typeof code;
/** /**
* This class handles everything related to fonts. * This class handles everything related to fonts.
*/ */
declare type Weight = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; type Weight = 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900;
declare type Style$1 = 'normal' | 'italic'; type Style$1 = 'normal' | 'italic';
interface FontOptions { interface FontOptions {
data: Buffer | ArrayBuffer; data: Buffer | ArrayBuffer;
name: string; name: string;
...@@ -151,7 +151,7 @@ interface SatoriNode { ...@@ -151,7 +151,7 @@ interface SatoriNode {
declare function init(yoga: Yoga): void; declare function init(yoga: Yoga): void;
declare type SatoriOptions = ({ type SatoriOptions = ({
width: number; width: number;
height: number; height: number;
} | { } | {
......
...@@ -171,8 +171,8 @@ importers: ...@@ -171,8 +171,8 @@ importers:
specifier: 6.1.1 specifier: 6.1.1
version: 6.1.1(@types/node-fetch@2.6.1)(node-fetch@2.6.7) version: 6.1.1(@types/node-fetch@2.6.1)(node-fetch@2.6.7)
'@vercel/og': '@vercel/og':
specifier: 0.5.9 specifier: 0.5.12
version: 0.5.9 version: 0.5.12
'@zeit/next-typescript': '@zeit/next-typescript':
specifier: 1.1.2-canary.0 specifier: 1.1.2-canary.0
version: 1.1.2-canary.0(@babel/core@7.18.0) version: 1.1.2-canary.0(@babel/core@7.18.0)
...@@ -471,8 +471,8 @@ importers: ...@@ -471,8 +471,8 @@ importers:
specifier: 1.54.0 specifier: 1.54.0
version: 1.54.0 version: 1.54.0
satori: satori:
specifier: 0.10.1 specifier: 0.10.3
version: 0.10.1 version: 0.10.3
scheduler-builtin: scheduler-builtin:
specifier: npm:scheduler@0.24.0-canary-dd480ef92-20230822 specifier: npm:scheduler@0.24.0-canary-dd480ef92-20230822
version: /scheduler@0.24.0-canary-dd480ef92-20230822 version: /scheduler@0.24.0-canary-dd480ef92-20230822
...@@ -8873,12 +8873,12 @@ packages: ...@@ -8873,12 +8873,12 @@ packages:
- supports-color - supports-color
dev: true dev: true
/@vercel/og@0.5.9: /@vercel/og@0.5.12:
resolution: {integrity: sha512-CtjaV/BVHtNCjRtxGqn8Q6AKFLqcG34Byxr91+mY+4eqyp/09LVe9jEeY9WXjbaKvu8syWPMteTpY+YQUQYzSg==} resolution: {integrity: sha512-NDtxHeX1ka0uSh6tSuIuOh2rz6+++BC7RSoqQd/NmKHK9kJ9mdhgRiMv8uBSgcdgBucRfyKHUzora+qaXhyB5Q==}
engines: {node: '>=16'} engines: {node: '>=16'}
dependencies: dependencies:
'@resvg/resvg-wasm': 2.4.1 '@resvg/resvg-wasm': 2.4.1
satori: 0.10.1 satori: 0.10.3
yoga-wasm-web: 0.3.3 yoga-wasm-web: 0.3.3
dev: true dev: true
...@@ -23923,8 +23923,8 @@ packages: ...@@ -23923,8 +23923,8 @@ packages:
immutable: 4.1.0 immutable: 4.1.0
source-map-js: 1.0.2 source-map-js: 1.0.2
/satori@0.10.1: /satori@0.10.3:
resolution: {integrity: sha512-F4bTCkDp931tLb7+UCNPBuSQwXhikrUkI4fBQo6fA8lF0Evqqgg3nDyUpRktQpR5Ry1DIiIVqLyEwkAms87ykg==} resolution: {integrity: sha512-8tZPu7AGiRWimbOyja1s2HK0hEC4DacZ8cAKDITxlVI5tKQZbOuMiVgSB50CABwc0I4Imgtkq7o9Egj1WOJTKg==}
engines: {node: '>=16'} engines: {node: '>=16'}
dependencies: dependencies:
'@shuding/opentype.js': 1.4.0-beta.0 '@shuding/opentype.js': 1.4.0-beta.0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment