@vercel/og
Advanced tools
Comparing version 0.0.20 to 0.0.21-beta.0
@@ -1,44 +0,1 @@ | ||
import type { ReactElement } from 'react'; | ||
import type { SatoriOptions } from 'satori'; | ||
import { EmojiType } from './emoji'; | ||
export declare type ImageResponseOptions = ConstructorParameters<typeof Response>[1] & { | ||
/** | ||
* The width of the image. | ||
* | ||
* @type {number} | ||
* @default 1200 | ||
*/ | ||
width?: number; | ||
/** | ||
* The height of the image. | ||
* | ||
* @type {number} | ||
* @default 630 | ||
*/ | ||
height?: number; | ||
/** | ||
* Display debug information on the image. | ||
* | ||
* @type {boolean} | ||
* @default false | ||
*/ | ||
debug?: boolean; | ||
/** | ||
* A list of fonts to use. | ||
* | ||
* @type {{ data: ArrayBuffer; name: string; weight?: 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900; style?: 'normal' | 'italic' }[]} | ||
* @default Noto Sans Latin Regular. | ||
*/ | ||
fonts?: SatoriOptions['fonts']; | ||
/** | ||
* Using a specific Emoji style. Defaults to `twemoji`. | ||
* | ||
* @link https://github.com/vercel/og#emoji | ||
* @type {EmojiType} | ||
* @default 'twemoji' | ||
*/ | ||
emoji?: EmojiType; | ||
}; | ||
export declare class ImageResponse { | ||
constructor(element: ReactElement, options?: ImageResponseOptions); | ||
} | ||
export default function render(satori: any, resvg: any, opts: any, defaultFonts: any, element: any): Promise<any>; |
{ | ||
"name": "@vercel/og", | ||
"version": "0.0.20", | ||
"version": "0.0.21-beta.0", | ||
"description": "Generate Open Graph Images dynamically from HTML/CSS without a browser", | ||
@@ -12,5 +12,9 @@ "type": "module", | ||
], | ||
"scripts": { | ||
"build": "tsup src/index.ts --format esm && pnpm types", | ||
"types": "tsc --project tsconfig.json" | ||
"exports": { | ||
".": { | ||
"edge": "./dist/index.edge.js", | ||
"browser": "./dist/index.edge.js", | ||
"import": "./dist/index.node.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
@@ -28,2 +32,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@resvg/resvg-js": "^2.1.0", | ||
"@resvg/resvg-wasm": "2.0.0-alpha.4", | ||
@@ -42,3 +47,7 @@ "satori": "0.0.43", | ||
"node": ">=16" | ||
}, | ||
"scripts": { | ||
"build": "tsup src/index.edge.ts --format esm && tsup src/index.node.ts --format esm && pnpm types", | ||
"types": "tsc --project tsconfig.json" | ||
} | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1213731
20
140
4
2
8
+ Added@resvg/resvg-js@^2.1.0
+ Added@resvg/resvg-js@2.6.2(transitive)
+ Added@resvg/resvg-js-android-arm-eabi@2.6.2(transitive)
+ Added@resvg/resvg-js-android-arm64@2.6.2(transitive)
+ Added@resvg/resvg-js-darwin-arm64@2.6.2(transitive)
+ Added@resvg/resvg-js-darwin-x64@2.6.2(transitive)
+ Added@resvg/resvg-js-linux-arm-gnueabihf@2.6.2(transitive)
+ Added@resvg/resvg-js-linux-arm64-gnu@2.6.2(transitive)
+ Added@resvg/resvg-js-linux-arm64-musl@2.6.2(transitive)
+ Added@resvg/resvg-js-linux-x64-gnu@2.6.2(transitive)
+ Added@resvg/resvg-js-linux-x64-musl@2.6.2(transitive)
+ Added@resvg/resvg-js-win32-arm64-msvc@2.6.2(transitive)
+ Added@resvg/resvg-js-win32-ia32-msvc@2.6.2(transitive)
+ Added@resvg/resvg-js-win32-x64-msvc@2.6.2(transitive)