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

@vercel/og

Package Overview
Dependencies
Maintainers
212
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.21-beta.1 to 0.0.21

45

dist/og.d.ts

@@ -1,1 +0,44 @@

export default function render(satori: any, resvg: any, opts: any, defaultFonts: any, element: any): Promise<any>;
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);
}

15

package.json
{
"name": "@vercel/og",
"version": "0.0.21-beta.1",
"version": "0.0.21",
"description": "Generate Open Graph Images dynamically from HTML/CSS without a browser",

@@ -12,10 +12,2 @@ "type": "module",

],
"exports": {
".": {
"edge": "./dist/index.edge.js",
"browser": "./dist/index.edge.js",
"import": "./dist/index.node.js"
},
"./package.json": "./package.json"
},
"keywords": [

@@ -32,5 +24,4 @@ "open graph image",

"dependencies": {
"@resvg/resvg-js": "^2.1.0",
"@resvg/resvg-wasm": "2.0.0-alpha.4",
"satori": "0.0.43",
"satori": "0.0.44",
"yoga-wasm-web": "0.1.2"

@@ -49,5 +40,5 @@ },

"scripts": {
"build": "tsup src/index.edge.ts --format esm && tsup src/index.node.ts --format esm && pnpm types",
"build": "tsup src/index.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