bson 6.9.0 → 6.9.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.
@@ -2259,9 +2259,15 @@ const NumberUtils = {
2259
2259
  source[offset] * 16777216);
2260
2260
  },
2261
2261
  getBigInt64LE(source, offset) {
2262
- const lo = NumberUtils.getUint32LE(source, offset);
2263
- const hi = NumberUtils.getUint32LE(source, offset + 4);
2264
- return (BigInt(hi) << BigInt(32)) + BigInt(lo);
2262
+ const hi = BigInt(source[offset + 4] +
2263
+ source[offset + 5] * 256 +
2264
+ source[offset + 6] * 65536 +
2265
+ (source[offset + 7] << 24));
2266
+ const lo = BigInt(source[offset] +
2267
+ source[offset + 1] * 256 +
2268
+ source[offset + 2] * 65536 +
2269
+ source[offset + 3] * 16777216);
2270
+ return (hi << BigInt(32)) + lo;
2265
2271
  },
2266
2272
  getFloat64LE: isBigEndian
2267
2273
  ? (source, offset) => {