plugin-data-source-mssql 2.0.1 → 2.0.2

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.
@@ -8,10 +8,10 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "2.0.11",
12
- "@nocobase/plugin-data-source-manager": "2.0.11",
13
- "@nocobase/server": "2.0.11",
14
- "@nocobase/database": "2.0.11",
11
+ "@nocobase/client": "2.0.15",
12
+ "@nocobase/plugin-data-source-manager": "2.0.15",
13
+ "@nocobase/server": "2.0.15",
14
+ "@nocobase/database": "2.0.15",
15
15
  "react": "18.2.0",
16
16
  "@formily/react": "2.3.7",
17
17
  "antd": "5.24.2",
@@ -19,8 +19,8 @@ module.exports = {
19
19
  "@ant-design/icons": "5.6.1",
20
20
  "@emotion/css": "11.13.0",
21
21
  "react-router-dom": "6.30.1",
22
- "@nocobase/actions": "2.0.11",
23
- "@nocobase/data-source-manager": "2.0.11",
22
+ "@nocobase/actions": "2.0.15",
23
+ "@nocobase/data-source-manager": "2.0.15",
24
24
  "sequelize": "6.35.2",
25
25
  "lodash": "4.17.21"
26
26
  };
@@ -188,16 +188,6 @@ class MssqlExternalDataSource extends import_data_source_manager.SequelizeDataSo
188
188
  if (!(db == null ? void 0 : db.sequelize)) return;
189
189
  const Sequelize = db.sequelize.Sequelize;
190
190
  if (!Sequelize) return;
191
- db.sequelize.addHook("afterConnect", (connection) => {
192
- if (connection && typeof connection.execSql === "function") {
193
- try {
194
- const { Request } = require("tedious");
195
- connection.execSql(new Request("SET NOCOUNT ON", () => {
196
- }));
197
- } catch {
198
- }
199
- }
200
- });
201
191
  const isDatetimeString = (value) => {
202
192
  return /^\d{4}-\d{2}-\d{2}[ T]\d{2}:\d{2}:\d{2}(\.\d+)?(Z|[+-]\d{2}(:\d{2})?)?$/.test(value);
203
193
  };
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "displayName": "Data source: MSSQL",
4
4
  "displayName.ru-RU": "Источник данных: MSSQL",
5
5
  "displayName.zh-CN": "数据源:MSSQL",
6
- "version": "2.0.1",
6
+ "version": "2.0.2",
7
7
  "description": "External MSSQL data source support for NocoBase.",
8
8
  "license": "MIT",
9
9
  "main": "./dist/server/index.js",