bireader 3.1.5 → 3.1.6

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.d.ts CHANGED
@@ -33,9 +33,9 @@ type hexdumpOptions = {
33
33
  */
34
34
  startByte?: number;
35
35
  /**
36
- * Supress unicode character preview for even columns.
36
+ * Suppress unicode character preview for even columns.
37
37
  */
38
- supressUnicode?: boolean;
38
+ suppressUnicode?: boolean;
39
39
  /**
40
40
  * Returns the hex dump string instead of logging it.
41
41
  */
@@ -48,7 +48,7 @@ type hexdumpOptions = {
48
48
  * @param {hexdumpOptions?} options - hex dump options
49
49
  * @param {number?} options.length - number of bytes to log, default ``192`` or end of data
50
50
  * @param {number?} options.startByte - byte to start dump (default ``0``)
51
- * @param {boolean?} options.supressUnicode - Supress unicode character preview for even columns.
51
+ * @param {boolean?} options.suppressUnicode - Suppress unicode character preview for even columns.
52
52
  * @param {boolean?} options.returnString - Returns the hex dump string instead of logging it.
53
53
  */
54
54
  declare function hexdump(src: Uint8Array | Buffer, options?: hexdumpOptions): void | string;
@@ -403,7 +403,7 @@ declare class BiBase {
403
403
  * @param {hexdumpOptions?} options - hex dump options
404
404
  * @param {number?} options.length - number of bytes to log, default ``192`` or end of data
405
405
  * @param {number?} options.startByte - byte to start dump (default ``0``)
406
- * @param {boolean?} options.supressUnicode - Supress unicode character preview for even columns.
406
+ * @param {boolean?} options.suppressUnicode - Suppress unicode character preview for even columns.
407
407
  * @param {boolean?} options.returnString - Returns the hex dump string instead of logging it.
408
408
  */
409
409
  hexdump(options?: hexdumpOptions): void | string;
@@ -1784,7 +1784,7 @@ declare class BiBaseStreamer {
1784
1784
  * @param {hexdumpOptions?} options - hex dump options
1785
1785
  * @param {number?} options.length - number of bytes to log, default ``192`` or end of data
1786
1786
  * @param {number?} options.startByte - byte to start dump (default ``0``)
1787
- * @param {boolean?} options.supressUnicode - Supress unicode character preview for even columns.
1787
+ * @param {boolean?} options.suppressUnicode - Suppress unicode character preview for even columns.
1788
1788
  * @param {boolean?} options.returnString - Returns the hex dump string instead of logging it.
1789
1789
  */
1790
1790
  hexdump(options?: hexdumpOptions): void | string;
@@ -33,9 +33,9 @@ type hexdumpOptions = {
33
33
  */
34
34
  startByte?: number;
35
35
  /**
36
- * Supress unicode character preview for even columns.
36
+ * Suppress unicode character preview for even columns.
37
37
  */
38
- supressUnicode?: boolean;
38
+ suppressUnicode?: boolean;
39
39
  /**
40
40
  * Returns the hex dump string instead of logging it.
41
41
  */
@@ -48,7 +48,7 @@ type hexdumpOptions = {
48
48
  * @param {hexdumpOptions?} options - hex dump options
49
49
  * @param {number?} options.length - number of bytes to log, default ``192`` or end of data
50
50
  * @param {number?} options.startByte - byte to start dump (default ``0``)
51
- * @param {boolean?} options.supressUnicode - Supress unicode character preview for even columns.
51
+ * @param {boolean?} options.suppressUnicode - Suppress unicode character preview for even columns.
52
52
  * @param {boolean?} options.returnString - Returns the hex dump string instead of logging it.
53
53
  */
54
54
  declare function hexdump(src: Uint8Array | Buffer, options?: hexdumpOptions): void | string;
@@ -403,7 +403,7 @@ declare class BiBase {
403
403
  * @param {hexdumpOptions?} options - hex dump options
404
404
  * @param {number?} options.length - number of bytes to log, default ``192`` or end of data
405
405
  * @param {number?} options.startByte - byte to start dump (default ``0``)
406
- * @param {boolean?} options.supressUnicode - Supress unicode character preview for even columns.
406
+ * @param {boolean?} options.suppressUnicode - Suppress unicode character preview for even columns.
407
407
  * @param {boolean?} options.returnString - Returns the hex dump string instead of logging it.
408
408
  */
409
409
  hexdump(options?: hexdumpOptions): void | string;
@@ -1784,7 +1784,7 @@ declare class BiBaseStreamer {
1784
1784
  * @param {hexdumpOptions?} options - hex dump options
1785
1785
  * @param {number?} options.length - number of bytes to log, default ``192`` or end of data
1786
1786
  * @param {number?} options.startByte - byte to start dump (default ``0``)
1787
- * @param {boolean?} options.supressUnicode - Supress unicode character preview for even columns.
1787
+ * @param {boolean?} options.suppressUnicode - Suppress unicode character preview for even columns.
1788
1788
  * @param {boolean?} options.returnString - Returns the hex dump string instead of logging it.
1789
1789
  */
1790
1790
  hexdump(options?: hexdumpOptions): void | string;
package/dist/index.esm.js CHANGED
@@ -17,7 +17,7 @@ function arraybuffcheck(obj) {
17
17
  * @param {hexdumpOptions?} options - hex dump options
18
18
  * @param {number?} options.length - number of bytes to log, default ``192`` or end of data
19
19
  * @param {number?} options.startByte - byte to start dump (default ``0``)
20
- * @param {boolean?} options.supressUnicode - Supress unicode character preview for even columns.
20
+ * @param {boolean?} options.suppressUnicode - Suppress unicode character preview for even columns.
21
21
  * @param {boolean?} options.returnString - Returns the hex dump string instead of logging it.
22
22
  */
23
23
  function hexdump(src, options = {}) {
@@ -59,7 +59,7 @@ function _hexDump(data, options = {}, start, end) {
59
59
  value = value >>> 0;
60
60
  return value;
61
61
  }
62
- var supressUnicode = options && options.supressUnicode || false;
62
+ var suppressUnicode = options && options.suppressUnicode || false;
63
63
  const rows = [];
64
64
  var header = " 0 1 2 3 4 5 6 7 8 9 A B C D E F ";
65
65
  var ending = "0123456789ABCDEF";
@@ -83,7 +83,7 @@ function _hexDump(data, options = {}, start, end) {
83
83
  // Convert the byte to a character and add it to the result
84
84
  result += String.fromCharCode(byte);
85
85
  }
86
- else if (supressUnicode) {
86
+ else if (suppressUnicode) {
87
87
  result += '.';
88
88
  }
89
89
  else if (hex_check(byte, 1) == 0) {
@@ -2145,7 +2145,7 @@ class BiBase {
2145
2145
  * @param {hexdumpOptions?} options - hex dump options
2146
2146
  * @param {number?} options.length - number of bytes to log, default ``192`` or end of data
2147
2147
  * @param {number?} options.startByte - byte to start dump (default ``0``)
2148
- * @param {boolean?} options.supressUnicode - Supress unicode character preview for even columns.
2148
+ * @param {boolean?} options.suppressUnicode - Suppress unicode character preview for even columns.
2149
2149
  * @param {boolean?} options.returnString - Returns the hex dump string instead of logging it.
2150
2150
  */
2151
2151
  hexdump(options = {}) {
@@ -13961,7 +13961,7 @@ class BiBaseStreamer {
13961
13961
  * @param {hexdumpOptions?} options - hex dump options
13962
13962
  * @param {number?} options.length - number of bytes to log, default ``192`` or end of data
13963
13963
  * @param {number?} options.startByte - byte to start dump (default ``0``)
13964
- * @param {boolean?} options.supressUnicode - Supress unicode character preview for even columns.
13964
+ * @param {boolean?} options.suppressUnicode - Suppress unicode character preview for even columns.
13965
13965
  * @param {boolean?} options.returnString - Returns the hex dump string instead of logging it.
13966
13966
  */
13967
13967
  hexdump(options = {}) {