bson 7.1.0 → 7.1.1

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/bson.d.ts CHANGED
@@ -1493,6 +1493,8 @@ export declare interface ObjectIdLike {
1493
1493
  export declare type OnDemand = {
1494
1494
  parseToElements: (this: void, bytes: Uint8Array, startOffset?: number) => Iterable<BSONElement>;
1495
1495
  BSONElement: BSONElement;
1496
+ ByteUtils: ByteUtils;
1497
+ NumberUtils: NumberUtils;
1496
1498
  };
1497
1499
 
1498
1500
  /**
@@ -4595,6 +4595,8 @@ function parseToElements(bytes, startOffset = 0) {
4595
4595
 
4596
4596
  const onDemand = Object.create(null);
4597
4597
  onDemand.parseToElements = parseToElements;
4598
+ onDemand.ByteUtils = ByteUtils;
4599
+ onDemand.NumberUtils = NumberUtils;
4598
4600
  Object.freeze(onDemand);
4599
4601
 
4600
4602
  const MAXSIZE = 1024 * 1024 * 17;