-
-
Notifications
You must be signed in to change notification settings - Fork 771
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Innei <tukon479@gmail.com>
- Loading branch information
Showing
5 changed files
with
119 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
diff --git a/dist/compiled/@vercel/og/index.edge.js b/dist/compiled/@vercel/og/index.edge.js | ||
index 089354ce4b62dde0fed3482e028ffade3d34b750..3a2f17f0356e815023b9054b52dc1706fa05b2b6 100644 | ||
--- a/dist/compiled/@vercel/og/index.edge.js | ||
+++ b/dist/compiled/@vercel/og/index.edge.js | ||
@@ -18784,7 +18784,11 @@ async function render(satori, resvg, opts, defaultFonts, element) { | ||
value: options.width | ||
} | ||
}); | ||
- return resvgJS.render().asPng(); | ||
+ const pngData = resvgJS.render(); | ||
+ const pngBuffer = pngData.asPng(); | ||
+ pngData.free(); | ||
+ resvgJS.free(); | ||
+ return pngBuffer; | ||
} | ||
|
||
// src/figma/index.tsx | ||
diff --git a/dist/compiled/@vercel/og/index.node.js b/dist/compiled/@vercel/og/index.node.js | ||
index c92983c67cbcc73d197d1ccd2a6f22345a2f7590..a516f4fec131f1a103605bdab0bf1b03d0f8a053 100644 | ||
--- a/dist/compiled/@vercel/og/index.node.js | ||
+++ b/dist/compiled/@vercel/og/index.node.js | ||
@@ -18786,7 +18786,11 @@ async function render(satori2, resvg, opts, defaultFonts, element) { | ||
value: options.width | ||
} | ||
}); | ||
- return resvgJS.render().asPng(); | ||
+ const pngData = resvgJS.render(); | ||
+ const pngBuffer = pngData.asPng(); | ||
+ pngData.free(); | ||
+ resvgJS.free(); | ||
+ return pngBuffer; | ||
} | ||
|
||
// src/figma/index.tsx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
diff --git a/package.json b/package.json | ||
index b5c49b77316f9679f18c7da74f96ae7a890074a2..80fc320e66c0f8448be34e7bf090a9f819e3368d 100644 | ||
--- a/package.json | ||
+++ b/package.json | ||
@@ -12,9 +12,13 @@ | ||
"module": "./lib/esm/index.js", | ||
"types": "./lib/index.d.ts", | ||
"exports": { | ||
- ".": { | ||
- "import": "./lib/esm/index.js", | ||
- "require": "./lib/index.js" | ||
+ "import": { | ||
+ "types": "./lib/index.d.mts", | ||
+ "default": "./lib/esm/index.js" | ||
+ }, | ||
+ "require": { | ||
+ "types": "./lib/index.d.ts", | ||
+ "default": "./lib/index.js" | ||
} | ||
}, | ||
"author": "Paul O’Shannessy <paul@oshannessy.com>", |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.