New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

printeer

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

printeer - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

2

package.json
{
"name": "printeer",
"version": "1.2.4",
"version": "1.2.5",
"description": "Prints specified web url to PDF (or Image - Coming Soon)!",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -26,7 +26,18 @@ import puppeteer from 'puppeteer';

const browser = await puppeteer.launch({
const launchOptions:any = {
headless: true,
args: isCurrentUserRoot() ? ['--no-sandbox', '--disable-setuid-sandbox'] : []
});
}
// PUPPETEER_EXECUTABLE_PATH
// Read the environment variable PUPPETEER_EXECUTABLE_PATH and use it as the path to the executable.
// If the environment variable is not set, the default executable path is used.
const exePath = process.env.PUPPETEER_EXECUTABLE_PATH;
if (exePath) {
launchOptions.executablePath = exePath;
}
const browser = await puppeteer.launch(launchOptions);
const page = await browser.newPage();

@@ -33,0 +44,0 @@ const res = await page.goto(url, {waitUntil: 'networkidle0'});

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