nuxt-og-image 1.4.16 → 1.4.17

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,5 +5,5 @@
5
5
  "bridge": false
6
6
  },
7
7
  "configKey": "ogImage",
8
- "version": "1.4.16"
8
+ "version": "1.4.17"
9
9
  }
@@ -1,4 +1,6 @@
1
1
  <script setup lang="ts">
2
+ import { computed } from 'vue'
3
+
2
4
  const props = defineProps({
3
5
  path: String,
4
6
  title: {
@@ -21,7 +21,7 @@ export const inferOgImageOptions = (html) => {
21
21
  };
22
22
  export default defineEventHandler(async (e) => {
23
23
  const query = getQuery(e);
24
- const path = query.path;
24
+ const path = query.path || "/";
25
25
  const html = await globalThis.$fetch(path);
26
26
  const extractedPayload = extractOgImageOptions(html);
27
27
  if (!extractedPayload) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-og-image",
3
3
  "type": "module",
4
- "version": "1.4.16",
4
+ "version": "1.4.17",
5
5
  "packageManager": "pnpm@7.8.0",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",