@azrico/webobject 1.2.24 → 1.2.26

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.
@@ -6,3 +6,4 @@ export * from "./structs/DummyObject";
6
6
  export * from "./structs/ObjectManager";
7
7
  export * from "./WebObjects/WebObjectManager";
8
8
  export * from "./WebObjects/WebObject";
9
+ export * from "./WebObjects/ParentWebObject";
package/dist/src/index.js CHANGED
@@ -106,4 +106,17 @@ Object.keys(_WebObject).forEach(function (key) {
106
106
  return _WebObject[key];
107
107
  }
108
108
  });
109
+ });
110
+
111
+ var _ParentWebObject = require("./WebObjects/ParentWebObject");
112
+
113
+ Object.keys(_ParentWebObject).forEach(function (key) {
114
+ if (key === "default" || key === "__esModule") return;
115
+ if (key in exports && exports[key] === _ParentWebObject[key]) return;
116
+ Object.defineProperty(exports, key, {
117
+ enumerable: true,
118
+ get: function get() {
119
+ return _ParentWebObject[key];
120
+ }
121
+ });
109
122
  });
@@ -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.26",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",