Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vercel/og

Package Overview
Dependencies
Maintainers
4
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vercel/og - npm Package Compare versions

Comparing version 0.0.20 to 0.0.21-beta.0

dist/chunk-E4H23KFF.js

45

dist/og.d.ts

@@ -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"
}
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc