nuxt-og-image 3.0.0-rc.32 → 3.0.0-rc.34
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/client/200.html +4 -4
- package/dist/client/404.html +4 -4
- package/dist/client/_nuxt/{IconCSS.jqwm8rK5.js → IconCSS.aoRVYUG2.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/42a6f452-f777-4728-aaad-9497778d82ab.json +1 -0
- package/dist/client/_nuxt/{entry.nulbTWcg.js → entry.PptyVlYS.js} +3 -3
- package/dist/client/_nuxt/{error-404.JU1SsGot.js → error-404._70TQBCH.js} +1 -1
- package/dist/client/_nuxt/{error-500.QWp95-mE.js → error-500.YxbOad1a.js} +1 -1
- package/dist/client/index.html +4 -4
- package/dist/module.d.mts +1 -0
- package/dist/module.d.ts +1 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +10 -18
- package/dist/runtime/assets/Inter-400.ttf.base64 +1 -0
- package/dist/runtime/assets/Inter-700.ttf.base64 +1 -0
- package/dist/runtime/nitro/og-image/satori/font.mjs +1 -4
- package/dist/runtime/types.d.ts +1 -0
- package/package.json +1 -1
- package/dist/client/_nuxt/builds/meta/79d607f6-b171-4ce5-99be-52f02213b160.json +0 -1
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { setHeader } from "h3";
|
|
2
1
|
import { prefixStorage } from "unstorage";
|
|
3
|
-
import { getExtension } from "../../../pure.mjs";
|
|
4
2
|
import { useNitroOrigin, useStorage } from "#imports";
|
|
5
3
|
const assets = prefixStorage(useStorage(), "/assets");
|
|
6
4
|
export async function loadFont({ e }, font) {
|
|
@@ -8,8 +6,7 @@ export async function loadFont({ e }, font) {
|
|
|
8
6
|
if (font.data)
|
|
9
7
|
return font;
|
|
10
8
|
if (font.key && await assets.hasItem(font.key)) {
|
|
11
|
-
|
|
12
|
-
const fontData = await assets.getItemRaw(font.key);
|
|
9
|
+
const fontData = await assets.getItem(font.key);
|
|
13
10
|
font.data = Buffer.from(fontData, "base64");
|
|
14
11
|
return font;
|
|
15
12
|
}
|
package/dist/runtime/types.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"id":"79d607f6-b171-4ce5-99be-52f02213b160","timestamp":1706771224767,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
|