diff options
author | dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> | 2021-07-31 04:01:22 +0300 |
---|---|---|
committer | npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com> | 2021-07-31 19:08:04 +0300 |
commit | 4c9581ce42c18000f3a90fb1dd059c452ed371dd (patch) | |
tree | d6a879aaed101b92fac24b71615cb5915f8f55e7 /pdfjs-get.js | |
parent | 1672f443f0c1b6885a810fa9a5b37b2cc68e0f01 (diff) |
Bump pdfjs-dist from 2.8.335 to 2.9.359
Bumps [pdfjs-dist](https://github.com/mozilla/pdfjs-dist) from 2.8.335 to 2.9.359.
- [Release notes](https://github.com/mozilla/pdfjs-dist/releases)
- [Commits](https://github.com/mozilla/pdfjs-dist/compare/v2.8.335...v2.9.359)
---
updated-dependencies:
- dependency-name: pdfjs-dist
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
Diffstat (limited to 'pdfjs-get.js')
-rw-r--r-- | pdfjs-get.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pdfjs-get.js b/pdfjs-get.js index 4f1c76d..110375b 100644 --- a/pdfjs-get.js +++ b/pdfjs-get.js @@ -3,16 +3,17 @@ const unzipper = require('unzipper') const request = require('request') const progress = require('request-progress') const cliProgress = require('cli-progress') +const npmPackage = require('./package.json') // Fetching pdf.js build release -const PDFJSversion = '2.7.570' +const PDFJSversion = npmPackage.dependencies['pdfjs-dist'].substr(1) console.info('Fetching pdfjs', PDFJSversion) // Init progress const pdfjsProgress = new cliProgress.SingleBar({}, cliProgress.Presets.shades_classic) pdfjsProgress.start(100, 0) -progress(request(`https://github.com/mozilla/pdf.js/releases/download/v${PDFJSversion}/pdfjs-${PDFJSversion}-es5-dist.zip`), { +progress(request(`https://github.com/mozilla/pdf.js/releases/download/v${PDFJSversion}/pdfjs-${PDFJSversion}-dist.zip`), { throttle: 50, delay: 0, }) |