mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-18 14:18:23 +02:00
Tweak the Node.js version listed in "engines", to ensure that process.getBuiltinModule
is available
In order to use the PDF.js library in Node.js environments the `process.getBuiltinModule` functionality must be available, which was released in [version `20.16.0`](https://nodejs.org/en/blog/release/v20.16.0), however we've seen repeated issues filed by users on older `20.x` versions.
This commit is contained in:
parent
6cc37c8415
commit
18617eb792
3 changed files with 3 additions and 3 deletions
|
@ -2333,7 +2333,7 @@ function packageJson() {
|
|||
url: `git+${DIST_GIT_URL}`,
|
||||
},
|
||||
engines: {
|
||||
node: ">=20",
|
||||
node: ">=20.16.0",
|
||||
},
|
||||
scripts: {},
|
||||
};
|
||||
|
|
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -63,7 +63,7 @@
|
|||
"yargs": "^17.7.2"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
"node": ">=20.16.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@aashutoshrathi/word-wrap": {
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
"url": "git://github.com/mozilla/pdf.js.git"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
"node": ">=20.16.0"
|
||||
},
|
||||
"license": "Apache-2.0"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue