bson 6.8.0 → 6.8.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.bundle.js +9 -3
- package/lib/bson.bundle.js.map +1 -1
- package/lib/bson.cjs +9 -3
- package/lib/bson.cjs.map +1 -1
- package/lib/bson.mjs +9 -3
- package/lib/bson.mjs.map +1 -1
- package/lib/bson.rn.cjs +9 -3
- package/lib/bson.rn.cjs.map +1 -1
- package/package.json +1 -1
- package/src/utils/number_utils.ts +17 -8
package/lib/bson.rn.cjs
CHANGED
|
@@ -2248,9 +2248,15 @@ const NumberUtils = {
|
|
|
2248
2248
|
source[offset] * 16777216);
|
|
2249
2249
|
},
|
|
2250
2250
|
getBigInt64LE(source, offset) {
|
|
2251
|
-
const
|
|
2252
|
-
|
|
2253
|
-
|
|
2251
|
+
const hi = BigInt(source[offset + 4] +
|
|
2252
|
+
source[offset + 5] * 256 +
|
|
2253
|
+
source[offset + 6] * 65536 +
|
|
2254
|
+
(source[offset + 7] << 24));
|
|
2255
|
+
const lo = BigInt(source[offset] +
|
|
2256
|
+
source[offset + 1] * 256 +
|
|
2257
|
+
source[offset + 2] * 65536 +
|
|
2258
|
+
source[offset + 3] * 16777216);
|
|
2259
|
+
return (hi << BigInt(32)) + lo;
|
|
2254
2260
|
},
|
|
2255
2261
|
getFloat64LE: isBigEndian
|
|
2256
2262
|
? (source, offset) => {
|