Skip to content

Commit 6e5abc4

Browse files
committed
refactor: remove engines entry, update runtime node version check
1 parent 646493d commit 6e5abc4

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

lib/provider.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ import get from './helpers/_/get.js';
2626
import DPoPNonces from './helpers/dpop_nonces.js';
2727

2828
const minimal = 'Hydrogen';
29-
const { lts } = process.release;
30-
if (!lts || lts.charCodeAt(0) < minimal.charCodeAt(0)) {
31-
attention.warn('Unsupported Node.js runtime version.');
29+
const { lts: codename } = process.release || {};
30+
if (!codename || codename.charCodeAt(0) < minimal.charCodeAt(0)) {
31+
attention.warn('Unsupported runtime. Use Node.js v18.x LTS, or a later LTS release.');
3232
}
3333

3434
async function getInteraction(req, res) {

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,5 @@
9696
"sinon": "^15.0.0",
9797
"supertest": "^6.3.1",
9898
"timekeeper": "^2.2.0"
99-
},
100-
"engines": {
101-
"node": "18"
10299
}
103100
}

0 commit comments

Comments
 (0)