Comparing version 2.0.0 to 2.0.1
@@ -5,2 +5,5 @@ /** | ||
**/ | ||
const UTF8_DECODE_CHUNK_SIZE = 100; | ||
/** | ||
@@ -98,3 +101,11 @@ * Encode given input js string using utf8 format | ||
} | ||
return String.fromCodePoint(...codePoints); | ||
let result_string = ""; | ||
while(codePoints.length > 0) { | ||
const chunk = codePoints.splice(0, UTF8_DECODE_CHUNK_SIZE); | ||
result_string += String.fromCharCode(...chunk); | ||
} | ||
return result_string; | ||
} |
{ | ||
"name": "extes", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "A tiny library that extends native js with some handy tools", | ||
@@ -5,0 +5,0 @@ "main": "index.mjs", |
33501
1140