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.21-beta.0 to 0.0.21-beta.1

2

dist/index.node.js

@@ -1,2 +0,2 @@

import{a as t}from"./chunk-E4H23KFF.js";import p from"satori";import*as i from"@resvg/resvg-js";import c from"fs";var f=c.readFileSync(`${__dirname}/../vendor/noto-sans-v27-latin-regular.ttf`),o,n,l=((n=(o=globalThis==null?void 0:globalThis.process)==null?void 0:o.env)==null?void 0:n.NODE_ENV)==="development";async function u(r,s,e={}){let a=await f,m=(await t(p,i,e,[{name:"sans serif",data:a,weight:700,style:"normal"}],s)).asPng();r.writeHead(e.status,e.statusText,{"content-type":"image/png","cache-control":l?"no-cache, no-store":"public, immutable, no-transform, max-age=31536000",...e.headers}).end(m)}export{u as renderImageToResponse};
import{a as t}from"./chunk-E4H23KFF.js";import i from"satori";import*as p from"@resvg/resvg-js";import c from"fs";import{join as f}from"path";import{fileURLToPath as l}from"url";var d=c.readFileSync(f(l(import.meta.url),"../..","vendor/noto-sans-v27-latin-regular.ttf")),o,r,g=((r=(o=globalThis==null?void 0:globalThis.process)==null?void 0:o.env)==null?void 0:r.NODE_ENV)==="development";async function w(a,n,e={}){let s=await d,m=(await t(i,p,e,[{name:"sans serif",data:s,weight:700,style:"normal"}],n)).asPng();a.writeHead(e.status||200,e.statusText||"OK",{"content-type":"image/png","cache-control":g?"no-cache, no-store":"public, immutable, no-transform, max-age=31536000",...e.headers}).end(m)}export{w as renderImageToResponse};
//# sourceMappingURL=index.node.js.map
{
"name": "@vercel/og",
"version": "0.0.21-beta.0",
"version": "0.0.21-beta.1",
"description": "Generate Open Graph Images dynamically from HTML/CSS without a browser",

@@ -5,0 +5,0 @@ "type": "module",

Sorry, the diff of this file is not supported yet

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