nuxt-og-image 2.0.0-beta.54 → 2.0.0-beta.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/runtime/nitro/utils.mjs +1 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -85,8 +85,8 @@ export async function readPublicAsset(file, encoding) {
|
|
|
85
85
|
}
|
|
86
86
|
export async function readPublicAssetBase64(file) {
|
|
87
87
|
const base64 = await readPublicAsset(file, "base64");
|
|
88
|
-
const dimensions = await sizeOf(Buffer.from(base64, "base64"));
|
|
89
88
|
if (base64) {
|
|
89
|
+
const dimensions = await sizeOf(Buffer.from(base64, "base64"));
|
|
90
90
|
return {
|
|
91
91
|
src: toBase64Image(file, base64),
|
|
92
92
|
...dimensions
|