Socket
Socket
Sign inDemoInstall

capture-website

Package Overview
Dependencies
46
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.1 to 0.1.2

8

index.js

@@ -65,2 +65,4 @@ 'use strict';

const timeoutInSeconds = options.timeout * 1000;
const viewportOptions = {

@@ -127,3 +129,3 @@ width: options.width,

await page.goto(finalUrl, {
timeout: options.timeout * 1000,
timeout: timeoutInSeconds,
waitUntil: 'networkidle2'

@@ -170,3 +172,3 @@ });

visible: true,
timeout: options.timeout
timeout: timeoutInSeconds
});

@@ -178,3 +180,3 @@ }

visible: true,
timeout: options.timeout
timeout: timeoutInSeconds
});

@@ -181,0 +183,0 @@ screenshotOptions.clip = await page.$eval(options.element, getBoundingClientRect);

{
"name": "capture-website",
"version": "0.1.1",
"version": "0.1.2",
"description": "Capture screenshots of websites",

@@ -5,0 +5,0 @@ "license": "MIT",

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