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.
package/lib/bson.rn.cjs CHANGED
@@ -2277,9 +2277,15 @@ const NumberUtils = {
2277
2277
  source[offset] * 16777216);
2278
2278
  },
2279
2279
  getBigInt64LE(source, offset) {
2280
- const lo = NumberUtils.getUint32LE(source, offset);
2281
- const hi = NumberUtils.getUint32LE(source, offset + 4);
2282
- return (BigInt(hi) << BigInt(32)) + BigInt(lo);
2280
+ const hi = BigInt(source[offset + 4] +
2281
+ source[offset + 5] * 256 +
2282
+ source[offset + 6] * 65536 +
2283
+ (source[offset + 7] << 24));
2284
+ const lo = BigInt(source[offset] +
2285
+ source[offset + 1] * 256 +
2286
+ source[offset + 2] * 65536 +
2287
+ source[offset + 3] * 16777216);
2288
+ return (hi << BigInt(32)) + lo;
2283
2289
  },
2284
2290
  getFloat64LE: isBigEndian
2285
2291
  ? (source, offset) => {