v2.0.3: show error message rather than throwing when attempting ursa
This commit is contained in:
parent
0b5850cf6a
commit
4d11f99d88
|
@ -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;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "rsa-compat",
|
||||
"version": "2.0.2",
|
||||
"version": "2.0.3",
|
||||
"engines" : {
|
||||
"node" : ">=10.12"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue