revojs 0.0.51 → 0.0.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -573,7 +573,10 @@ const createRuntime = async () => {
573
573
  if (content) {
574
574
  if (path.endsWith(".png")) {
575
575
  const [_, base64] = content.split(",");
576
- content = Buffer.from(base64, "base64url");
576
+ const binary = atob(base64.replace(/-/g, "+").replace(/_/g, "/"));
577
+ const bytes = new Uint8Array(binary.length);
578
+ for (let index = 0; index < binary.length; index++) bytes[index] = binary.charCodeAt(index);
579
+ content = bytes;
577
580
  }
578
581
  }
579
582
  response.headers.set("Content-Type", mimeType(path));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "revojs",
3
- "version": "0.0.51",
3
+ "version": "0.0.53",
4
4
  "type": "module",
5
5
  "repository": "coverbase/revojs",
6
6
  "license": "MIT",