@lowdefy/helpers 4.0.0-rc.6 → 4.0.0-rc.7

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.
Files changed (2) hide show
  1. package/dist/serializer.js +18 -16
  2. package/package.json +2 -2
@@ -76,6 +76,24 @@ const makeReplacer = (customReplacer, isoStringDates)=>(key, value)=>{
76
76
  };
77
77
  const makeReviver = (customReviver)=>(key, value)=>{
78
78
  let newValue = value;
79
+ if (type.isObject(newValue)) {
80
+ if (newValue._r_) {
81
+ Object.defineProperty(newValue, '_r_', {
82
+ value: newValue._r_,
83
+ enumerable: false,
84
+ writable: true,
85
+ configurable: true
86
+ });
87
+ }
88
+ if (newValue._k_) {
89
+ Object.defineProperty(newValue, '_k_', {
90
+ value: newValue._k_,
91
+ enumerable: false,
92
+ writable: true,
93
+ configurable: true
94
+ });
95
+ }
96
+ }
79
97
  if (customReviver) {
80
98
  newValue = customReviver(key, value);
81
99
  }
@@ -98,22 +116,6 @@ const makeReviver = (customReviver)=>(key, value)=>{
98
116
  }
99
117
  return result;
100
118
  }
101
- if (newValue._r_) {
102
- Object.defineProperty(newValue, '_r_', {
103
- value: newValue._r_,
104
- enumerable: false,
105
- writable: true,
106
- configurable: true
107
- });
108
- }
109
- if (newValue._k_) {
110
- Object.defineProperty(newValue, '_k_', {
111
- value: newValue._k_,
112
- enumerable: false,
113
- writable: true,
114
- configurable: true
115
- });
116
- }
117
119
  }
118
120
  return newValue;
119
121
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lowdefy/helpers",
3
- "version": "4.0.0-rc.6",
3
+ "version": "4.0.0-rc.7",
4
4
  "license": "Apache-2.0",
5
5
  "description": "",
6
6
  "homepage": "https://lowdefy.com",
@@ -51,5 +51,5 @@
51
51
  "publishConfig": {
52
52
  "access": "public"
53
53
  },
54
- "gitHead": "8238145a9eb26c6f3dc48661ab6eca6e3aca4f83"
54
+ "gitHead": "0bbeceb0a73e7c8061d83829bb5066f08cacf094"
55
55
  }