mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 06:38:07 +02:00
Update all packages to the most recent version
To support this, the following changes have to be made as well: - Ignore `package-lock.json` since NPM creates it, but we should not have it in the repository. - Switch from `babel-preset-es2015` to `babel-preset-env` to resolve the deprecation warning in the test logs. The latter is more recent and flexible, but should be the same functionality-wise. - `transform` now needs to have the `utf-8` encoding option provided. If not given, it will call the callback with a `Buffer` object, which results in an unhandled promise rejection since what is returned from the callback is a string, not a `Buffer`.
This commit is contained in:
parent
3717757b39
commit
0733b54e10
4 changed files with 30 additions and 29 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -7,3 +7,4 @@ Makefile
|
|||
node_modules/
|
||||
examples/node/svgdump/
|
||||
examples/node/pdf2png/*.png
|
||||
package-lock.json
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue