bireader 3.1.12 → 3.1.13

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