multicloud_rule_manager 1.1.34 → 1.1.36

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.
@@ -76,10 +76,9 @@ export default {
76
76
  }
77
77
 
78
78
  const safeName = record.name.replace(/[<>:"/\\|?*]+/g, "_");
79
- const fileName = `${safeName}_${record.guid}.json`;
79
+ const fileName = `${safeName}.json`;
80
80
  const filePath = `${rulesDir}/${fileName}`;
81
81
 
82
- console.log(`🔹 Recupero dettaglio mappa ${record.guid}...`);
83
82
 
84
83
  // --- CHIAMATA MAP/{guid} ---
85
84
  const mapResp = await fetch(
@@ -98,8 +97,11 @@ export default {
98
97
  const children = mapData?.map_j2j_published?._children;
99
98
 
100
99
  if (!Array.isArray(children)) {
101
- console.warn(`⚠️ Nessun _children trovato per ${record.name}`);
102
- continue;
100
+ children = mapData?.map_j2j_published;
101
+ if (!Array.isArray(children)) {
102
+ console.warn(`⚠️ Nessun _children trovato per ${record.name} - ${record.guid}`);
103
+ continue;
104
+ }
103
105
  }
104
106
 
105
107
  // costruzione JSON finale
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multicloud_rule_manager",
3
- "version": "1.1.34",
3
+ "version": "1.1.36",
4
4
  "description": "CLI interna per retrieve/upload con token",
5
5
  "main": "index.js",
6
6
  "type": "module",