capture-website
Advanced tools
Comparing version 4.0.0 to 4.0.1
@@ -380,3 +380,3 @@ /* global document */ | ||
const bodyHandle = await page.$('body'); | ||
const bodyBoundingHeight = await bodyHandle.boundingBox(); | ||
const bodyBoundingBox = await bodyHandle.boundingBox(); | ||
await bodyHandle.dispose(); | ||
@@ -387,4 +387,4 @@ | ||
let viewportIncrement = 0; | ||
while (viewportIncrement + viewportHeight < bodyBoundingHeight) { | ||
const navigationPromise = page.waitForNavigation({waitUntil: 'networkidle0'}); | ||
while (viewportIncrement + viewportHeight < bodyBoundingBox.height) { | ||
const navigationPromise = page.waitForNetworkIdle(); | ||
/* eslint-disable no-await-in-loop */ | ||
@@ -391,0 +391,0 @@ await page.evaluate(_viewportHeight => { |
{ | ||
"name": "capture-website", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Capture screenshots of websites", | ||
@@ -48,3 +48,3 @@ "license": "MIT", | ||
"file-url": "^4.0.0", | ||
"puppeteer": "^21.5.0", | ||
"puppeteer": "^21.9.0", | ||
"tough-cookie": "^4.1.3" | ||
@@ -51,0 +51,0 @@ }, |
42094
Updatedpuppeteer@^21.9.0