@nextcloud/files 3.8.0 → 3.9.0
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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/navigation/view.d.ts +7 -4
- package/dist/vendor.LICENSE.txt +1 -1
- package/package.json +10 -10
package/dist/index.cjs
CHANGED
|
@@ -2873,8 +2873,8 @@ const isValidView = function(view) {
|
|
|
2873
2873
|
if (!view.icon || typeof view.icon !== "string" || !isSvg(view.icon)) {
|
|
2874
2874
|
throw new Error("View icon is required and must be a valid svg string");
|
|
2875
2875
|
}
|
|
2876
|
-
if (
|
|
2877
|
-
throw new Error("View order
|
|
2876
|
+
if ("order" in view && typeof view.order !== "number") {
|
|
2877
|
+
throw new Error("View order must be a number");
|
|
2878
2878
|
}
|
|
2879
2879
|
if (view.columns) {
|
|
2880
2880
|
view.columns.forEach((column) => {
|