msgpackr 1.8.2 → 1.8.3

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/test.js CHANGED
@@ -553,7 +553,8 @@
553
553
  if (string == null) {
554
554
  if (bundledStrings$1)
555
555
  return readStringJS(length)
556
- let extraction = extractStrings(position$1 - headerLength, srcEnd, src);
556
+ let byteOffset = src.byteOffset;
557
+ let extraction = extractStrings(position$1 - headerLength + byteOffset, srcEnd + byteOffset, src.buffer);
557
558
  if (typeof extraction == 'string') {
558
559
  string = extraction;
559
560
  strings = EMPTY_ARRAY;