pixel-data-js 0.37.0 → 0.38.0

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.
@@ -4074,8 +4074,10 @@ function makeReusableImageData() {
4074
4074
  // src/ImageData/serialization.ts
4075
4075
  function base64EncodeArrayBuffer(buffer) {
4076
4076
  const uint8 = new Uint8Array(buffer);
4077
- const decoder = new TextDecoder("latin1");
4078
- const binary = decoder.decode(uint8);
4077
+ let binary = "";
4078
+ for (let i = 0; i < uint8.length; i++) {
4079
+ binary += String.fromCharCode(uint8[i]);
4080
+ }
4079
4081
  return btoa(binary);
4080
4082
  }
4081
4083
  function base64DecodeArrayBuffer(encoded) {