Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

autocode-puppeteer

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autocode-puppeteer - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0-rc

27

index.js

@@ -6,2 +6,27 @@ process.env.FUNCTIONS_EMULATOR = 'aws_lambda';

module.exports = chromium;
let autocodePuppeteer = chromium.puppeteer;
let puppeteerLaunch = chromium.puppeteer.launch.bind(autocodePuppeteer);
autocodePuppeteer.launch = async (options) => {
options = options || {};
if (options.hasOwnProperty('args')) {
throw new Error('You may not specify a custom "args" option when launching Puppeteer in Autocode.')
}
if (options.hasOwnProperty('executablePath')) {
throw new Error('You may not specify a custom "executablePath" option when launching Puppeteer in Autocode.')
}
if (options.hasOwnProperty('headless')) {
throw new Error('You may not specify a custom "headless" option when launching Puppeteer in Autocode.')
}
if (!options.hasOwnProperty('defaultViewport')) {
options.defaultViewport = chromium.defaultViewport;
}
if (!options.hasOwnProperty('ignoreHTTPSErrors')) {
options.ignoreHTTPSErrors = true;
}
options.args = chromium.args;
options.executablePath = await chromium.executablePath;
options.headless = chromium.headless;
return puppeteerLaunch(options);
};
module.exports = autocodePuppeteer;

6

package.json
{
"name": "autocode-puppeteer",
"version": "1.0.0",
"version": "2.0.0-rc",
"description": "Puppeteer for use in Autocode services",

@@ -12,4 +12,4 @@ "main": "index.js",

"dependencies": {
"chrome-aws-lambda": "^5.5.0",
"puppeteer-core": "^5.5.0"
"chrome-aws-lambda": "5.5.0",
"puppeteer-core": "5.5.0"
},

@@ -16,0 +16,0 @@ "repository": {

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