@puppeteer/browsers
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -61,2 +61,13 @@ "use strict"; | ||
}); | ||
yargs.option('platform', { | ||
type: 'string', | ||
desc: 'Platform that the binary needs to be compatible with.', | ||
choices: Object.values(types_js_1.BrowserPlatform), | ||
defaultDescription: 'Auto-detected by default.', | ||
}); | ||
yargs.option('path', { | ||
type: 'string', | ||
desc: 'Path where the browsers will be downloaded to and installed from', | ||
default: process.cwd(), | ||
}); | ||
}, async (argv) => { | ||
@@ -79,13 +90,2 @@ var _a, _b; | ||
}) | ||
.option('path', { | ||
type: 'string', | ||
desc: 'Path where the browsers will be downloaded to and installed from', | ||
default: process.cwd(), | ||
}) | ||
.option('platform', { | ||
type: 'string', | ||
desc: 'Platform that the binary needs to be compatible with.', | ||
choices: Object.values(types_js_1.BrowserPlatform), | ||
defaultDescription: 'Auto-detected by default.', | ||
}) | ||
.command('launch <browser>', 'Launch the specified browser', yargs => { | ||
@@ -102,2 +102,18 @@ yargs.positional('browser', { | ||
}); | ||
yargs.option('detached', { | ||
type: 'boolean', | ||
desc: 'Whether to detach the child process.', | ||
default: false, | ||
}); | ||
yargs.option('platform', { | ||
type: 'string', | ||
desc: 'Platform that the binary needs to be compatible with.', | ||
choices: Object.values(types_js_1.BrowserPlatform), | ||
defaultDescription: 'Auto-detected by default.', | ||
}); | ||
yargs.option('path', { | ||
type: 'string', | ||
desc: 'Path where the browsers will be downloaded to and installed from', | ||
default: process.cwd(), | ||
}); | ||
}, async (argv) => { | ||
@@ -117,18 +133,2 @@ var _a; | ||
}) | ||
.option('path', { | ||
type: 'string', | ||
desc: 'Path where the browsers will be downloaded to and installed from', | ||
default: process.cwd(), | ||
}) | ||
.option('detached', { | ||
type: 'boolean', | ||
desc: 'Whether to detach the child process.', | ||
default: false, | ||
}) | ||
.option('platform', { | ||
type: 'string', | ||
desc: 'Platform that the binary needs to be compatible with.', | ||
choices: Object.values(types_js_1.BrowserPlatform), | ||
defaultDescription: 'Auto-detected by default.', | ||
}) | ||
.demandCommand(1) | ||
@@ -146,4 +146,4 @@ .help() | ||
}, _CLI_toMegabytes = function _CLI_toMegabytes(bytes) { | ||
const mb = bytes / 1024 / 1024; | ||
return `${Math.round(mb * 10) / 10} Mb`; | ||
const mb = bytes / 1000 / 1000; | ||
return `${Math.round(mb * 10) / 10} MB`; | ||
}, _CLI_makeProgressCallback = function _CLI_makeProgressCallback(browser, buildId) { | ||
@@ -150,0 +150,0 @@ let progressBar; |
@@ -55,2 +55,13 @@ /** | ||
}); | ||
yargs.option('platform', { | ||
type: 'string', | ||
desc: 'Platform that the binary needs to be compatible with.', | ||
choices: Object.values(BrowserPlatform), | ||
defaultDescription: 'Auto-detected by default.', | ||
}); | ||
yargs.option('path', { | ||
type: 'string', | ||
desc: 'Path where the browsers will be downloaded to and installed from', | ||
default: process.cwd(), | ||
}); | ||
}, async (argv) => { | ||
@@ -73,13 +84,2 @@ var _a, _b; | ||
}) | ||
.option('path', { | ||
type: 'string', | ||
desc: 'Path where the browsers will be downloaded to and installed from', | ||
default: process.cwd(), | ||
}) | ||
.option('platform', { | ||
type: 'string', | ||
desc: 'Platform that the binary needs to be compatible with.', | ||
choices: Object.values(BrowserPlatform), | ||
defaultDescription: 'Auto-detected by default.', | ||
}) | ||
.command('launch <browser>', 'Launch the specified browser', yargs => { | ||
@@ -96,2 +96,18 @@ yargs.positional('browser', { | ||
}); | ||
yargs.option('detached', { | ||
type: 'boolean', | ||
desc: 'Whether to detach the child process.', | ||
default: false, | ||
}); | ||
yargs.option('platform', { | ||
type: 'string', | ||
desc: 'Platform that the binary needs to be compatible with.', | ||
choices: Object.values(BrowserPlatform), | ||
defaultDescription: 'Auto-detected by default.', | ||
}); | ||
yargs.option('path', { | ||
type: 'string', | ||
desc: 'Path where the browsers will be downloaded to and installed from', | ||
default: process.cwd(), | ||
}); | ||
}, async (argv) => { | ||
@@ -111,18 +127,2 @@ var _a; | ||
}) | ||
.option('path', { | ||
type: 'string', | ||
desc: 'Path where the browsers will be downloaded to and installed from', | ||
default: process.cwd(), | ||
}) | ||
.option('detached', { | ||
type: 'boolean', | ||
desc: 'Whether to detach the child process.', | ||
default: false, | ||
}) | ||
.option('platform', { | ||
type: 'string', | ||
desc: 'Platform that the binary needs to be compatible with.', | ||
choices: Object.values(BrowserPlatform), | ||
defaultDescription: 'Auto-detected by default.', | ||
}) | ||
.demandCommand(1) | ||
@@ -139,4 +139,4 @@ .help() | ||
}, _CLI_toMegabytes = function _CLI_toMegabytes(bytes) { | ||
const mb = bytes / 1024 / 1024; | ||
return `${Math.round(mb * 10) / 10} Mb`; | ||
const mb = bytes / 1000 / 1000; | ||
return `${Math.round(mb * 10) / 10} MB`; | ||
}, _CLI_makeProgressCallback = function _CLI_makeProgressCallback(browser, buildId) { | ||
@@ -143,0 +143,0 @@ let progressBar; |
{ | ||
"name": "@puppeteer/browsers", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Download and launch browsers", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
194333