nuxt-og-image 2.0.0-beta.29 → 2.0.0-beta.30
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 +1 -1
- package/dist/module.mjs +9 -5
- package/dist/runtime/browserUtil.mjs +2 -2
- package/package.json +1 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -69,12 +69,12 @@ async function screenshot(browser, options) {
|
|
|
69
69
|
await page.waitForLoadState("networkidle");
|
|
70
70
|
} else {
|
|
71
71
|
await page.goto(`${options.host}${options.path}`, {
|
|
72
|
-
timeout: process.env.prerender || process.dev ? 1e4 :
|
|
72
|
+
timeout: process.env.prerender || process.dev ? 1e4 : 3500,
|
|
73
73
|
waitUntil: "networkidle"
|
|
74
74
|
});
|
|
75
75
|
}
|
|
76
76
|
const screenshotOptions = {
|
|
77
|
-
timeout: process.env.prerender || process.dev ? 1e4 :
|
|
77
|
+
timeout: process.env.prerender || process.dev ? 1e4 : 3500
|
|
78
78
|
};
|
|
79
79
|
if (options.delay)
|
|
80
80
|
await page.waitForTimeout(options.delay);
|
|
@@ -231,9 +231,10 @@ const Wasms = [
|
|
|
231
231
|
}
|
|
232
232
|
];
|
|
233
233
|
const DefaultRuntimeCompatibility = {
|
|
234
|
+
// node-server runtime
|
|
234
235
|
browser: "playwright",
|
|
235
236
|
satori: "default",
|
|
236
|
-
wasm: "
|
|
237
|
+
wasm: "fetch",
|
|
237
238
|
png: "resvg"
|
|
238
239
|
};
|
|
239
240
|
const RuntimeCompatibility = {
|
|
@@ -247,13 +248,16 @@ const RuntimeCompatibility = {
|
|
|
247
248
|
wasm: "inline"
|
|
248
249
|
},
|
|
249
250
|
"cloudflare-pages": {
|
|
250
|
-
browser: false
|
|
251
|
+
browser: false,
|
|
252
|
+
wasm: "import"
|
|
251
253
|
},
|
|
252
254
|
"cloudflare": {
|
|
253
|
-
browser: false
|
|
255
|
+
browser: false,
|
|
256
|
+
wasm: "import"
|
|
254
257
|
},
|
|
255
258
|
"vercel-edge": {
|
|
256
259
|
browser: false,
|
|
260
|
+
wasm: "import",
|
|
257
261
|
wasmImportQuery: "?module"
|
|
258
262
|
}
|
|
259
263
|
};
|
|
@@ -17,12 +17,12 @@ export async function screenshot(browser, options) {
|
|
|
17
17
|
await page.waitForLoadState("networkidle");
|
|
18
18
|
} else {
|
|
19
19
|
await page.goto(`${options.host}${options.path}`, {
|
|
20
|
-
timeout: process.env.prerender || process.dev ? 1e4 :
|
|
20
|
+
timeout: process.env.prerender || process.dev ? 1e4 : 3500,
|
|
21
21
|
waitUntil: "networkidle"
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
const screenshotOptions = {
|
|
25
|
-
timeout: process.env.prerender || process.dev ? 1e4 :
|
|
25
|
+
timeout: process.env.prerender || process.dev ? 1e4 : 3500
|
|
26
26
|
};
|
|
27
27
|
if (options.delay)
|
|
28
28
|
await page.waitForTimeout(options.delay);
|