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/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "vendor"
15
15
  ],
16
16
  "types": "bson.d.ts",
17
- "version": "7.1.0",
17
+ "version": "7.1.1",
18
18
  "author": {
19
19
  "name": "The MongoDB NodeJS Team",
20
20
  "email": "dbx-node@mongodb.com"
@@ -1,3 +1,5 @@
1
+ import { ByteUtils } from '../../utils/byte_utils';
2
+ import { NumberUtils } from '../../utils/number_utils';
1
3
  import { type BSONElement, parseToElements } from './parse_to_elements';
2
4
  /**
3
5
  * @experimental
@@ -9,6 +11,10 @@ export type OnDemand = {
9
11
  parseToElements: (this: void, bytes: Uint8Array, startOffset?: number) => Iterable<BSONElement>;
10
12
  // Types
11
13
  BSONElement: BSONElement;
14
+
15
+ // Utils
16
+ ByteUtils: ByteUtils;
17
+ NumberUtils: NumberUtils;
12
18
  };
13
19
 
14
20
  /**
@@ -18,6 +24,8 @@ export type OnDemand = {
18
24
  const onDemand: OnDemand = Object.create(null);
19
25
 
20
26
  onDemand.parseToElements = parseToElements;
27
+ onDemand.ByteUtils = ByteUtils;
28
+ onDemand.NumberUtils = NumberUtils;
21
29
 
22
30
  Object.freeze(onDemand);
23
31