@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 +6 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +5 -2
- package/dist/index.mjs +5 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
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
|
}
|