@nocobase/plugin-data-source-main 2.1.0-beta.23 → 2.1.0-beta.25
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/externalVersion.js
CHANGED
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "2.1.0-beta.
|
|
11
|
+
"@nocobase/client": "2.1.0-beta.25",
|
|
12
12
|
"lodash": "4.18.1",
|
|
13
|
-
"@nocobase/ai": "2.1.0-beta.
|
|
14
|
-
"@nocobase/database": "2.1.0-beta.
|
|
15
|
-
"@nocobase/plugin-error-handler": "2.1.0-beta.
|
|
16
|
-
"@nocobase/server": "2.1.0-beta.
|
|
13
|
+
"@nocobase/ai": "2.1.0-beta.25",
|
|
14
|
+
"@nocobase/database": "2.1.0-beta.25",
|
|
15
|
+
"@nocobase/plugin-error-handler": "2.1.0-beta.25",
|
|
16
|
+
"@nocobase/server": "2.1.0-beta.25",
|
|
17
17
|
"sequelize": "6.35.2",
|
|
18
18
|
"@formily/json-schema": "2.3.7",
|
|
19
|
-
"@nocobase/test": "2.1.0-beta.
|
|
20
|
-
"@nocobase/utils": "2.1.0-beta.
|
|
21
|
-
"@nocobase/actions": "2.1.0-beta.
|
|
19
|
+
"@nocobase/test": "2.1.0-beta.25",
|
|
20
|
+
"@nocobase/utils": "2.1.0-beta.25",
|
|
21
|
+
"@nocobase/actions": "2.1.0-beta.25",
|
|
22
22
|
"dayjs": "1.11.13"
|
|
23
23
|
};
|
|
@@ -85,6 +85,9 @@ class CollectionRepository extends import_database.Repository {
|
|
|
85
85
|
return true;
|
|
86
86
|
}
|
|
87
87
|
const fields = nameMap[instanceName].get("fields");
|
|
88
|
+
if (!Array.isArray(fields)) {
|
|
89
|
+
return [];
|
|
90
|
+
}
|
|
88
91
|
return fields.filter((field) => field["type"] === "belongsTo" || field["type"] === "belongsToMany").map((field) => field.get("name"));
|
|
89
92
|
})();
|
|
90
93
|
if (import_lodash.default.isArray(skipField) && skipField.length) {
|
|
@@ -106,6 +109,9 @@ class CollectionRepository extends import_database.Repository {
|
|
|
106
109
|
});
|
|
107
110
|
const skipField = (() => {
|
|
108
111
|
const fields = nameMap[viewCollectionName].get("fields");
|
|
112
|
+
if (!Array.isArray(fields)) {
|
|
113
|
+
return [];
|
|
114
|
+
}
|
|
109
115
|
return fields.filter((field) => {
|
|
110
116
|
var _a;
|
|
111
117
|
if (((_a = field.options) == null ? void 0 : _a.source) && (field["type"] === "belongsTo" || field["type"] === "belongsToMany")) {
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"description": "NocoBase main database, supports relational databases such as PostgreSQL, MySQL, MariaDB and so on.",
|
|
7
7
|
"description.ru-RU": "Основная база данных NocoBase: поддерживает реляционные СУБД, включая PostgreSQL, MySQL, MariaDB и другие.",
|
|
8
8
|
"description.zh-CN": "NocoBase 主数据库,支持 PostgreSQL、MySQL、MariaDB 等关系型数据库。",
|
|
9
|
-
"version": "2.1.0-beta.
|
|
9
|
+
"version": "2.1.0-beta.25",
|
|
10
10
|
"main": "./dist/server/index.js",
|
|
11
11
|
"homepage": "https://docs.nocobase.com/handbook/data-source-main",
|
|
12
12
|
"homepage.ru-RU": "https://docs-ru.nocobase.com/handbook/data-source-main",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@nocobase/test": "2.x",
|
|
26
26
|
"@nocobase/utils": "2.x"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "824f8b8200e9fe086135768934d3ef427b212446",
|
|
29
29
|
"keywords": [
|
|
30
30
|
"Data sources"
|
|
31
31
|
]
|