In Gulp 4, which we use for years now, the `gulp.src()` function supports the `removeBOM` option to disable the default BOM stripping, so this commit uses that to get rid of our `vinyl-fs` dependency. Note that this actually makes disabling BOM stripping work again. It's currently broken because in `vinyl-fs` 3, that we already use since 2018 in commit 95de23e, the `stripBOM` option was renamed to `removeBOM`, so the current code doesn't actually disable BOM stripping which we now confirmed and sadly broke for years without anyone noticing. Most likely this is because the BOM is not required for UTF-8 documents, but while not necessary it also can't hurt to have it for tools that use it to determine if a document is UTF-8.
73 lines
2.0 KiB
JSON
73 lines
2.0 KiB
JSON
{
|
|
"name": "pdf.js",
|
|
"devDependencies": {
|
|
"@babel/core": "^7.22.9",
|
|
"@babel/plugin-transform-modules-commonjs": "^7.22.5",
|
|
"@babel/preset-env": "^7.22.9",
|
|
"@babel/runtime": "^7.22.6",
|
|
"@javascript-obfuscator/escodegen": "2.3.0",
|
|
"acorn": "^8.10.0",
|
|
"autoprefixer": "^10.4.14",
|
|
"babel-loader": "^9.1.3",
|
|
"caniuse-lite": "^1.0.30001517",
|
|
"canvas": "^2.11.2",
|
|
"core-js": "^3.31.1",
|
|
"cross-env": "^7.0.3",
|
|
"es-module-shims": "1.4.7",
|
|
"eslint": "^8.45.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": "^5.0.0",
|
|
"eslint-plugin-sort-exports": "^0.8.0",
|
|
"eslint-plugin-unicorn": "^48.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.1.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",
|
|
"pngjs": "^7.0.0",
|
|
"postcss": "^8.4.27",
|
|
"postcss-dir-pseudo-class": "^8.0.0",
|
|
"prettier": "^3.0.0",
|
|
"puppeteer": "^20.9.0",
|
|
"rimraf": "^3.0.2",
|
|
"streamqueue": "^1.1.2",
|
|
"stylelint": "^15.10.2",
|
|
"stylelint-prettier": "^4.0.0",
|
|
"terser": "^5.19.2",
|
|
"through2": "^4.0.2",
|
|
"ttest": "^4.0.0",
|
|
"typescript": "^5.1.6",
|
|
"typogr": "^0.6.8",
|
|
"vinyl": "^3.0.0",
|
|
"webpack": "^5.88.2",
|
|
"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"
|
|
}
|