ca620e4cc9
This commit makes the following required changes: - Replace custom cache trimming logic in favor of the (per our request) newly added `trimCache` method in Puppeteer. Not only does this greatly simplify our code and prevents having to import Puppeteer internals, it's also necessary because Puppeteer 20 removed the `BrowserFetcher` API in favor of the new separate `@puppeteer/browsers` package. - Start browsers in series instead of in parallel. Parallel browser starts broke since Puppetter 19.1.0 and it turns out that it has never been supported officially, so it worked more-or-less by accident. Starting browsers in series is the supported way, is almost equally fast and ensures that we avoid any race conditions during startup. Finally, it also allows us to remove the `browserPromise` state on our session objects. Fixes #15865.
73 lines
2.0 KiB
JSON
73 lines
2.0 KiB
JSON
{
|
|
"name": "pdf.js",
|
|
"devDependencies": {
|
|
"@babel/core": "^7.22.1",
|
|
"@babel/plugin-transform-modules-commonjs": "^7.21.5",
|
|
"@babel/preset-env": "^7.22.2",
|
|
"@babel/runtime": "^7.22.3",
|
|
"@javascript-obfuscator/escodegen": "2.3.0",
|
|
"acorn": "^8.8.2",
|
|
"autoprefixer": "^10.4.14",
|
|
"babel-loader": "^9.1.2",
|
|
"caniuse-lite": "^1.0.30001489",
|
|
"canvas": "^2.11.2",
|
|
"core-js": "^3.30.2",
|
|
"cross-env": "^7.0.3",
|
|
"es-module-shims": "1.4.7",
|
|
"eslint": "^8.41.0",
|
|
"eslint-config-prettier": "^8.8.0",
|
|
"eslint-plugin-fetch-options": "^0.0.5",
|
|
"eslint-plugin-html": "^7.1.0",
|
|
"eslint-plugin-import": "^2.27.5",
|
|
"eslint-plugin-json": "^3.1.0",
|
|
"eslint-plugin-mozilla": "^3.1.0",
|
|
"eslint-plugin-no-unsanitized": "^4.0.2",
|
|
"eslint-plugin-prettier": "^4.2.1",
|
|
"eslint-plugin-sort-exports": "^0.8.0",
|
|
"eslint-plugin-unicorn": "^47.0.0",
|
|
"globals": "^13.20.0",
|
|
"gulp": "^4.0.2",
|
|
"gulp-postcss": "^9.0.1",
|
|
"gulp-rename": "^2.0.0",
|
|
"gulp-replace": "^1.1.4",
|
|
"gulp-zip": "^5.1.0",
|
|
"jasmine": "^5.0.0",
|
|
"jsdoc": "^4.0.2",
|
|
"jstransformer-markdown-it": "^3.0.0",
|
|
"merge-stream": "^2.0.0",
|
|
"mkdirp": "^3.0.1",
|
|
"needle": "^3.2.0",
|
|
"path2d-polyfill": "^2.0.1",
|
|
"postcss": "^8.4.23",
|
|
"postcss-dir-pseudo-class": "^7.0.2",
|
|
"prettier": "^2.8.8",
|
|
"puppeteer": "^20.4.0",
|
|
"rimraf": "^3.0.2",
|
|
"streamqueue": "^1.1.2",
|
|
"stylelint": "^15.6.2",
|
|
"stylelint-prettier": "^3.0.0",
|
|
"terser": "^5.17.6",
|
|
"through2": "^4.0.2",
|
|
"ttest": "^4.0.0",
|
|
"typescript": "^5.0.4",
|
|
"typogr": "^0.6.8",
|
|
"vinyl": "^3.0.0",
|
|
"vinyl-fs": "^3.0.3",
|
|
"webpack": "^5.84.1",
|
|
"webpack-stream": "^7.0.0",
|
|
"wintersmith": "^2.5.0",
|
|
"yargs": "^17.7.2"
|
|
},
|
|
"scripts": {
|
|
"postinstall": "cross-env PUPPETEER_PRODUCT=firefox node node_modules/puppeteer/install.js"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/mozilla/pdf.js.git"
|
|
},
|
|
"engines": {
|
|
"node": ">=18"
|
|
},
|
|
"license": "Apache-2.0"
|
|
}
|