pdf.js/package.json
Jonas Jenwald 26011c65f4 Add a DOMMatrix polyfill for Node.js environments (PR 13361 follow-up)
Given that `DOMMatrix` is, unsurprisingly, not supported in Node.js the `createMatrix` helper function in `src/display/pattern_helper.js` is most likely broken in Node.js environments. It will obviously try to fallback to the `DOMSVGFactory`, however that isn't intended for Node.js usage and errors will be thrown.

Rather than trying to implement a `NodeSVGFactory`, this patch takes the easier route of just adding a `DOMMatrix` polyfill using: https://www.npmjs.com/package/dommatrix
This isn't done only for simplicity, but it'll become necessary anyway since the `createMatrix` helper function is only temporary and will be removed in the future.
2021-06-10 21:08:23 +02:00

76 lines
2.2 KiB
JSON

{
"name": "pdf.js",
"version": "2.0.0",
"devDependencies": {
"@babel/core": "^7.14.3",
"@babel/plugin-proposal-logical-assignment-operators": "^7.14.2",
"@babel/plugin-transform-modules-commonjs": "^7.14.0",
"@babel/plugin-transform-runtime": "^7.14.3",
"@babel/preset-env": "^7.14.4",
"@babel/runtime": "^7.14.0",
"acorn": "^8.2.4",
"autoprefixer": "^10.2.6",
"babel-loader": "^8.2.2",
"canvas": "^2.8.0",
"core-js": "^3.13.1",
"cross-env": "^7.0.3",
"dommatrix": "^0.0.6",
"es-module-shims": "^0.10.5",
"escodegen": "^2.0.0",
"eslint": "^7.27.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-fetch-options": "^0.0.5",
"eslint-plugin-html": "^6.1.2",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-mozilla": "^2.10.0",
"eslint-plugin-no-unsanitized": "^3.1.5",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-sort-exports": "^0.4.0",
"eslint-plugin-unicorn": "^32.0.1",
"globals": "^13.9.0",
"gulp": "^4.0.2",
"gulp-postcss": "^9.0.0",
"gulp-rename": "^2.0.0",
"gulp-replace": "^1.1.3",
"gulp-zip": "^5.1.0",
"jasmine": "^3.7.0",
"jsdoc": "^3.6.7",
"jstransformer-markdown-it": "^2.1.0",
"merge-stream": "^2.0.0",
"mkdirp": "^1.0.4",
"needle": "^2.6.0",
"postcss": "^8.3.0",
"postcss-calc": "^8.0.0",
"prettier": "^2.3.0",
"puppeteer": "^10.0.0",
"rimraf": "^3.0.2",
"streamqueue": "^1.1.2",
"stylelint": "^13.13.1",
"stylelint-config-prettier": "^8.0.2",
"stylelint-prettier": "^1.2.0",
"systemjs": "^0.21.6",
"systemjs-plugin-babel": "^0.0.25",
"terser": "^5.7.0",
"through2": "^4.0.2",
"ttest": "^3.0.0",
"typescript": "^4.3.2",
"typogr": "^0.6.8",
"vinyl": "^2.2.1",
"vinyl-fs": "^3.0.3",
"web-streams-polyfill": "^3.0.3",
"webpack": "^5.38.1",
"webpack-stream": "^6.1.2",
"wintersmith": "^2.5.0",
"yargs": "^17.0.1"
},
"scripts": {
"postinstall": "cross-env PUPPETEER_PRODUCT=firefox node node_modules/puppeteer/install.js",
"test": "gulp npm-test"
},
"repository": {
"type": "git",
"url": "git://github.com/mozilla/pdf.js.git"
},
"license": "Apache-2.0"
}