nuxt-og-image 1.0.0-beta.3 → 1.0.0-beta.5
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/README.md +1 -0
- package/dist/client/200.html +2 -2
- package/dist/client/404.html +2 -2
- package/dist/client/_nuxt/{Icon.be9fb21b.js → Icon.881857b6.js} +1 -1
- package/dist/client/_nuxt/{entry.a0824e7e.js → entry.db5a4449.js} +2 -2
- package/dist/client/_nuxt/{error-404.15b637ef.js → error-404.1c1c2700.js} +1 -1
- package/dist/client/_nuxt/{error-500.037a45db.js → error-500.6a615525.js} +1 -1
- package/dist/client/_nuxt/{error-component.541b3e05.js → error-component.834f3c34.js} +2 -2
- package/dist/client/index.html +2 -2
- package/dist/module.d.ts +8 -8
- package/dist/module.json +1 -1
- package/dist/module.mjs +45 -29
- package/dist/runtime/components/{OgImageTemplate.island.vue → OgImageBasic.island.vue} +0 -0
- package/dist/runtime/components/OgImageDynamic.d.ts +2 -2
- package/dist/runtime/components/OgImageScreenshot.d.ts +2 -2
- package/dist/runtime/components/OgImageStatic.d.ts +2 -2
- package/dist/runtime/composables/defineOgImage.d.ts +5 -5
- package/dist/runtime/composables/defineOgImage.mjs +11 -6
- package/dist/runtime/nitro/providers/browser.mjs +2 -6
- package/dist/runtime/nitro/providers/satori.mjs +21 -25
- package/dist/runtime/nitro/routes/__og_image__/html.mjs +6 -8
- package/dist/runtime/nitro/routes/__og_image__/index.mjs +3 -3
- package/dist/runtime/nitro/routes/__og_image__/og.png.mjs +7 -11
- package/dist/runtime/nitro/routes/__og_image__/options.d.ts +5 -0
- package/dist/runtime/nitro/routes/__og_image__/{payload.mjs → options.mjs} +18 -20
- package/dist/runtime/nitro/routes/__og_image__/svg.mjs +4 -4
- package/dist/runtime/nitro/utils.d.ts +3 -3
- package/dist/runtime/nitro/utils.mjs +4 -4
- package/package.json +2 -2
- package/dist/runtime/nitro/routes/__og_image__/payload.d.ts +0 -5
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { joinURL, withQuery } from "ufo";
|
|
2
2
|
import { getRequestHeader } from "h3";
|
|
3
|
-
export function
|
|
4
|
-
return $fetch(joinURL(path, "__og_image__/
|
|
3
|
+
export function fetchOptions(path) {
|
|
4
|
+
return $fetch(joinURL(path, "__og_image__/options"));
|
|
5
5
|
}
|
|
6
|
-
export function renderIsland(
|
|
7
|
-
return $fetch(withQuery(`/__nuxt_island/${
|
|
6
|
+
export function renderIsland(payload) {
|
|
7
|
+
return $fetch(withQuery(`/__nuxt_island/${payload.component}`, {
|
|
8
8
|
props: JSON.stringify(payload)
|
|
9
9
|
}));
|
|
10
10
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-og-image",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.5",
|
|
5
5
|
"packageManager": "pnpm@7.8.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"funding": "https://github.com/sponsors/harlan-zw",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"build": "pnpm dev:prepare && pnpm build:module && pnpm build:client",
|
|
64
64
|
"build:client": "nuxi generate client",
|
|
65
65
|
"build:module": "nuxt-build-module",
|
|
66
|
-
"lint": "eslint \"**/*.{ts,vue,json,yml}\"",
|
|
66
|
+
"lint": "eslint \"**/*.{ts,vue,json,yml}\" --fix",
|
|
67
67
|
"dev": "nuxi dev .playground",
|
|
68
68
|
"dev:build": "nuxi build .playground",
|
|
69
69
|
"dev:prepare": "nuxt-module-build --stub && nuxi prepare .playground",
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { OgImagePayload } from '../../../../types';
|
|
2
|
-
export declare const extractOgPayload: (html: string) => any;
|
|
3
|
-
export declare const inferOgPayload: (html: string) => Record<string, any>;
|
|
4
|
-
declare const _default: import("h3").EventHandler<false | OgImagePayload | undefined>;
|
|
5
|
-
export default _default;
|