nuxt-og-image 2.0.0-beta.28 → 2.0.0-beta.29
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
CHANGED
|
@@ -5,7 +5,6 @@ import { createError, defineEventHandler, getQuery, sendRedirect } from "h3";
|
|
|
5
5
|
import { hash } from "ohash";
|
|
6
6
|
import { fetchOptions, useHostname } from "../utils.mjs";
|
|
7
7
|
import { useRuntimeConfig } from "#imports";
|
|
8
|
-
import { useNitroApp } from "#internal/nitro";
|
|
9
8
|
export default defineEventHandler(async (e) => {
|
|
10
9
|
const { fonts, defaults } = useRuntimeConfig()["nuxt-og-image"];
|
|
11
10
|
const query = getQuery(e);
|
|
@@ -31,9 +30,12 @@ export default defineEventHandler(async (e) => {
|
|
|
31
30
|
statusMessage: `Nuxt OG Image trying to render an invalid component. Received options ${JSON.stringify(options)}`
|
|
32
31
|
});
|
|
33
32
|
}
|
|
34
|
-
const nitroApp = useNitroApp();
|
|
35
33
|
const hashId = hash([options.component, options]);
|
|
36
|
-
const island = await (
|
|
34
|
+
const island = await $fetch(`/__nuxt_island/${options.component}:${hashId}`, {
|
|
35
|
+
params: {
|
|
36
|
+
props: JSON.stringify(options)
|
|
37
|
+
}
|
|
38
|
+
});
|
|
37
39
|
const head = createHeadCore();
|
|
38
40
|
head.push(island.head);
|
|
39
41
|
let defaultFontFamily = "sans-serif";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-og-image",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.0-beta.
|
|
4
|
+
"version": "2.0.0-beta.29",
|
|
5
5
|
"packageManager": "pnpm@8.1.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/harlan-zw",
|
|
@@ -39,6 +39,7 @@
|
|
|
39
39
|
"fs-extra": "^11.1.1",
|
|
40
40
|
"globby": "^13.1.4",
|
|
41
41
|
"launch-editor": "^2.6.0",
|
|
42
|
+
"nuxt-icon": "^0.4.0",
|
|
42
43
|
"nypm": "^0.2.0",
|
|
43
44
|
"ofetch": "^1.0.1",
|
|
44
45
|
"ohash": "^1.1.2",
|