nuxt-og-image 1.4.18 → 1.4.20

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.18"
8
+ "version": "1.4.20"
9
9
  }
package/dist/module.mjs CHANGED
@@ -331,9 +331,7 @@ export {}
331
331
  moduleAssetDir
332
332
  ];
333
333
  exposeModuleConfig("nuxt-og-image", { ...config, assetDirs });
334
- const nitroPreset = process.env.NITRO_PRESET || nuxt.options.nitro.preset;
335
- const isWebWorkerEnv = process.env.NODE_ENV !== "development" && (provider === "stackblitz" || edgeProvidersSupported.includes(nitroPreset));
336
- const useSatoriWasm = isWebWorkerEnv && nitroPreset !== "cloudflare";
334
+ const useSatoriWasm = provider === "stackblitz";
337
335
  nuxt.hooks.hook("nitro:config", async (nitroConfig) => {
338
336
  nitroConfig.externals = defu(nitroConfig.externals || {}, {
339
337
  inline: [runtimeDir]
@@ -79,14 +79,14 @@ const descriptionAttrs = computed(() => {
79
79
  </script>
80
80
 
81
81
  <template>
82
- <div v-bind="containerAttrs">
83
- <div class="flex flex-col w-full">
84
- <div v-bind="titleAttrs">
85
- {{ title }}
86
- </div>
87
- <div v-bind="descriptionAttrs">
88
- {{ description }}
82
+ <div v-bind="containerAttrs">
83
+ <div class="flex flex-col w-full">
84
+ <div v-bind="titleAttrs">
85
+ {{ title }}
86
+ </div>
87
+ <div v-bind="descriptionAttrs">
88
+ {{ description }}
89
+ </div>
89
90
  </div>
90
91
  </div>
91
- </div>
92
92
  </template>
@@ -1,4 +1,4 @@
1
- import { defineEventHandler, getQuery } from "h3";
1
+ import { createError, defineEventHandler, getQuery } from "h3";
2
2
  import { getRouteRules } from "#internal/nitro";
3
3
  import { defaults } from "#nuxt-og-image/config";
4
4
  export function extractOgImageOptions(html) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nuxt-og-image",
3
3
  "type": "module",
4
- "version": "1.4.18",
4
+ "version": "1.4.20",
5
5
  "packageManager": "pnpm@7.8.0",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",
@@ -32,7 +32,7 @@
32
32
  "chalk": "^5.2.0",
33
33
  "chrome-launcher": "^0.15.1",
34
34
  "defu": "^6.1.2",
35
- "execa": "^6.1.0",
35
+ "execa": "^7.0.0",
36
36
  "fast-glob": "^3.2.12",
37
37
  "flatted": "^3.2.7",
38
38
  "fs-extra": "^11.1.0",
@@ -41,7 +41,7 @@
41
41
  "pathe": "^1.1.0",
42
42
  "playwright-core": "^1.30.0",
43
43
  "radix3": "^1.0.0",
44
- "satori": "0.2.3",
44
+ "satori": "0.3.1",
45
45
  "satori-html": "^0.3.2",
46
46
  "sirv": "^2.0.2",
47
47
  "std-env": "^3.3.2",
@@ -53,7 +53,7 @@
53
53
  },
54
54
  "devDependencies": {
55
55
  "@antfu/eslint-config": "^0.35.2",
56
- "@nuxt/devtools-edge": "0.1.2-27935485.22f2571",
56
+ "@nuxt/devtools-edge": "0.1.2-27939787.a317194",
57
57
  "@nuxt/module-builder": "^0.2.1",
58
58
  "@nuxt/test-utils": "3.2.0",
59
59
  "@nuxtjs/eslint-config-typescript": "^12.0.0",
@@ -61,8 +61,8 @@
61
61
  "bumpp": "^8.2.1",
62
62
  "eslint": "8.34.0",
63
63
  "nuxt": "^3.2.0",
64
- "puppeteer": "^19.6.2",
65
- "vitest": "^0.28.4"
64
+ "puppeteer": "^19.7.0",
65
+ "vitest": "^0.28.5"
66
66
  },
67
67
  "scripts": {
68
68
  "build": "pnpm dev:prepare && pnpm build:module && pnpm build:client",