bson 6.7.0 → 6.7.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
@@ -2247,9 +2247,15 @@ const NumberUtils = {
2247
2247
  source[offset] * 16777216);
2248
2248
  },
2249
2249
  getBigInt64LE(source, offset) {
2250
- const lo = NumberUtils.getUint32LE(source, offset);
2251
- const hi = NumberUtils.getUint32LE(source, offset + 4);
2252
- return (BigInt(hi) << BigInt(32)) + BigInt(lo);
2250
+ const hi = BigInt(source[offset + 4] +
2251
+ source[offset + 5] * 256 +
2252
+ source[offset + 6] * 65536 +
2253
+ (source[offset + 7] << 24));
2254
+ const lo = BigInt(source[offset] +
2255
+ source[offset + 1] * 256 +
2256
+ source[offset + 2] * 65536 +
2257
+ source[offset + 3] * 16777216);
2258
+ return (hi << BigInt(32)) + lo;
2253
2259
  },
2254
2260
  getFloat64LE: isBigEndian
2255
2261
  ? (source, offset) => {