roboto-js 1.4.1 → 1.4.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.
@@ -89,7 +89,10 @@ var RbtObject = exports["default"] = /*#__PURE__*/function () {
89
89
  }, {
90
90
  key: "serialize",
91
91
  value: function serialize() {
92
- return JSON.stringify(this.toRecord());
92
+ return JSON.stringify(_objectSpread(_objectSpread({}, this._internalData), {}, {
93
+ dataJson: this._data,
94
+ rpcMeta: this.rpcMeta
95
+ }));
93
96
  }
94
97
  }, {
95
98
  key: "deserialize",
@@ -56,7 +56,11 @@ export default class RbtObject {
56
56
  };
57
57
  }
58
58
  serialize() {
59
- return JSON.stringify(this.toRecord());
59
+ return JSON.stringify({
60
+ ...this._internalData,
61
+ dataJson: this._data,
62
+ rpcMeta: this.rpcMeta
63
+ });
60
64
  }
61
65
  deserialize(strRecord) {
62
66
  let record = JSON.parse(strRecord);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roboto-js",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "main": "dist/cjs/index.cjs",
package/src/rbt_object.js CHANGED
@@ -69,7 +69,12 @@ export default class RbtObject {
69
69
 
70
70
 
71
71
  serialize(){
72
- return JSON.stringify(this.toRecord());
72
+
73
+ return JSON.stringify({
74
+ ...this._internalData,
75
+ dataJson: this._data,
76
+ rpcMeta: this.rpcMeta
77
+ });
73
78
  }
74
79
 
75
80
  deserialize(strRecord){