@websolutespa/bom-core 1.8.15 → 1.8.16

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @websolutespa/bom-core
2
2
 
3
+ ## 1.8.16
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified: collectFeatureTypes
8
+
3
9
  ## 1.8.15
4
10
 
5
11
  ### Patch Changes
package/dist/index.js CHANGED
@@ -343,7 +343,7 @@ async function collectFeatureTypes(items, ...keys) {
343
343
  id: value2,
344
344
  title: String(value2)
345
345
  };
346
- if (features && !features.find((x) => x.id === option.id)) {
346
+ if (option.id && option.title && features && !features.find((x) => x.id === option.id)) {
347
347
  features.push(option);
348
348
  }
349
349
  });
package/dist/index.mjs CHANGED
@@ -187,7 +187,7 @@ async function collectFeatureTypes(items, ...keys) {
187
187
  id: value2,
188
188
  title: String(value2)
189
189
  };
190
- if (features && !features.find((x) => x.id === option.id)) {
190
+ if (option.id && option.title && features && !features.find((x) => x.id === option.id)) {
191
191
  features.push(option);
192
192
  }
193
193
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@websolutespa/bom-core",
3
- "version": "1.8.15",
3
+ "version": "1.8.16",
4
4
  "description": "Core module of the BOM Repository",
5
5
  "keywords": [
6
6
  "bom",