@vercel/og
Advanced tools
Comparing version 0.0.21-beta.0 to 0.0.21-beta.1
@@ -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
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
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
1214009