refactor: rename fetch->install, launcher->launch (#9985)

This commit is contained in:
Alex Rudenko
2023-04-06 13:23:28 +02:00
committed by GitHub
parent e7265c9aa9
commit 24bd05877d
12 changed files with 47 additions and 47 deletions

View File

@@ -19,7 +19,7 @@
* mirrors the structure of the download server.
*/
import {BrowserPlatform, fetch} from '@puppeteer/browsers';
import {BrowserPlatform, install} from '@puppeteer/browsers';
import path from 'path';
import fs from 'fs';
@@ -59,12 +59,12 @@ for (const version of Object.keys(versions)) {
continue;
}
const result = await fetch({
const result = await install({
browser,
buildId,
platform,
cacheDir: path.join(cacheDir, 'tmp'),
install: false,
unpack: false,
});
fs.mkdirSync(path.dirname(targetPath), {