@vercel/og
Advanced tools
Comparing version 0.1.0 to 0.2.0-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.1.0", | ||
"version": "0.2.0-beta.0", | ||
"description": "Generate Open Graph Images dynamically from HTML/CSS without a browser", | ||
@@ -12,5 +12,12 @@ "type": "module", | ||
], | ||
"scripts": { | ||
"build": "tsup src/index.ts --format esm && pnpm types", | ||
"types": "tsc --project tsconfig.json" | ||
"exports": { | ||
".": { | ||
"edge": "./dist/index.edge.js", | ||
"edge-light": "./dist/index.edge.js", | ||
"browser": "./dist/index.edge.js", | ||
"import": "./dist/index.node.js", | ||
"node": "./dist/index.node.js", | ||
"default": "./dist/index.node.js" | ||
}, | ||
"./package.json": "./package.json" | ||
}, | ||
@@ -28,4 +35,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@resvg/resvg-js": "^2.1.0", | ||
"@resvg/resvg-wasm": "2.0.0-alpha.4", | ||
"satori": "0.2.2", | ||
"satori": "0.2.3", | ||
"yoga-wasm-web": "0.3.0" | ||
@@ -42,3 +50,7 @@ }, | ||
"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
1218900
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)
+ Addedsatori@0.2.3(transitive)
- Removedsatori@0.2.2(transitive)
Updatedsatori@0.2.3