@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.mjs
CHANGED
|
@@ -2871,8 +2871,8 @@ const isValidView = function(view) {
|
|
|
2871
2871
|
if (!view.icon || typeof view.icon !== "string" || !isSvg(view.icon)) {
|
|
2872
2872
|
throw new Error("View icon is required and must be a valid svg string");
|
|
2873
2873
|
}
|
|
2874
|
-
if (
|
|
2875
|
-
throw new Error("View order
|
|
2874
|
+
if ("order" in view && typeof view.order !== "number") {
|
|
2875
|
+
throw new Error("View order must be a number");
|
|
2876
2876
|
}
|
|
2877
2877
|
if (view.columns) {
|
|
2878
2878
|
view.columns.forEach((column) => {
|