@lowdefy/build 4.0.0-rc.8 → 4.0.0-rc.9
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/dist/build/addKeys.js +4 -4
- package/dist/build/buildRefs/recursiveBuild.js +1 -1
- package/dist/defaultTypesMap.js +314 -314
- package/package.json +38 -38
package/dist/build/addKeys.js
CHANGED
|
@@ -18,16 +18,16 @@ function recAddKeys(object, key, keyMap, parentId) {
|
|
|
18
18
|
const id = makeId();
|
|
19
19
|
keyMap[id] = {
|
|
20
20
|
key,
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
'~r': object['~r'],
|
|
22
|
+
'~k_parent': parentId
|
|
23
23
|
};
|
|
24
|
-
Object.defineProperty(object, '
|
|
24
|
+
Object.defineProperty(object, '~k', {
|
|
25
25
|
value: id,
|
|
26
26
|
enumerable: false,
|
|
27
27
|
writable: true,
|
|
28
28
|
configurable: true
|
|
29
29
|
});
|
|
30
|
-
delete object
|
|
30
|
+
delete object['~r'];
|
|
31
31
|
Object.keys(object).forEach((nextKey)=>{
|
|
32
32
|
if (type.isObject(object[nextKey])) {
|
|
33
33
|
recAddKeys(object[nextKey], `${key}.${nextKey}`, keyMap, id);
|
|
@@ -66,7 +66,7 @@ async function recursiveBuild({ context , refDef , count , referencedFrom }) {
|
|
|
66
66
|
});
|
|
67
67
|
const reviver = (_, value)=>{
|
|
68
68
|
if (!type.isObject(value)) return value;
|
|
69
|
-
Object.defineProperty(value, '
|
|
69
|
+
Object.defineProperty(value, '~r', {
|
|
70
70
|
value: refDef.id,
|
|
71
71
|
enumerable: false,
|
|
72
72
|
writable: true,
|