bson 6.5.0 → 6.5.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
@@ -2173,9 +2173,15 @@ const NumberUtils = {
2173
2173
  source[offset] * 16777216);
2174
2174
  },
2175
2175
  getBigInt64LE(source, offset) {
2176
- const lo = NumberUtils.getUint32LE(source, offset);
2177
- const hi = NumberUtils.getUint32LE(source, offset + 4);
2178
- return (BigInt(hi) << BigInt(32)) + BigInt(lo);
2176
+ const hi = BigInt(source[offset + 4] +
2177
+ source[offset + 5] * 256 +
2178
+ source[offset + 6] * 65536 +
2179
+ (source[offset + 7] << 24));
2180
+ const lo = BigInt(source[offset] +
2181
+ source[offset + 1] * 256 +
2182
+ source[offset + 2] * 65536 +
2183
+ source[offset + 3] * 16777216);
2184
+ return (hi << BigInt(32)) + lo;
2179
2185
  },
2180
2186
  getFloat64LE: isBigEndian
2181
2187
  ? (source, offset) => {