nuxt-og-image 2.0.0-beta.49 → 2.0.0-beta.50

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": "2.0.0-beta.49"
8
+ "version": "2.0.0-beta.50"
9
9
  }
@@ -7,7 +7,7 @@ import twemoji from "twemoji";
7
7
  import { fetchOptions, useHostname } from "../utils.mjs";
8
8
  import { useRuntimeConfig } from "#imports";
9
9
  export default defineEventHandler(async (e) => {
10
- const { fonts, defaults } = useRuntimeConfig()["nuxt-og-image"];
10
+ const { fonts, defaults, satoriOptions } = useRuntimeConfig()["nuxt-og-image"];
11
11
  const query = getQuery(e);
12
12
  const path = withBase(query.path || "/", useRuntimeConfig().app.baseURL);
13
13
  const scale = query.scale;
@@ -95,12 +95,12 @@ img.emoji {
95
95
  {
96
96
  src: "https://cdn.tailwindcss.com"
97
97
  },
98
- // @todo merge with users tailwind
99
98
  {
100
99
  innerHTML: `tailwind.config = {
101
100
  corePlugins: {
102
101
  preflight: false,
103
- }
102
+ },
103
+ theme: ${JSON.stringify(satoriOptions.tailwindConfig.theme || {})}
104
104
  }`
105
105
  }
106
106
  ],
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.49",
4
+ "version": "2.0.0-beta.50",
5
5
  "packageManager": "pnpm@8.6.0",
6
6
  "license": "MIT",
7
7
  "funding": "https://github.com/sponsors/harlan-zw",