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

@puppeteer/browsers

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@puppeteer/browsers - npm Package Compare versions

Comparing version 1.6.0 to 1.7.0

lib/cjs/browser-data/chrome-headless-shell.d.ts

4

lib/cjs/browser-data/browser-data.d.ts

@@ -16,2 +16,3 @@ /**

*/
import * as chromeHeadlessShell from './chrome-headless-shell.js';
import * as chrome from './chrome.js';

@@ -25,2 +26,3 @@ import * as chromedriver from './chromedriver.js';

chromedriver: typeof chromedriver.resolveDownloadUrl;
"chrome-headless-shell": typeof chromeHeadlessShell.resolveDownloadUrl;
chrome: typeof chrome.resolveDownloadUrl;

@@ -32,2 +34,3 @@ chromium: typeof chromium.resolveDownloadUrl;

chromedriver: typeof chromedriver.resolveDownloadPath;
"chrome-headless-shell": typeof chromeHeadlessShell.resolveDownloadPath;
chrome: typeof chrome.resolveDownloadPath;

@@ -39,2 +42,3 @@ chromium: typeof chromium.resolveDownloadPath;

chromedriver: typeof chromedriver.relativeExecutablePath;
"chrome-headless-shell": typeof chromeHeadlessShell.relativeExecutablePath;
chrome: typeof chrome.relativeExecutablePath;

@@ -41,0 +45,0 @@ chromium: typeof chromium.relativeExecutablePath;

@@ -42,2 +42,3 @@ "use strict";

exports.resolveSystemExecutablePath = exports.createProfile = exports.resolveBuildId = exports.ChromeReleaseChannel = exports.BrowserPlatform = exports.Browser = exports.executablePathByBrowser = exports.downloadPaths = exports.downloadUrls = void 0;
const chromeHeadlessShell = __importStar(require("./chrome-headless-shell.js"));
const chrome = __importStar(require("./chrome.js"));

@@ -53,2 +54,3 @@ const chromedriver = __importStar(require("./chromedriver.js"));

[types_js_1.Browser.CHROMEDRIVER]: chromedriver.resolveDownloadUrl,
[types_js_1.Browser.CHROMEHEADLESSSHELL]: chromeHeadlessShell.resolveDownloadUrl,
[types_js_1.Browser.CHROME]: chrome.resolveDownloadUrl,

@@ -60,2 +62,3 @@ [types_js_1.Browser.CHROMIUM]: chromium.resolveDownloadUrl,

[types_js_1.Browser.CHROMEDRIVER]: chromedriver.resolveDownloadPath,
[types_js_1.Browser.CHROMEHEADLESSSHELL]: chromeHeadlessShell.resolveDownloadPath,
[types_js_1.Browser.CHROME]: chrome.resolveDownloadPath,

@@ -67,2 +70,3 @@ [types_js_1.Browser.CHROMIUM]: chromium.resolveDownloadPath,

[types_js_1.Browser.CHROMEDRIVER]: chromedriver.relativeExecutablePath,
[types_js_1.Browser.CHROMEHEADLESSSHELL]: chromeHeadlessShell.relativeExecutablePath,
[types_js_1.Browser.CHROME]: chrome.relativeExecutablePath,

@@ -126,2 +130,21 @@ [types_js_1.Browser.CHROMIUM]: chromium.relativeExecutablePath,

}
case types_js_1.Browser.CHROMEHEADLESSSHELL: {
switch (tag) {
case types_js_1.BrowserTag.LATEST:
case types_js_1.BrowserTag.CANARY:
return await chromeHeadlessShell.resolveBuildId(types_js_1.ChromeReleaseChannel.CANARY);
case types_js_1.BrowserTag.BETA:
return await chromeHeadlessShell.resolveBuildId(types_js_1.ChromeReleaseChannel.BETA);
case types_js_1.BrowserTag.DEV:
return await chromeHeadlessShell.resolveBuildId(types_js_1.ChromeReleaseChannel.DEV);
case types_js_1.BrowserTag.STABLE:
return await chromeHeadlessShell.resolveBuildId(types_js_1.ChromeReleaseChannel.STABLE);
default:
const result = await chromeHeadlessShell.resolveBuildId(tag);
if (result) {
return result;
}
}
return tag;
}
case types_js_1.Browser.CHROMIUM:

