@browserless/pdf 13.6.10 → 13.6.12
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/package.json +4 -4
- package/src/index.js +1 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@browserless/pdf",
|
|
3
3
|
"description": "Convert websites to high-quality PDFs with customizable margins, background printing, and optimized scaling.",
|
|
4
4
|
"homepage": "https://browserless.js.org/#/?id=pdfurl-options",
|
|
5
|
-
"version": "13.6.
|
|
5
|
+
"version": "13.6.12",
|
|
6
6
|
"main": "src",
|
|
7
7
|
"author": {
|
|
8
8
|
"email": "hello@microlink.io",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"website-to-pdf"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@browserless/goto": "13.6.
|
|
34
|
-
"@browserless/screenshot": "13.6.
|
|
33
|
+
"@browserless/goto": "13.6.12",
|
|
34
|
+
"@browserless/screenshot": "13.6.12",
|
|
35
35
|
"@kikobeats/time-span": "~1.0.12",
|
|
36
36
|
"debug-logfmt": "~1.4.10",
|
|
37
37
|
"p-reflect": "~2.1.0",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"test": "exit 0"
|
|
48
48
|
},
|
|
49
49
|
"license": "MIT",
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "363898247585b3b6cd51781fbd55ca61ee9ef8a6"
|
|
51
51
|
}
|
package/src/index.js
CHANGED
|
@@ -140,7 +140,7 @@ module.exports = ({ goto, ...gotoOpts } = {}) => {
|
|
|
140
140
|
isReady = await checkPageReady(page, { isPageReady, response, screenshot, isWhite })
|
|
141
141
|
|
|
142
142
|
const remaining = pollTimeout - elapsed()
|
|
143
|
-
if (!isReady && !didHydrateAttempt
|
|
143
|
+
if (!isReady && !didHydrateAttempt) {
|
|
144
144
|
didHydrateAttempt = true
|
|
145
145
|
const { hydrated, info } = await tryHydrateScroll(page, remaining)
|
|
146
146
|
didHydrateScroll = hydrated
|