@azrico/webobject 1.2.24 → 1.2.25

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.
@@ -856,7 +856,11 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject) {
856
856
 
857
857
  switch (_typeof(o)) {
858
858
  case "object":
859
- return o.__data_id || o._id || o.id || o.ID || "";
859
+ if (o._bsontype == "ObjectID" && typeof o.toString === "function") {
860
+ return o.toString();
861
+ }
862
+
863
+ return String(o._id || o.ID || o.id || o.__data_id || "");
860
864
 
861
865
  case "string":
862
866
  case "number":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.2.24",
3
+ "version": "1.2.25",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",