@@ -161,2 +184,3 @@ switch (tag) {

case types_js_1.Browser.CHROMEDRIVER:
case types_js_1.Browser.CHROMEHEADLESSSHELL:
case types_js_1.Browser.FIREFOX:

@@ -163,0 +187,0 @@ case types_js_1.Browser.CHROMIUM:

@@ -25,2 +25,3 @@ /**

CHROME = "chrome",
CHROMEHEADLESSSHELL = "chrome-headless-shell",
CHROMIUM = "chromium",

@@ -27,0 +28,0 @@ FIREFOX = "firefox",

@@ -52,2 +52,3 @@ "use strict";

Browser["CHROME"] = "chrome";
Browser["CHROMEHEADLESSSHELL"] = "chrome-headless-shell";
Browser["CHROMIUM"] = "chromium";

@@ -54,0 +55,0 @@ Browser["FIREFOX"] = "firefox";

@@ -115,2 +115,5 @@ "use strict";

yargs.example('$0 install chromedriver@115.0.5790', 'Install the latest available patch (115.0.5790.X) build for ChromeDriver.');
yargs.example('$0 install chrome-headless-shell', 'Install the latest available chrome-headless-shell build.');
yargs.example('$0 install chrome-headless-shell@beta', 'Install the latest available chrome-headless-shell build corresponding to the Beta channel.');
yargs.example('$0 install chrome-headless-shell@118', 'Install the latest available chrome-headless-shell 118 build.');
yargs.example('$0 install chromium@1083080', 'Install the revision 1083080 of the Chromium browser.');

@@ -117,0 +120,0 @@ yargs.example('$0 install firefox', 'Install the latest available build of the Firefox browser.');

@@ -16,2 +16,3 @@ /**

*/
import * as chromeHeadlessShell from './chrome-headless-shell.js';
import * as chrome from './chrome.js';

@@ -25,2 +26,3 @@ import * as chromedriver from './chromedriver.js';

chromedriver: typeof chromedriver.resolveDownloadUrl;
"chrome-headless-shell": typeof chromeHeadlessShell.resolveDownloadUrl;
chrome: typeof chrome.resolveDownloadUrl;

@@ -32,2 +34,3 @@ chromium: typeof chromium.resolveDownloadUrl;

chromedriver: typeof chromedriver.resolveDownloadPath;
"chrome-headless-shell": typeof chromeHeadlessShell.resolveDownloadPath;
chrome: typeof chrome.resolveDownloadPath;

@@ -39,2 +42,3 @@ chromium: typeof chromium.resolveDownloadPath;

chromedriver: typeof chromedriver.relativeExecutablePath;
"chrome-headless-shell": typeof chromeHeadlessShell.relativeExecutablePath;
chrome: typeof chrome.relativeExecutablePath;

@@ -41,0 +45,0 @@ chromium: typeof chromium.relativeExecutablePath;

@@ -16,2 +16,3 @@ /**

*/
import * as chromeHeadlessShell from './chrome-headless-shell.js';
import * as chrome from './chrome.js';

@@ -24,2 +25,3 @@ import * as chromedriver from './chromedriver.js';

[Browser.CHROMEDRIVER]: chromedriver.resolveDownloadUrl,
[Browser.CHROMEHEADLESSSHELL]: chromeHeadlessShell.resolveDownloadUrl,
[Browser.CHROME]: chrome.resolveDownloadUrl,

@@ -31,2 +33,3 @@ [Browser.CHROMIUM]: chromium.resolveDownloadUrl,

[Browser.CHROMEDRIVER]: chromedriver.resolveDownloadPath,
[Browser.CHROMEHEADLESSSHELL]: chromeHeadlessShell.resolveDownloadPath,
[Browser.CHROME]: chrome.resolveDownloadPath,

@@ -38,2 +41,3 @@ [Browser.CHROMIUM]: chromium.resolveDownloadPath,

[Browser.CHROMEDRIVER]: chromedriver.relativeExecutablePath,
[Browser.CHROMEHEADLESSSHELL]: chromeHeadlessShell.relativeExecutablePath,
[Browser.CHROME]: chrome.relativeExecutablePath,

@@ -98,2 +102,21 @@ [Browser.CHROMIUM]: chromium.relativeExecutablePath,

}
case Browser.CHROMEHEADLESSSHELL: {
switch (tag) {
case BrowserTag.LATEST:
case BrowserTag.CANARY:
return await chromeHeadlessShell.resolveBuildId(ChromeReleaseChannel.CANARY);
case BrowserTag.BETA:
return await chromeHeadlessShell.resolveBuildId(ChromeReleaseChannel.BETA);
case BrowserTag.DEV:
return await chromeHeadlessShell.resolveBuildId(ChromeReleaseChannel.DEV);
case BrowserTag.STABLE:
return await chromeHeadlessShell.resolveBuildId(ChromeReleaseChannel.STABLE);
default:
const result = await chromeHeadlessShell.resolveBuildId(tag);
if (result) {
return result;
}
}
return tag;
}
case Browser.CHROMIUM:

