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.
package/dist/index.dev.js CHANGED
@@ -1564,7 +1564,9 @@ function resizeImageData(current, newWidth, newHeight, offsetX = 0, offsetY = 0)
1564
1564
 
1565
1565
  // src/ImageData/serialization.ts
1566
1566
  function base64EncodeArrayBuffer(buffer) {
1567
- const binary = String.fromCharCode(...new Uint8Array(buffer));
1567
+ const uint8 = new Uint8Array(buffer);
1568
+ const decoder = new TextDecoder("latin1");
1569
+ const binary = decoder.decode(uint8);
1568
1570
  return btoa(binary);
1569
1571
  }
1570
1572
  function base64DecodeArrayBuffer(encoded) {