puppeteer-chromium-resolver
Advanced tools
Comparing version 19.2.0 to 19.3.0
@@ -119,2 +119,12 @@ const path = require('path'); | ||
const getPuppeteerVersion = () => { | ||
const version = Util.getPuppeteerVersion(); | ||
if (!version) { | ||
Util.output('Failed to get puppeteer version', true); | ||
return; | ||
} | ||
Util.output(`Puppeteer version: ${EC.magenta(version)}`); | ||
return version; | ||
}; | ||
const revisionHandler = (options) => { | ||
@@ -127,2 +137,4 @@ | ||
revisionInfo.puppeteerVersion = options.puppeteerVersion; | ||
// Chromium | ||
@@ -151,8 +163,2 @@ revisionInfo.executablePath = Util.formatPath(revisionInfo.executablePath); | ||
const version = Util.getPuppeteerVersion(); | ||
if (version) { | ||
revisionInfo.puppeteerVersion = version; | ||
Util.output(`Puppeteer version: ${EC.magenta(version)}`); | ||
} | ||
// save new stats | ||
@@ -227,2 +233,3 @@ saveStats(options, revisionInfo); | ||
options.revision = getChromiumRevision(options); | ||
options.puppeteerVersion = getPuppeteerVersion(); | ||
@@ -229,0 +236,0 @@ const localChromium = detectHandler(options); |
@@ -10,3 +10,2 @@ const http = require('http'); | ||
// console.log(puppeteer.PUPPETEER_REVISIONS); | ||
getPuppeteerChromiumRevision: () => { | ||
@@ -17,3 +16,3 @@ const revisions = puppeteer.PUPPETEER_REVISIONS; | ||
} | ||
return '1095492'; | ||
return '1108766'; | ||
}, | ||
@@ -20,0 +19,0 @@ |
{ | ||
"name": "puppeteer-chromium-resolver", | ||
"version": "19.2.0", | ||
"version": "19.3.0", | ||
"description": "Tool to resolve puppeteer and chromium faster, detect local installed chromium, download chromium with custom mirror host, cache chromium revision out of node_modules, test chromium headless being launchable.", | ||
@@ -13,2 +13,3 @@ "main": "lib/index.js", | ||
], | ||
"license": "MIT", | ||
"repository": { | ||
@@ -19,12 +20,12 @@ "type": "git", | ||
"dependencies": { | ||
"eight-colors": "^1.0.2", | ||
"eight-colors": "^1.0.3", | ||
"gauge": "^5.0.0", | ||
"puppeteer-core": "^19.7.1" | ||
"puppeteer-core": "^19.8.0" | ||
}, | ||
"devDependencies": { | ||
"eslint": "^8.34.0", | ||
"eslint": "^8.36.0", | ||
"eslint-config-plus": "^1.0.6", | ||
"mocha": "^10.2.0", | ||
"rimraf": "^4.1.2" | ||
"rimraf": "^4.4.1" | ||
} | ||
} |
@@ -172,5 +172,22 @@ | ||
``` | ||
- Debian (e.g. Ubuntu): error while loading shared libraries: libgobject-2.0.so.0: cannot open shared object file: No such file or directory | ||
```sh | ||
sudo apt-get install -y ca-certificates fonts-liberation libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils | ||
``` | ||
more [https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md](https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md) | ||
## Dependencies | ||
```sh | ||
nmls -p | ||
┌───────────────────────────────┬─────────┬─────────┬──────┬───────────┬────────┐ | ||
│ Name │ Version │ Size │ Deps │ Deps Size │ Nested │ | ||
├───────────────────────────────┼─────────┼─────────┼──────┼───────────┼────────┤ | ||
│ └ puppeteer-chromium-resolver │ 19.2.0 │ 25.4 KB │ 63 │ 11.4 MB │ 1 │ | ||
│ └ dependencies │ │ │ │ │ │ | ||
│ ├ eight-colors │ 1.0.2 │ 13.8 KB │ 0 │ 0 B │ 0 │ | ||
│ ├ gauge │ 5.0.0 │ 42.1 KB │ 11 │ 113.1 KB │ 0 │ | ||
│ └ puppeteer-core │ 19.7.1 │ 3.82 MB │ 49 │ 7.45 MB │ 1 │ | ||
└───────────────────────────────┴─────────┴─────────┴──────┴───────────┴────────┘ | ||
``` | ||
## CHANGELOG | ||
[CHANGELOG.md](CHANGELOG.md) |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
28094
525
192
2
Updatedeight-colors@^1.0.3
Updatedpuppeteer-core@^19.8.0