-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
35 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:19-alpine | ||
FROM node:20-alpine | ||
|
||
WORKDIR /app | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const crypto = require("crypto"); | ||
|
||
/** | ||
* md4 algorithm is not available anymore in NodeJS 17+ (because of lib SSL 3). | ||
* In that case, silently replace md4 by md5 algorithm. | ||
*/ | ||
try { | ||
crypto.createHash('md4'); | ||
} catch (e) { | ||
console.warn('Crypto "md4" is not supported anymore by this Node version'); | ||
const origCreateHash = crypto.createHash; | ||
crypto.createHash = (alg, opts) => { | ||
return origCreateHash(alg === 'md4' ? 'md5' : alg, opts); | ||
}; | ||
} |