bson 7.3.0 → 7.3.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 +4 -4
- package/lib/bson.bundle.js.map +1 -1
- package/lib/bson.cjs +4 -4
- package/lib/bson.cjs.map +1 -1
- package/lib/bson.mjs +4 -4
- package/lib/bson.mjs.map +1 -1
- package/lib/bson.node.mjs +4 -4
- package/lib/bson.node.mjs.map +1 -1
- package/lib/bson.rn.cjs +4 -4
- package/lib/bson.rn.cjs.map +1 -1
- package/package.json +4 -4
- package/src/long.ts +1 -1
- package/src/objectid.ts +3 -3
- package/src/timestamp.ts +1 -0
package/lib/bson.node.mjs
CHANGED
|
@@ -1314,7 +1314,7 @@ class Long extends BSONValue {
|
|
|
1314
1314
|
}
|
|
1315
1315
|
if (value < 0)
|
|
1316
1316
|
return Long.fromNumber(-value, unsigned).neg();
|
|
1317
|
-
return Long.fromBits(value % TWO_PWR_32_DBL | 0, (value / TWO_PWR_32_DBL) | 0, unsigned);
|
|
1317
|
+
return Long.fromBits((value % TWO_PWR_32_DBL) | 0, (value / TWO_PWR_32_DBL) | 0, unsigned);
|
|
1318
1318
|
}
|
|
1319
1319
|
static fromBigInt(value, unsigned) {
|
|
1320
1320
|
const FROM_BIGINT_BIT_MASK = 0xffffffffn;
|
|
@@ -2604,9 +2604,9 @@ class ObjectId extends BSONValue {
|
|
|
2604
2604
|
};
|
|
2605
2605
|
static {
|
|
2606
2606
|
this.resetState();
|
|
2607
|
-
const { startupSnapshot } = globalThis?.process?.getBuiltinModule('v8') ?? {};
|
|
2608
|
-
if (startupSnapshot?.isBuildingSnapshot()) {
|
|
2609
|
-
startupSnapshot?.addDeserializeCallback(this.resetState);
|
|
2607
|
+
const { startupSnapshot } = globalThis?.process?.getBuiltinModule?.('v8') ?? {};
|
|
2608
|
+
if (startupSnapshot?.isBuildingSnapshot?.()) {
|
|
2609
|
+
startupSnapshot?.addDeserializeCallback?.(this.resetState);
|
|
2610
2610
|
}
|
|
2611
2611
|
}
|
|
2612
2612
|
static cacheHexString;
|