@puppeteer/browsers
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -36,2 +36,3 @@ "use strict"; | ||
const path_1 = __importDefault(require("path")); | ||
const browser_data_js_1 = require("./browser-data/browser-data.js"); | ||
/** | ||
@@ -57,3 +58,5 @@ * The cache used by Puppeteer relies on the following structure: | ||
browserRoot(browser) { | ||
return path_1.default.join(__classPrivateFieldGet(this, _Cache_rootDir, "f"), 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); | ||
} | ||
@@ -60,0 +63,0 @@ installationDir(browser, platform, buildId) { |
@@ -30,2 +30,3 @@ /** | ||
import path from 'path'; | ||
import { Browser } from './browser-data/browser-data.js'; | ||
/** | ||
@@ -51,3 +52,5 @@ * The cache used by Puppeteer relies on the following structure: | ||
browserRoot(browser) { | ||
return path.join(__classPrivateFieldGet(this, _Cache_rootDir, "f"), 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); | ||
} | ||
@@ -54,0 +57,0 @@ installationDir(browser, platform, buildId) { |
{ | ||
"name": "@puppeteer/browsers", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"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
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
292977
4254