Skip to content

Commit fe9dbab

Browse files
committed
chore: Updated deps
1 parent ba5f293 commit fe9dbab

File tree

3 files changed

+349
-255
lines changed

3 files changed

+349
-255
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@
3737
"test": "jest --passWithNoTests"
3838
},
3939
"dependencies": {
40+
"canvas": "^3.1.0",
4041
"node-addon-api": "^8.3.0",
4142
"node-gyp": "^11.0.0",
42-
"pdfjs-dist": "3.11.174"
43+
"pdfjs-dist": "4.10.38"
4344
},
4445
"devDependencies": {
4546
"@jest/globals": "^29.7.0",

src/pdf-to-png.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import * as Canvas from 'canvas'
55
import { readFileSync } from 'node:fs'
66
import { dirname, join } from 'node:path'
7-
import { getDocument } from 'pdfjs-dist/legacy/build/pdf'
7+
import { getDocument } from 'pdfjs-dist'
88

99
const PDFJS_DIR = dirname(require.resolve('pdfjs-dist'))
1010
const C_MAP_URL = join(PDFJS_DIR, '../cmaps/')

0 commit comments

Comments
 (0)