@@ -131,2 +154,3 @@ switch (tag) {

case Browser.CHROMEDRIVER:
case Browser.CHROMEHEADLESSSHELL:
case Browser.FIREFOX:

@@ -133,0 +157,0 @@ case Browser.CHROMIUM:

@@ -25,2 +25,3 @@ /**

CHROME = "chrome",
CHROMEHEADLESSSHELL = "chrome-headless-shell",
CHROMIUM = "chromium",

@@ -27,0 +28,0 @@ FIREFOX = "firefox",

@@ -26,2 +26,3 @@ /**

Browser["CHROME"] = "chrome";
Browser["CHROMEHEADLESSSHELL"] = "chrome-headless-shell";
Browser["CHROMIUM"] = "chromium";

@@ -28,0 +29,0 @@ Browser["FIREFOX"] = "firefox";

@@ -86,2 +86,5 @@ /**

yargs.example('$0 install chromedriver@115.0.5790', 'Install the latest available patch (115.0.5790.X) build for ChromeDriver.');
yargs.example('$0 install chrome-headless-shell', 'Install the latest available chrome-headless-shell build.');
yargs.example('$0 install chrome-headless-shell@beta', 'Install the latest available chrome-headless-shell build corresponding to the Beta channel.');
yargs.example('$0 install chrome-headless-shell@118', 'Install the latest available chrome-headless-shell 118 build.');
yargs.example('$0 install chromium@1083080', 'Install the revision 1083080 of the Chromium browser.');

@@ -88,0 +91,0 @@ yargs.example('$0 install firefox', 'Install the latest available build of the Firefox browser.');

2

package.json
{
"name": "@puppeteer/browsers",
"version": "1.6.0",
"version": "1.7.0",
"description": "Download and launch browsers",

@@ -5,0 +5,0 @@ "scripts": {

@@ -17,2 +17,3 @@ /**

import * as chromeHeadlessShell from './chrome-headless-shell.js';
import * as chrome from './chrome.js';

@@ -34,2 +35,3 @@ import * as chromedriver from './chromedriver.js';

[Browser.CHROMEDRIVER]: chromedriver.resolveDownloadUrl,
[Browser.CHROMEHEADLESSSHELL]: chromeHeadlessShell.resolveDownloadUrl,
[Browser.CHROME]: chrome.resolveDownloadUrl,

@@ -42,2 +44,3 @@ [Browser.CHROMIUM]: chromium.resolveDownloadUrl,

[Browser.CHROMEDRIVER]: chromedriver.resolveDownloadPath,
[Browser.CHROMEHEADLESSSHELL]: chromeHeadlessShell.resolveDownloadPath,
[Browser.CHROME]: chrome.resolveDownloadPath,

@@ -50,2 +53,3 @@ [Browser.CHROMIUM]: chromium.resolveDownloadPath,

[Browser.CHROMEDRIVER]: chromedriver.relativeExecutablePath,
[Browser.CHROMEHEADLESSSHELL]: chromeHeadlessShell.relativeExecutablePath,
[Browser.CHROME]: chrome.relativeExecutablePath,

@@ -118,2 +122,29 @@ [Browser.CHROMIUM]: chromium.relativeExecutablePath,

}
case Browser.CHROMEHEADLESSSHELL: {
switch (tag) {
case BrowserTag.LATEST:
case BrowserTag.CANARY:
return await chromeHeadlessShell.resolveBuildId(
ChromeReleaseChannel.CANARY
);
case BrowserTag.BETA:
return await chromeHeadlessShell.resolveBuildId(
ChromeReleaseChannel.BETA
);
case BrowserTag.DEV:
return await chromeHeadlessShell.resolveBuildId(
ChromeReleaseChannel.DEV
);
case BrowserTag.STABLE:
return await chromeHeadlessShell.resolveBuildId(
ChromeReleaseChannel.STABLE
);
default:
const result = await chromeHeadlessShell.resolveBuildId(tag);
if (result) {
return result;
}
}
return tag;
}
case Browser.CHROMIUM:

@@ -162,2 +193,3 @@ switch (tag as BrowserTag) {

case Browser.CHROMEDRIVER:
case Browser.CHROMEHEADLESSSHELL:
case Browser.FIREFOX:

@@ -164,0 +196,0 @@ case Browser.CHROMIUM:

@@ -27,2 +27,3 @@ /**

CHROME = 'chrome',
CHROMEHEADLESSSHELL = 'chrome-headless-shell',
CHROMIUM = 'chromium',

@@ -29,0 +30,0 @@ FIREFOX = 'firefox',

@@ -156,2 +156,14 @@ /**

yargs.example(
'$0 install chrome-headless-shell',
'Install the latest available chrome-headless-shell build.'
);
yargs.example(
'$0 install chrome-headless-shell@beta',
'Install the latest available chrome-headless-shell build corresponding to the Beta channel.'
);
yargs.example(
'$0 install chrome-headless-shell@118',
'Install the latest available chrome-headless-shell 118 build.'
);
yargs.example(
'$0 install chromium@1083080',

@@ -158,0 +170,0 @@ 'Install the revision 1083080 of the Chromium browser.'

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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