@websolutespa/bom-core 1.8.19 → 1.8.20

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.20
4
+
5
+ ### Patch Changes
6
+
7
+ - Modified: isMedia, category, route
8
+
3
9
  ## 1.8.19
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.ts CHANGED
@@ -262,6 +262,7 @@ type ICategorized = IEntity & {
262
262
  markets?: string[];
263
263
  createdAt?: Date;
264
264
  updatedAt?: Date;
265
+ _status?: string;
265
266
  };
266
267
 
267
268
  type IClassNameValue = string | boolean | number | null | undefined;
package/dist/index.js CHANGED
@@ -579,7 +579,7 @@ function isMediaPdf(media) {
579
579
  return false;
580
580
  }
581
581
  function isMedia(item) {
582
- return isObject(item) && "type" in item && (isValidString(item.url) || isValidString(item.src));
582
+ return isObject(item) && ("mimeType" in item || "type" in item) && (isValidString(item.url) || isValidString(item.src));
583
583
  }
584
584
 
585
585
  // src/types/menu.ts
@@ -1686,7 +1686,10 @@ function getPickedProps(item) {
1686
1686
  "order",
1687
1687
  "template",
1688
1688
  "updatedAt",
1689
- "useSplat"
1689
+ "useSplat",
1690
+ // 'createdAt',
1691
+ "updatedAt",
1692
+ "_status"
1690
1693
  ].includes(k)));
1691
1694
  return pickedProps;
1692
1695
  }
package/dist/index.mjs CHANGED
@@ -410,7 +410,7 @@ function isMediaPdf(media) {
410
410
  return false;
411
411
  }
412
412
  function isMedia(item) {
413
- return isObject(item) && "type" in item && (isValidString(item.url) || isValidString(item.src));
413
+ return isObject(item) && ("mimeType" in item || "type" in item) && (isValidString(item.url) || isValidString(item.src));
414
414
  }
415
415
 
416
416
  // src/types/menu.ts
@@ -1517,7 +1517,10 @@ function getPickedProps(item) {
1517
1517
  "order",
1518
1518
  "template",
1519
1519
  "updatedAt",
1520
- "useSplat"
1520
+ "useSplat",
1521
+ // 'createdAt',
1522
+ "updatedAt",
1523
+ "_status"
1521
1524
  ].includes(k)));
1522
1525
  return pickedProps;
1523
1526
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@websolutespa/bom-core",
3
- "version": "1.8.19",
3
+ "version": "1.8.20",
4
4
  "description": "Core module of the BOM Repository",
5
5
  "keywords": [
6
6
  "bom",