pim-import 2.45.0 → 2.45.1
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/libs/puppeteer.js +1 -1
- package/package.json +1 -1
- package/src/libs/puppeteer.ts +1 -1
package/dist/libs/puppeteer.js
CHANGED
|
@@ -14,7 +14,7 @@ const generatePDFByUrl = async (url, path = "") => {
|
|
|
14
14
|
browserWSEndpoint: `wss://chrome.browserless.io?token=${process.env.BROWSERLESS_TOKEN}`,
|
|
15
15
|
});
|
|
16
16
|
const page = await browser.newPage();
|
|
17
|
-
await page.goto(url, { waitUntil: "
|
|
17
|
+
await page.goto(url, { waitUntil: "networkidle0" });
|
|
18
18
|
const options = {
|
|
19
19
|
format: "a4",
|
|
20
20
|
printBackground: true,
|
package/package.json
CHANGED
package/src/libs/puppeteer.ts
CHANGED
|
@@ -19,7 +19,7 @@ export const generatePDFByUrl = async (url: string, path: string = "") => {
|
|
|
19
19
|
});
|
|
20
20
|
const page = await browser.newPage();
|
|
21
21
|
|
|
22
|
-
await page.goto(url, { waitUntil: "
|
|
22
|
+
await page.goto(url, { waitUntil: "networkidle0" });
|
|
23
23
|
|
|
24
24
|
// See: https://github.com/puppeteer/puppeteer/blob/v11.0.0/docs/api.md#pagepdfoptions
|
|
25
25
|
const options: PDFOptions = {
|