Browse Source

v1.2.4: typo fix in error message

tags/v1.2.4
AJ ONeal 2 months ago
parent
commit
57b27cb9d8
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      lib/asn1.js
  2. 1
    1
      package.json

+ 1
- 1
lib/asn1.js View File

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

+ 1
- 1
package.json View File

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

Loading…
Cancel
Save