Comparing version 0.3.1 to 0.3.2
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50844
1150