diff --git a/package-lock.json b/package-lock.json index 9593946..a20506f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "vue-pdf", - "version": "4.2.0", + "version": "5.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -35,21 +35,21 @@ "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" }, "json5": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-1.0.1.tgz", - "integrity": "sha512-aKS4WQjPenRxiQsC93MNfjx+nbF4PAdYzmd/1JIj8HYzqfbu86beTuNgXDzPknWk0n0uARlyewZo4s++ES36Ow==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", + "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", "requires": { - "minimist": "^1.2.0" + "minimist": "^1.2.5" } }, "loader-utils": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-1.4.0.tgz", - "integrity": "sha512-qH0WSMBtn/oHuwjy/NucEgbx5dbxxnxup9s4PVXJUDHZBQY+s0NWA9rJf53RBnQZxfch7euUui7hpoAPvALZdA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/loader-utils/-/loader-utils-2.0.0.tgz", + "integrity": "sha512-rP4F0h2RaWSvPEkD7BLDFQnvSf+nK+wr3ESUjNTyAGobqrijmW92zc+SO6d4p4B1wh7+B/Jg1mkQe5NYUEHtHQ==", "requires": { "big.js": "^5.2.2", "emojis-list": "^3.0.0", - "json5": "^1.0.1" + "json5": "^2.1.2" } }, "minimist": { @@ -58,9 +58,9 @@ "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" }, "pdfjs-dist": { - "version": "2.5.207", - "resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-2.5.207.tgz", - "integrity": "sha512-xGDUhnCYPfHy+unMXCLCJtlpZaaZ17Ew3WIL0tnSgKFUZXHAPD49GO9xScyszSsQMoutNDgRb+rfBXIaX/lJbw==" + "version": "2.9.359", + "resolved": "https://registry.npmjs.org/pdfjs-dist/-/pdfjs-dist-2.9.359.tgz", + "integrity": "sha512-P2nYtkacdlZaNNwrBLw1ZyMm0oE2yY/5S/GDCAmMJ7U4+ciL/D0mrlEC/o4HZZc/LNE3w8lEVzBEyVgEQlPVKQ==" }, "punycode": { "version": "2.1.1", diff --git a/package.json b/package.json index 8eb3e00..2b36642 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-pdf", - "version": "4.2.0", + "version": "5.0.0", "description": "vue.js pdf viewer", "main": "src/vuePdfNoSss.vue", "scripts": {}, @@ -21,10 +21,9 @@ "homepage": "https://github.com/FranckFreiburger/vue-pdf#readme", "dependencies": { "babel-plugin-syntax-dynamic-import": "^6.18.0", - "loader-utils": "^1.4.0", + "loader-utils": "^2.0.0", "raw-loader": "^4.0.1", - "worker-loader": "^2.0.0", - "pdfjs-dist": "^2.5.207 <2.8.0", + "pdfjs-dist": "^2.9.359", "vue-resize-sensor": "^2.0.0" }, "peerDependencies": {} diff --git a/src/CMapReaderFactory.js b/src/CMapReaderFactory.js index 90a16df..ca3a202 100644 --- a/src/CMapReaderFactory.js +++ b/src/CMapReaderFactory.js @@ -1,4 +1,4 @@ -import { CMapCompressionType } from 'pdfjs-dist/es5/build/pdf.js' +import { CMapCompressionType } from 'pdfjs-dist' // see https://github.com/mozilla/pdf.js/blob/628e70fbb5dea3b9066aa5c34cca70aaafef8db2/src/display/dom_utils.js#L64 diff --git a/src/pdfjsWrapper.js b/src/pdfjsWrapper.js index 67f2962..c76189b 100644 --- a/src/pdfjsWrapper.js +++ b/src/pdfjsWrapper.js @@ -1,4 +1,4 @@ -import { PDFLinkService } from 'pdfjs-dist/es5/web/pdf_viewer'; +import { PDFLinkService } from 'pdfjs-dist/web/pdf_viewer'; var pendingOperation = Promise.resolve(); diff --git a/src/vuePdfNoSss.vue b/src/vuePdfNoSss.vue index 2ef8370..4dfd8e7 100644 --- a/src/vuePdfNoSss.vue +++ b/src/vuePdfNoSss.vue @@ -1,24 +1,24 @@ \ No newline at end of file diff --git a/src/vuePdfNoSssNoWorker.vue b/src/vuePdfNoSssNoWorker.vue index 591b82b..c402420 100644 --- a/src/vuePdfNoSssNoWorker.vue +++ b/src/vuePdfNoSssNoWorker.vue @@ -1,17 +1,14 @@ \ No newline at end of file diff --git a/src/vuePdfSss.vue b/src/vuePdfSss.vue index c507b89..3750279 100644 --- a/src/vuePdfSss.vue +++ b/src/vuePdfSss.vue @@ -1,23 +1,19 @@ \ No newline at end of file