@oiij/js-pdf 0.0.11 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +1 -4
  2. package/package.json +7 -7
package/dist/index.mjs CHANGED
@@ -3,7 +3,6 @@ import { saveAs } from "file-saver";
3
3
  import JsZip from "jszip";
4
4
  import { nanoid } from "nanoid";
5
5
  import { GlobalWorkerOptions, getDocument, version } from "pdfjs-dist";
6
-
7
6
  //#region src/utils.ts
8
7
  GlobalWorkerOptions.workerSrc = `//unpkg.com/pdfjs-dist@${version}/build/pdf.worker.min.mjs`;
9
8
  function file2Buffer(file) {
@@ -199,7 +198,6 @@ async function readPdfFile(buffer) {
199
198
  canvases
200
199
  };
201
200
  }
202
-
203
201
  //#endregion
204
202
  //#region src/index.ts
205
203
  function setDrawStyle(pdf, data) {
@@ -301,6 +299,5 @@ async function generatePDF(data, options, globalStyle) {
301
299
  }
302
300
  return { pdf };
303
301
  }
304
-
305
302
  //#endregion
306
- export { canvas2Pdf, canvas2Zip, generatePDF, openPdf, readPdfFile };
303
+ export { canvas2Pdf, canvas2Zip, generatePDF, openPdf, readPdfFile };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@oiij/js-pdf",
3
3
  "type": "module",
4
- "version": "0.0.11",
4
+ "version": "0.0.12",
5
5
  "description": "A simple PDF library for JavaScript",
6
6
  "author": "oiij",
7
7
  "license": "MIT",
@@ -28,18 +28,18 @@
28
28
  "peerDependencies": {
29
29
  "@types/file-saver": "^2.0.7",
30
30
  "file-saver": "^2.0.5",
31
- "jspdf": "^4.0.0",
31
+ "jspdf": "^4.2.1",
32
32
  "jszip": "^3.10.1",
33
- "nanoid": "^5.1.6",
34
- "pdfjs-dist": "^5.4.530"
33
+ "nanoid": "^5.1.7",
34
+ "pdfjs-dist": "^5.5.207"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/file-saver": "^2.0.7",
38
38
  "file-saver": "^2.0.5",
39
- "jspdf": "^4.0.0",
39
+ "jspdf": "^4.2.1",
40
40
  "jszip": "^3.10.1",
41
- "nanoid": "^5.1.6",
42
- "pdfjs-dist": "^5.4.530"
41
+ "nanoid": "^5.1.7",
42
+ "pdfjs-dist": "^5.5.207"
43
43
  },
44
44
  "publishConfig": {
45
45
  "access": "public"