nuxt-og-image 2.0.22 → 2.0.23
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 +2 -2
- package/dist/module.mjs +3 -22
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -20,7 +20,7 @@ import { createBirpcGroup } from 'birpc';
|
|
|
20
20
|
import { stringify, parse } from 'flatted';
|
|
21
21
|
import { addDependency } from 'nypm';
|
|
22
22
|
|
|
23
|
-
const version = "2.0.
|
|
23
|
+
const version = "2.0.23";
|
|
24
24
|
|
|
25
25
|
async function createBrowser() {
|
|
26
26
|
if (process.dev || process.env.prerender) {
|
|
@@ -368,7 +368,7 @@ const module = defineNuxtModule({
|
|
|
368
368
|
meta: {
|
|
369
369
|
name: "nuxt-og-image",
|
|
370
370
|
compatibility: {
|
|
371
|
-
nuxt: "^3.
|
|
371
|
+
nuxt: "^3.7.0",
|
|
372
372
|
bridge: false
|
|
373
373
|
},
|
|
374
374
|
configKey: "ogImage"
|
|
@@ -421,7 +421,7 @@ const module = defineNuxtModule({
|
|
|
421
421
|
await ensureDependencies(nuxt, ["puppeteer-core@14.1.1", "@sparticuz/chrome-aws-lambda@14.1.1"]);
|
|
422
422
|
}
|
|
423
423
|
await installNuxtSiteConfig();
|
|
424
|
-
|
|
424
|
+
updateSiteConfig({
|
|
425
425
|
_context: "nuxt-og-image:config",
|
|
426
426
|
url: config.siteUrl || config.host
|
|
427
427
|
});
|
|
@@ -685,25 +685,6 @@ export async function useProvider(provider) {
|
|
|
685
685
|
continue;
|
|
686
686
|
let contents = await readFile(path, "utf-8");
|
|
687
687
|
let updated = false;
|
|
688
|
-
if (_nitro.options.preset.includes("vercel") && path === wasmProviderPath) {
|
|
689
|
-
contents = contents.replace(".cwd(),", '?.cwd || "/",');
|
|
690
|
-
updated = true;
|
|
691
|
-
}
|
|
692
|
-
if (_nitro.options.preset.includes("netlify") && path.endsWith("netlify.mjs") || _nitro.options.preset === "aws-lambda" && path.endsWith("aws-lambda.mjs")) {
|
|
693
|
-
const match = "// TODO: handle event.isBase64Encoded\n });";
|
|
694
|
-
contents = contents.replace(match, `${match}
|
|
695
|
-
|
|
696
|
-
const headers = normalizeOutgoingHeaders(r.headers);
|
|
697
|
-
if (Buffer.isBuffer(r.body)) {
|
|
698
|
-
return {
|
|
699
|
-
statusCode: r.status,
|
|
700
|
-
headers,
|
|
701
|
-
body: r.body.toString("base64"),
|
|
702
|
-
isBase64Encoded: true
|
|
703
|
-
};
|
|
704
|
-
}`);
|
|
705
|
-
updated = true;
|
|
706
|
-
}
|
|
707
688
|
for (const wasm of Wasms) {
|
|
708
689
|
if (contents.includes(wasm.placeholder)) {
|
|
709
690
|
if (nitroCompatibility.wasm === "import") {
|