bson 6.10.1 → 6.10.2

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
@@ -2847,6 +2847,13 @@ function calculateElement(name, value, serializeFunctions = false, isArray = fal
2847
2847
  ByteUtils.utf8ByteLength(value.toString()) +
2848
2848
  1);
2849
2849
  }
2850
+ return 0;
2851
+ case 'bigint':
2852
+ return (name != null ? ByteUtils.utf8ByteLength(name) + 1 : 0) + (8 + 1);
2853
+ case 'symbol':
2854
+ return 0;
2855
+ default:
2856
+ throw new BSONError(`Unrecognized JS type: ${typeof value}`);
2850
2857
  }
2851
2858
  return 0;
2852
2859
  }