Comparing version 1.2.12 to 1.2.13
@@ -345,1 +345,19 @@ 'use strict'; | ||
}; | ||
// For 'rsa-compat' module only | ||
// PLEASE do not use these sync methods, they are deprecated | ||
Keypairs._importSync = function (opts) { | ||
if ('RSA' === opts.jwk.kty) { | ||
return Rasha.importSync(opts); | ||
} else { | ||
return Eckles.importSync(opts); | ||
} | ||
}; | ||
// PLEASE do not use these, they are deprecated | ||
Keypairs._exportSync = function (opts) { | ||
if ('RSA' === opts.jwk.kty) { | ||
return Rasha.exportSync(opts); | ||
} else { | ||
return Eckles.exportSync(opts); | ||
} | ||
}; |
{ | ||
"name": "keypairs", | ||
"version": "1.2.12", | ||
"description": "Lightweight RSA/ECDSA keypair generation and JWK <-> PEM", | ||
"version": "1.2.13", | ||
"description": "Lightweight RSA/ECDSA keypair generation and JWK <-> PEM using node's native RSA and ECDSA support", | ||
"main": "keypairs.js", | ||
@@ -24,3 +24,7 @@ "files": [ | ||
"PEM", | ||
"JWK" | ||
"JWK", | ||
"keypair", | ||
"crypto", | ||
"sign", | ||
"verify" | ||
], | ||
@@ -27,0 +31,0 @@ "author": "AJ ONeal <coolaj86@gmail.com> (https://coolaj86.com/)", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18616
335