multicloud_rule_manager 1.1.39 → 1.1.41
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/commands/retrievedatamap.js +5 -32
- package/package.json +1 -1
|
@@ -101,6 +101,7 @@ export default {
|
|
|
101
101
|
result["attributes"] = [];
|
|
102
102
|
result["children"] = [];
|
|
103
103
|
|
|
104
|
+
if(map){
|
|
104
105
|
//if (!Array.isArray(children)) {
|
|
105
106
|
if (Array.isArray(map._children)) {
|
|
106
107
|
/*var children = map._children;
|
|
@@ -109,7 +110,7 @@ export default {
|
|
|
109
110
|
result[child._key] = child._attributes;
|
|
110
111
|
}
|
|
111
112
|
}*/
|
|
112
|
-
|
|
113
|
+
result["children"] = map._children;
|
|
113
114
|
}
|
|
114
115
|
if (Array.isArray(map._attributes)) {
|
|
115
116
|
//var children = map._children;
|
|
@@ -126,39 +127,11 @@ export default {
|
|
|
126
127
|
fs.writeFileSync(filePath, JSON.stringify(result, null, 2), "utf8");
|
|
127
128
|
|
|
128
129
|
console.log(`📝 File scritto: ${fileName}`);
|
|
130
|
+
}else{
|
|
131
|
+
console.log(`📝 Datamap: ${fileName} - ${record.guid} non valido, salto`);
|
|
132
|
+
}
|
|
129
133
|
}
|
|
130
134
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
135
|
console.log("🚀 Tutti i file con contenuto valido sono stati generati");
|
|
163
136
|
|
|
164
137
|
} catch (err) {
|