Comparing version
@@ -28,4 +28,11 @@ "use strict"; | ||
function decodeBase64(str) { | ||
if (atob && btoa) { | ||
return atob(str); | ||
if (atob) { | ||
const text = atob(str); | ||
const length = text.length; | ||
const bytes = new Uint8Array(length); | ||
for (let i = 0; i < length; i++) { | ||
bytes[i] = text.charCodeAt(i); | ||
} | ||
const decoder = new TextDecoder(); | ||
return decoder.decode(bytes); | ||
} | ||
@@ -32,0 +39,0 @@ else { |
{ | ||
"name": "hono", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "[炎] Ultrafast web framework for Cloudflare Workers.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
50844
0.51%1150
0.61%