|
35 | 35 | "codemirror": "~5.49.2", |
36 | 36 | "eslint": "^7.8.1", |
37 | 37 | "gh-pages": "^3.1.0", |
38 | | - "iconv-lite": "^0.5.0", |
39 | 38 | "jest": "^29.4.3", |
40 | 39 | "jest-environment-jsdom": "^29.4.3", |
41 | 40 | "jest-image-snapshot": "^6.1.0", |
42 | 41 | "markdown": "~0.5.0", |
43 | | - "pdfjs-dist": "^2.4.456", |
| 42 | + "pdfjs-dist": "^2.14.305", |
44 | 43 | "prettier": "1.19.1", |
45 | 44 | "pug": "^2.0.4", |
46 | 45 | "rollup": "^1.27.0", |
|
49 | 48 | }, |
50 | 49 | "dependencies": { |
51 | 50 | "crypto-js": "^4.2.0", |
52 | | - "fontkit": "^1.8.1", |
| 51 | + "fontkit": "^2.0.4", |
53 | 52 | "jpeg-exif": "^1.1.4", |
54 | | - "linebreak": "^1.0.2", |
| 53 | + "linebreak": "^1.1.0", |
55 | 54 | "png-js": "^1.0.0" |
56 | 55 | }, |
57 | 56 | "scripts": { |
58 | 57 | "prepublishOnly": "npm run build", |
59 | 58 | "build": "rollup -c && npm run build-standalone", |
60 | | - "build-standalone": "browserify --standalone PDFDocument --ignore crypto --ignore iconv-lite js/pdfkit.js > js/pdfkit.standalone.js", |
| 59 | + "build-standalone": "browserify --standalone PDFDocument --ignore crypto js/pdfkit.js > js/pdfkit.standalone.js", |
61 | 60 | "browserify-example": "browserify examples/browserify/browser.js > examples/browserify/bundle.js", |
62 | 61 | "pdf-guide": "node docs/generate.js", |
63 | 62 | "website": "node docs/generate_website.js", |
64 | 63 | "publish-website": "node docs/publish_website.js", |
65 | 64 | "docs": "npm run pdf-guide && npm run website && npm run browserify-example", |
66 | 65 | "lint": "eslint {lib,tests}/**/*.js", |
67 | 66 | "prettier": "prettier {lib,tests,examples,docs}/**/*.js", |
68 | | - "test": "jest -i", |
69 | | - "test:visual": "jest visual/ -i", |
70 | | - "test:unit": "jest unit/" |
| 67 | + "test": "jest -i --env=node", |
| 68 | + "test:visual": "jest visual/ -i --env=node", |
| 69 | + "test:unit": "jest unit/ --env=node" |
71 | 70 | }, |
72 | 71 | "main": "js/pdfkit.js", |
73 | 72 | "module": "js/pdfkit.es.js", |
|
0 commit comments