@nocobase/plugin-collection-sql 2.0.60 → 2.0.62
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 +6 -6
- package/dist/server/utils.js +8 -1
- package/package.json +2 -2
package/dist/externalVersion.js
CHANGED
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "2.0.
|
|
12
|
-
"@nocobase/data-source-manager": "2.0.
|
|
13
|
-
"@nocobase/database": "2.0.
|
|
14
|
-
"@nocobase/server": "2.0.
|
|
15
|
-
"@nocobase/actions": "2.0.
|
|
11
|
+
"@nocobase/client": "2.0.62",
|
|
12
|
+
"@nocobase/data-source-manager": "2.0.62",
|
|
13
|
+
"@nocobase/database": "2.0.62",
|
|
14
|
+
"@nocobase/server": "2.0.62",
|
|
15
|
+
"@nocobase/actions": "2.0.62",
|
|
16
16
|
"sequelize": "6.35.2",
|
|
17
|
-
"@nocobase/utils": "2.0.
|
|
17
|
+
"@nocobase/utils": "2.0.62"
|
|
18
18
|
};
|
package/dist/server/utils.js
CHANGED
|
@@ -44,6 +44,13 @@ const checkSQL = (sql) => {
|
|
|
44
44
|
"pg_reload_conf",
|
|
45
45
|
"pg_sleep",
|
|
46
46
|
"generate_series",
|
|
47
|
+
"pg_catalog",
|
|
48
|
+
"pg_shadow",
|
|
49
|
+
"pg_authid",
|
|
50
|
+
"pg_auth_members",
|
|
51
|
+
"pg_roles",
|
|
52
|
+
"pg_stat_activity",
|
|
53
|
+
"information_schema",
|
|
47
54
|
// MySQL
|
|
48
55
|
"LOAD_FILE",
|
|
49
56
|
"BENCHMARK",
|
|
@@ -53,7 +60,7 @@ const checkSQL = (sql) => {
|
|
|
53
60
|
"sqlite3_load_extension",
|
|
54
61
|
"load_extension"
|
|
55
62
|
];
|
|
56
|
-
sql = sql.trim().split(";").shift();
|
|
63
|
+
sql = sql.trim().split(";").shift() || "";
|
|
57
64
|
if (!/^select/i.test(sql) && !/^with([\s\S]+)select([\s\S]+)/i.test(sql)) {
|
|
58
65
|
throw new Error("Only supports SELECT statements or WITH clauses");
|
|
59
66
|
}
|
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.0.
|
|
9
|
+
"version": "2.0.62",
|
|
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": "b21b0a5111d188ba495eb579fdae674c5680fff2"
|
|
24
24
|
}
|