Commit 4d11f99d authored by AJ ONeal's avatar AJ ONeal

v2.0.3: show error message rather than throwing when attempting ursa

parent 0b5850cf
Pipeline #818 failed with stages
......@@ -20,7 +20,8 @@ module.exports = function (bitlen, exp) {
return require('./generate-privkey-ursa.js')(bitlen, exp);
} catch(e) {
if (e.code !== 'MODULE_NOT_FOUND') {
throw e;
console.error("[rsa-compat] Unexpected error when using 'ursa':");
console.error(e);
}
if (!oldver) {
oldver = true;
......
{
"name": "rsa-compat",
"version": "2.0.2",
"version": "2.0.3",
"engines" : {
"node" : ">=10.12"
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment