Skip to content

Commit

Permalink
refactor: remove engines entry, update runtime node version check
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Jan 23, 2023
1 parent 646493d commit 6e5abc4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ import get from './helpers/_/get.js';
import DPoPNonces from './helpers/dpop_nonces.js';

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

async function getInteraction(req, res) {
Expand Down
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,5 @@
"sinon": "^15.0.0",
"supertest": "^6.3.1",
"timekeeper": "^2.2.0"
},
"engines": {
"node": "18"
}
}

0 comments on commit 6e5abc4

Please sign in to comment.