1
0
Fork 0
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:
Tim van der Meij 2017-09-29 23:34:54 +02:00
parent 3717757b39
commit 0733b54e10
No known key found for this signature in database
GPG key ID: 8C3FD2925A5F2762
4 changed files with 30 additions and 29 deletions

1
.gitignore vendored
View file

@ -7,3 +7,4 @@ Makefile
node_modules/
examples/node/svgdump/
examples/node/pdf2png/*.png
package-lock.json