multicloud_rule_manager 1.1.53 → 1.1.54

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.
@@ -9,7 +9,7 @@ export default {
9
9
  },
10
10
  handler: async (argv) => {
11
11
  function buildMapObject(children) {
12
- if (!Array.isArray(children) || children.length === 0 || children.name == 'genericitem2orderitem') return [];
12
+ if (!Array.isArray(children) || children.length === 0) return [];
13
13
 
14
14
  return children
15
15
  .map(child => {
@@ -124,8 +124,14 @@ export default {
124
124
  // Per ogni record genera file SOLO se dsl_internal esiste
125
125
  for (const record of data) {
126
126
 
127
- if (!record.name || !record.guid) {
128
- console.warn("⚠️ Record saltato (name o guid mancanti):", record);
127
+ const skipNames = new Set([
128
+ "GenericItem2OrderItem",
129
+ "PriceListItem",
130
+ "PriceList"
131
+ ]);
132
+
133
+ if (!record.name || !record.guid || skipNames.has(record.name)) {
134
+ console.warn("⚠️ Record saltato:", record.name);
129
135
  continue;
130
136
  }
131
137
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "multicloud_rule_manager",
3
- "version": "1.1.53",
3
+ "version": "1.1.54",
4
4
  "description": "CLI interna per retrieve/upload con token",
5
5
  "main": "index.js",
6
6
  "type": "module",