@via-profit/ability 3.5.3 → 3.5.4
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/index.js +7 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -180,8 +180,14 @@ class AbilityTypeGenerator {
|
|
|
180
180
|
});
|
|
181
181
|
});
|
|
182
182
|
});
|
|
183
|
+
const filteredStructure = {};
|
|
184
|
+
Object.entries(typeStructure).forEach(([action, fields]) => {
|
|
185
|
+
if (!action.endsWith('.*')) {
|
|
186
|
+
filteredStructure[action] = fields;
|
|
187
|
+
}
|
|
188
|
+
});
|
|
183
189
|
// Transform flat structure into nested structure for easier use
|
|
184
|
-
const nestedStructure = this.buildNestedStructure(
|
|
190
|
+
const nestedStructure = this.buildNestedStructure(filteredStructure);
|
|
185
191
|
return this.formatTypeDefinitions(nestedStructure);
|
|
186
192
|
}
|
|
187
193
|
/**
|