bireader 4.0.3 → 4.0.4

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.
@@ -7520,10 +7520,10 @@ declare class BiBaseAsync<DataType, alwaysBigInt> {
7520
7520
  * Note: Errors on strict mode.
7521
7521
  *
7522
7522
  * @param {DataType} data - ``Uint8Array`` or ``Buffer`` to replace in data
7523
- * @param {boolean} consume - Move current byte position to end of data (default false)
7524
7523
  * @param {number} offset - Offset to add it at (defaults to current position)
7524
+ * @param {boolean} consume - Move current byte position to end of data (default false)
7525
7525
  */
7526
- overwrite(data: DataType, consume?: boolean, offset?: number): Promise<ReturnMapping<DataType>>;
7526
+ overwrite(data: DataType, offset?: number, consume?: boolean): Promise<ReturnMapping<DataType>>;
7527
7527
  /**
7528
7528
  * Returns part of data from current byte position to end of data unless supplied.
7529
7529
  *
package/dist/cjs/index.js CHANGED
@@ -13591,10 +13591,10 @@ class BiBaseAsync {
13591
13591
  * Note: Errors on strict mode.
13592
13592
  *
13593
13593
  * @param {DataType} data - ``Uint8Array`` or ``Buffer`` to replace in data
13594
- * @param {boolean} consume - Move current byte position to end of data (default false)
13595
13594
  * @param {number} offset - Offset to add it at (defaults to current position)
13595
+ * @param {boolean} consume - Move current byte position to end of data (default false)
13596
13596
  */
13597
- async overwrite(data, consume = false, offset = __classPrivateFieldGet(this, _BiBaseAsync_offset, "f")) {
13597
+ async overwrite(data, offset = __classPrivateFieldGet(this, _BiBaseAsync_offset, "f"), consume = false) {
13598
13598
  return await this.replace(data, offset, consume);
13599
13599
  }
13600
13600
  ;