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.
@@ -4347,8 +4347,10 @@ function makeReusableImageData() {
4347
4347
  // src/ImageData/serialization.ts
4348
4348
  function base64EncodeArrayBuffer(buffer) {
4349
4349
  const uint8 = new Uint8Array(buffer);
4350
- const decoder = new TextDecoder("latin1");
4351
- const binary = decoder.decode(uint8);
4350
+ let binary = "";
4351
+ for (let i = 0; i < uint8.length; i++) {
4352
+ binary += String.fromCharCode(uint8[i]);
4353
+ }
4352
4354
  return btoa(binary);
4353
4355
  }
4354
4356
  function base64DecodeArrayBuffer(encoded) {