Support Node.js 18 (#1542)

Recent Node.js seems to have dropped support for ripemd160.
Thus, properly check the availability of hashes before using them.

Also, add Node.js 18 to CI.
This commit is contained in:
Daniel Huigens
2022-06-29 20:59:38 +02:00
committed by GitHub
parent e69d8b24fc
commit 04e806e0b4
2 changed files with 14 additions and 23 deletions

View File

@@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
node-version: [12.x, 14.x, 16.x, 18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps: