Socket
Socket
Sign inDemoInstall

node-proshot

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-proshot - npm Package Compare versions

Comparing version 1.3.3 to 1.3.4

utils/is_debug.js

3

libs/multishot.js
const puppeteer = require('puppeteer');
const normalizeUrl = require('../utils/normalize_url');
const isDebugEnabled = require('../utils/is_debug');

@@ -20,3 +21,3 @@ function makeFilename(url, path, ext) {

const browser = await puppeteer.launch({
headless: !!process.env.DEBUG_HEADLESS ? process.env.DEBUG_HEADLESS : true
headless: isDebugEnabled() ? false : true
});

@@ -23,0 +24,0 @@

const puppeteer = require('puppeteer');
const isDebugEnabled = require('../utils/is_debug');

@@ -13,4 +14,3 @@ //TODO:

const browser = await puppeteer.launch({
// headless: !!process.env.DEBUG_HEADLESS ? process.env.DEBUG_HEADLESS : true
headless: false
headless: isDebugEnabled() ? false : true
});

@@ -17,0 +17,0 @@ const page = await browser.newPage();

@@ -8,3 +8,3 @@ {

"name": "node-proshot",
"version": "1.3.3",
"version": "1.3.4",
"description": "Handy tool to capture website screenshots using Puppeteer.",

@@ -11,0 +11,0 @@ "bin": {

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc