Socket
Socket
Sign inDemoInstall

capture-website

Package Overview
Dependencies
150
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.0 to 4.0.1

6

index.js

@@ -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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc