mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
refactor: rename fetch->install, launcher->launch (#9985)
This commit is contained in:
@@ -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), {
|
||||
|
||||
Reference in New Issue
Block a user