msgpackr 1.11.3 → 1.11.5

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.
@@ -1699,10 +1699,11 @@
1699
1699
  if (value >> BigInt(0x10000) === empty) {
1700
1700
  let mask = BigInt(0x10000000000000000) - BigInt(1); // literal would overflow
1701
1701
  let chunks = [];
1702
- do {
1702
+ while (true) {
1703
1703
  chunks.push(value & mask);
1704
+ if ((value >> BigInt(63)) === empty) break
1704
1705
  value >>= BigInt(64);
1705
- } while (value !== empty)
1706
+ }
1706
1707
 
1707
1708
  array = new Uint8Array(new BigUint64Array(chunks).buffer);
1708
1709
  array.reverse();
@@ -2019,6 +2020,7 @@
2019
2020
  // this means we are finished using our own buffer and we can write over it safely
2020
2021
  target = buffer;
2021
2022
  target.dataView || (target.dataView = new DataView(target.buffer, target.byteOffset, target.byteLength));
2023
+ targetView = target.dataView;
2022
2024
  position = 0;
2023
2025
  }
2024
2026
  set position (value) {