node-proshot
Advanced tools
Comparing version 1.3.3 to 1.3.4
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": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
8162
10
161
0