find-chrome-bin
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -5,2 +5,8 @@ # Change Log | ||
## 1.0.3 | ||
- Added support for new puppeteer BrowserFetcher API | ||
- Upgraded dependencies | ||
## 1.0.2 | ||
@@ -7,0 +13,0 @@ |
{ | ||
"name": "find-chrome-bin", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Finds local Chromium binary to use it with puppeteer-core", | ||
@@ -29,21 +29,21 @@ "keywords": [ | ||
"devDependencies": { | ||
"@logux/eslint-config": "^47.2.0", | ||
"@size-limit/preset-small-lib": "^7.0.8", | ||
"check-dts": "^0.6.7", | ||
"clean-publish": "^4.0.1", | ||
"@logux/eslint-config": "^49.0.0", | ||
"@size-limit/preset-small-lib": "^8.2.4", | ||
"check-dts": "^0.7.1", | ||
"clean-publish": "^4.1.1", | ||
"dual-publish": "^3.0.1", | ||
"eslint": "^8.18.0", | ||
"eslint": "^8.36.0", | ||
"eslint-config-standard": "^17.0.0", | ||
"eslint-plugin-import": "^2.26.0", | ||
"eslint-plugin-n": "^15.2.3", | ||
"eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-n": "^15.6.1", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-prefer-let": "^3.0.1", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"eslint-plugin-promise": "^6.1.1", | ||
"nanospy": "^0.5.0", | ||
"puppeteer-core": "^15.2.0", | ||
"puppeteer-core": "^19.8.0", | ||
"sdc-check": "^1.0.2", | ||
"size-limit": "^7.0.8", | ||
"tsm": "^2.2.1", | ||
"typescript": "^4.7.4", | ||
"uvu": "^0.5.4" | ||
"size-limit": "^8.2.4", | ||
"tsm": "^2.3.0", | ||
"typescript": "^5.0.2", | ||
"uvu": "^0.5.6" | ||
}, | ||
@@ -50,0 +50,0 @@ "eslintConfig": { |
@@ -45,2 +45,9 @@ const { execSync } = require('child_process') | ||
function createBrowserFetcher(puppeteer, path, host) { | ||
if (puppeteer.BrowserFetcher) { | ||
return new puppeteer.BrowserFetcher({ path, host }) | ||
} | ||
return puppeteer.createBrowserFetcher({ path, host }) | ||
} | ||
async function downloadChromium(puppeteer, path, revision) { | ||
@@ -53,6 +60,3 @@ try { | ||
let browserFetcher = puppeteer.createBrowserFetcher({ | ||
path, | ||
host: downloadHost | ||
}) | ||
let browserFetcher = createBrowserFetcher(puppeteer, path, downloadHost) | ||
@@ -59,0 +63,0 @@ let revisionInfo = browserFetcher.revisionInfo(revision) |
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
21714
18
445