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.rn.cjs CHANGED
@@ -1324,7 +1324,7 @@ class Long extends BSONValue {
1324
1324
  }
1325
1325
  if (value < 0)
1326
1326
  return Long.fromNumber(-value, unsigned).neg();
1327
- return Long.fromBits(value % TWO_PWR_32_DBL | 0, (value / TWO_PWR_32_DBL) | 0, unsigned);
1327
+ return Long.fromBits((value % TWO_PWR_32_DBL) | 0, (value / TWO_PWR_32_DBL) | 0, unsigned);
1328
1328
  }
1329
1329
  static fromBigInt(value, unsigned) {
1330
1330
  const FROM_BIGINT_BIT_MASK = 0xffffffffn;
@@ -2614,9 +2614,9 @@ class ObjectId extends BSONValue {
2614
2614
  };
2615
2615
  static {
2616
2616
  this.resetState();
2617
- const { startupSnapshot } = globalThis?.process?.getBuiltinModule('v8') ?? {};
2618
- if (startupSnapshot?.isBuildingSnapshot()) {
2619
- startupSnapshot?.addDeserializeCallback(this.resetState);
2617
+ const { startupSnapshot } = globalThis?.process?.getBuiltinModule?.('v8') ?? {};
2618
+ if (startupSnapshot?.isBuildingSnapshot?.()) {
2619
+ startupSnapshot?.addDeserializeCallback?.(this.resetState);
2620
2620
  }
2621
2621
  }
2622
2622
  static cacheHexString;