@puppeteer/browsers
Advanced tools
Comparing version 0.5.0 to 1.0.0
@@ -57,5 +57,3 @@ "use strict"; | ||
browserRoot(browser) { | ||
// Chromium is a special case for backward compatibility: we install it in | ||
// the Chrome folder so that Puppeteer can find it. | ||
return path_1.default.join(__classPrivateFieldGet(this, _Cache_rootDir, "f"), browser === browser_data_js_1.Browser.CHROMIUM ? browser_data_js_1.Browser.CHROME : browser); | ||
return path_1.default.join(__classPrivateFieldGet(this, _Cache_rootDir, "f"), browser); | ||
} | ||
@@ -62,0 +60,0 @@ installationDir(browser, platform, buildId) { |
@@ -63,2 +63,4 @@ "use strict"; | ||
function httpRequest(url, method, response, keepAlive = true) { | ||
var _a; | ||
var _b; | ||
const options = { | ||
@@ -80,2 +82,4 @@ protocol: url.protocol, | ||
options.port = proxy.port; | ||
(_a = options.headers) !== null && _a !== void 0 ? _a : (options.headers = {}); | ||
(_b = options.headers)['Host'] || (_b['Host'] = url.host); | ||
} | ||
@@ -82,0 +86,0 @@ else { |
@@ -118,3 +118,3 @@ "use strict"; | ||
case 'SIGHUP': | ||
this.close(); | ||
void this.close(); | ||
break; | ||
@@ -121,0 +121,0 @@ } |
@@ -20,3 +20,3 @@ #!/usr/bin/env node | ||
const CLI_js_1 = require("./CLI.js"); | ||
new CLI_js_1.CLI().run(process.argv); | ||
void new CLI_js_1.CLI().run(process.argv); | ||
//# sourceMappingURL=main-cli.js.map |
@@ -51,5 +51,3 @@ /** | ||
browserRoot(browser) { | ||
// Chromium is a special case for backward compatibility: we install it in | ||
// the Chrome folder so that Puppeteer can find it. | ||
return path.join(__classPrivateFieldGet(this, _Cache_rootDir, "f"), browser === Browser.CHROMIUM ? Browser.CHROME : browser); | ||
return path.join(__classPrivateFieldGet(this, _Cache_rootDir, "f"), browser); | ||
} | ||
@@ -56,0 +54,0 @@ installationDir(browser, platform, buildId) { |
@@ -33,2 +33,4 @@ /** | ||
export function httpRequest(url, method, response, keepAlive = true) { | ||
var _a; | ||
var _b; | ||
const options = { | ||
@@ -50,2 +52,4 @@ protocol: url.protocol, | ||
options.port = proxy.port; | ||
(_a = options.headers) !== null && _a !== void 0 ? _a : (options.headers = {}); | ||
(_b = options.headers)['Host'] || (_b['Host'] = url.host); | ||
} | ||
@@ -52,0 +56,0 @@ else { |
@@ -109,3 +109,3 @@ /** | ||
case 'SIGHUP': | ||
this.close(); | ||
void this.close(); | ||
break; | ||
@@ -112,0 +112,0 @@ } |
@@ -18,3 +18,3 @@ #!/usr/bin/env node | ||
import { CLI } from './CLI.js'; | ||
new CLI().run(process.argv); | ||
void new CLI().run(process.argv); | ||
//# sourceMappingURL=main-cli.js.map |
{ | ||
"name": "@puppeteer/browsers", | ||
"version": "0.5.0", | ||
"version": "1.0.0", | ||
"description": "Download and launch browsers", | ||
@@ -95,3 +95,3 @@ "scripts": { | ||
"engines": { | ||
"node": ">=14.1.0" | ||
"node": ">=16.0.0" | ||
}, | ||
@@ -98,0 +98,0 @@ "files": [ |
@@ -9,3 +9,3 @@ # @puppeteer/browsers | ||
```sh | ||
```bash | ||
npx @puppeteer/browsers --help | ||
@@ -16,3 +16,3 @@ ``` | ||
```sh | ||
```bash | ||
npx @puppeteer/browsers --help # help for all commands | ||
@@ -19,0 +19,0 @@ npx @puppeteer/browsers install --help # help for the install command |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
339911
5115
1
44
2
2
1
17