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

@vercel/og

Package Overview
Dependencies
Maintainers
215
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.1.0 to 0.2.0-beta.0

dist/chunk-PXQZL5OU.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.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"
}
}
}
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