@nocobase/plugin-collection-sql 2.1.0-beta.13 → 2.1.0-beta.14
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,11 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "2.1.0-beta.
|
|
12
|
-
"@nocobase/data-source-manager": "2.1.0-beta.
|
|
13
|
-
"@nocobase/database": "2.1.0-beta.
|
|
14
|
-
"@nocobase/server": "2.1.0-beta.
|
|
15
|
-
"@nocobase/actions": "2.1.0-beta.
|
|
11
|
+
"@nocobase/client": "2.1.0-beta.14",
|
|
12
|
+
"@nocobase/data-source-manager": "2.1.0-beta.14",
|
|
13
|
+
"@nocobase/database": "2.1.0-beta.14",
|
|
14
|
+
"@nocobase/server": "2.1.0-beta.14",
|
|
15
|
+
"@nocobase/actions": "2.1.0-beta.14",
|
|
16
16
|
"sequelize": "6.35.2",
|
|
17
|
-
"@nocobase/utils": "2.1.0-beta.
|
|
17
|
+
"@nocobase/utils": "2.1.0-beta.14"
|
|
18
18
|
};
|
|
@@ -111,6 +111,14 @@ var sql_default = {
|
|
|
111
111
|
await next();
|
|
112
112
|
},
|
|
113
113
|
update: async (ctx, next) => {
|
|
114
|
+
const { sql } = ctx.action.params.values || {};
|
|
115
|
+
if (sql) {
|
|
116
|
+
try {
|
|
117
|
+
(0, import_utils.checkSQL)(sql);
|
|
118
|
+
} catch (e) {
|
|
119
|
+
ctx.throw(400, ctx.t(e.message));
|
|
120
|
+
}
|
|
121
|
+
}
|
|
114
122
|
const transaction = await ctx.app.db.sequelize.transaction();
|
|
115
123
|
try {
|
|
116
124
|
const { upRes } = await updateCollection(ctx, transaction);
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"description": "Provides SQL collection template",
|
|
7
7
|
"description.ru-RU": "Предоставляет шаблон коллекции на основе SQL",
|
|
8
8
|
"description.zh-CN": "提供 SQL 数据表模板",
|
|
9
|
-
"version": "2.1.0-beta.
|
|
9
|
+
"version": "2.1.0-beta.14",
|
|
10
10
|
"homepage": "https://docs-cn.nocobase.com/handbook/collection-sql",
|
|
11
11
|
"homepage.ru-RU": "https://docs-ru.nocobase.com/handbook/collection-sql",
|
|
12
12
|
"homepage.zh-CN": "https://docs-cn.nocobase.com/handbook/collection-sql",
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"keywords": [
|
|
21
21
|
"Collections"
|
|
22
22
|
],
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "cd55c9a14596d834c30c83a82c38f1f719f7aac4"
|
|
24
24
|
}
|