v1.2.3: remove stray warning

This commit is contained in:
AJ ONeal 2019-03-04 16:56:17 -07:00
parent b7508bba6c
commit acdad0065b
2 changed files with 2 additions and 3 deletions

View File

@ -138,8 +138,7 @@ ASN1.parse = function parseAsn1(buf, depth, ws) {
//console.warn(ws + '0x' + Enc.numToHex(asn1.type), index, 'len:', asn1.length, asn1);
}
if (index !== (2 + asn1.lengthSize + asn1.length)) {
console.warn('index:', index, 'length:', (2 + asn1.lengthSize + asn1.length));
throw new Error("premature end-of-file");
throw new Error("premature end-of-file (" + 'index: ' + index + ' length: ' + (2 + asn1.lengthSize + asn1.length));
}
if (iters >= 15) { throw new Error(ASN1.ELOOP); }

View File

@ -1,6 +1,6 @@
{
"name": "rasha",
"version": "1.2.2",
"version": "1.2.3",
"description": "💯 PEM-to-JWK and JWK-to-PEM for RSA keys in a lightweight, zero-dependency library focused on perfect universal compatibility.",
"homepage": "https://git.coolaj86.com/coolaj86/rasha.js",
"main": "index.js",