bson 6.6.0 → 6.6.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
@@ -2182,9 +2182,15 @@ const NumberUtils = {
2182
2182
  source[offset] * 16777216);
2183
2183
  },
2184
2184
  getBigInt64LE(source, offset) {
2185
- const lo = NumberUtils.getUint32LE(source, offset);
2186
- const hi = NumberUtils.getUint32LE(source, offset + 4);
2187
- return (BigInt(hi) << BigInt(32)) + BigInt(lo);
2185
+ const hi = BigInt(source[offset + 4] +
2186
+ source[offset + 5] * 256 +
2187
+ source[offset + 6] * 65536 +
2188
+ (source[offset + 7] << 24));
2189
+ const lo = BigInt(source[offset] +
2190
+ source[offset + 1] * 256 +
2191
+ source[offset + 2] * 65536 +
2192
+ source[offset + 3] * 16777216);
2193
+ return (hi << BigInt(32)) + lo;
2188
2194
  },
2189
2195
  getFloat64LE: isBigEndian
2190
2196
  ? (source, offset) => {