bireader 3.1.12 → 3.1.14

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.esm.js CHANGED
@@ -10920,7 +10920,7 @@ function hexDump(ctx, options = {}) {
10920
10920
  if (start + (length || 0) > ctx.size) {
10921
10921
  throw new Error("Hexdump amount is outside of data size: " + (start + (length || 0)) + " of " + end);
10922
10922
  }
10923
- const data = ctx.read(startByte, length, false);
10923
+ const data = ctx.read(start, end - start, false);
10924
10924
  return _hexDump(data, options, start, end);
10925
10925
  }
10926
10926
  function AND(ctx, and_key, start, end, consume) {
@@ -12541,7 +12541,7 @@ class BiBaseStreamer {
12541
12541
  throw new Error('File read is greater than Node\'s max buffer size.');
12542
12542
  }
12543
12543
  if (end > this.size) {
12544
- if (this.strict) {
12544
+ if (this.strict == false) {
12545
12545
  this.extendArray(length);
12546
12546
  }
12547
12547
  else {