pixel-data-js 0.11.0 → 0.11.1

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.
@@ -1710,7 +1710,9 @@ function resizeImageData(current, newWidth, newHeight, offsetX = 0, offsetY = 0)
1710
1710
 
1711
1711
  // src/ImageData/serialization.ts
1712
1712
  function base64EncodeArrayBuffer(buffer) {
1713
- const binary = String.fromCharCode(...new Uint8Array(buffer));
1713
+ const uint8 = new Uint8Array(buffer);
1714
+ const decoder = new TextDecoder("latin1");
1715
+ const binary = decoder.decode(uint8);
1714
1716
  return btoa(binary);
1715
1717
  }
1716
1718
  function base64DecodeArrayBuffer(encoded) {