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.bundle.js
CHANGED
|
@@ -1317,7 +1317,7 @@ class Long extends BSONValue {
|
|
|
1317
1317
|
}
|
|
1318
1318
|
if (value < 0)
|
|
1319
1319
|
return Long.fromNumber(-value, unsigned).neg();
|
|
1320
|
-
return Long.fromBits(value % TWO_PWR_32_DBL | 0, (value / TWO_PWR_32_DBL) | 0, unsigned);
|
|
1320
|
+
return Long.fromBits((value % TWO_PWR_32_DBL) | 0, (value / TWO_PWR_32_DBL) | 0, unsigned);
|
|
1321
1321
|
}
|
|
1322
1322
|
static fromBigInt(value, unsigned) {
|
|
1323
1323
|
const FROM_BIGINT_BIT_MASK = 0xffffffffn;
|
|
@@ -2607,9 +2607,9 @@ class ObjectId extends BSONValue {
|
|
|
2607
2607
|
};
|
|
2608
2608
|
static {
|
|
2609
2609
|
this.resetState();
|
|
2610
|
-
const { startupSnapshot } = globalThis?.process?.getBuiltinModule('v8') ?? {};
|
|
2611
|
-
if (startupSnapshot?.isBuildingSnapshot()) {
|
|
2612
|
-
startupSnapshot?.addDeserializeCallback(this.resetState);
|
|
2610
|
+
const { startupSnapshot } = globalThis?.process?.getBuiltinModule?.('v8') ?? {};
|
|
2611
|
+
if (startupSnapshot?.isBuildingSnapshot?.()) {
|
|
2612
|
+
startupSnapshot?.addDeserializeCallback?.(this.resetState);
|
|
2613
2613
|
}
|
|
2614
2614
|
}
|
|
2615
2615
|
static cacheHexString;
|