From 57b27cb9d8f25ce10c4d8cf82a13b19461a65f67 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 4 Mar 2019 17:02:44 -0700 Subject: [PATCH] v1.2.4: typo fix in error message --- lib/asn1.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/asn1.js b/lib/asn1.js index 7aad1aa..8c21de3 100644 --- a/lib/asn1.js +++ b/lib/asn1.js @@ -138,7 +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)) { - throw new Error("premature end-of-file (" + 'index: ' + index + ' length: ' + (2 + asn1.lengthSize + asn1.length)); + throw new Error("premature end-of-file (" + 'index: ' + index + ' length: ' + (2 + asn1.lengthSize + asn1.length) + ")"); } if (iters >= 15) { throw new Error(ASN1.ELOOP); } diff --git a/package.json b/package.json index bfc773c..5fae3ab 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rasha", - "version": "1.2.3", + "version": "1.2.4", "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",