@tachybase/plugin-data-source-common 1.5.1 → 1.6.1

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.
@@ -1,14 +1,14 @@
1
1
  module.exports = {
2
- "@tachybase/client": "1.5.1",
3
- "@tachybase/module-data-source": "1.5.1",
4
- "@tego/server": "1.3.52",
2
+ "@tachybase/client": "1.6.1",
3
+ "@tachybase/module-data-source": "1.6.1",
4
+ "@tego/server": "1.6.0-alpha.9",
5
5
  "react": "18.3.1",
6
6
  "antd": "5.22.5",
7
7
  "lodash": "4.17.21",
8
8
  "axios": "1.13.0",
9
9
  "dayjs": "1.11.13",
10
- "@ant-design/icons": "5.6.1",
11
- "@tachybase/schema": "1.3.52",
12
- "@tego/client": "1.3.52",
10
+ "@ant-design/icons": "6.1.0",
11
+ "@tachybase/schema": "1.6.0-alpha.9",
12
+ "@tego/client": "1.6.0-alpha.9",
13
13
  "react-router-dom": "6.28.1"
14
14
  };
File without changes
@@ -48,14 +48,14 @@ class PluginHttpDatasource extends import_server.Plugin {
48
48
  if (!actionOptions.type) {
49
49
  import_lodash.default.set(actionOptions, "type", "list");
50
50
  }
51
- const dataSource = ctx.app.dataSourceManager.dataSources.get(sourceId);
51
+ const dataSource = ctx.tego.dataSourceManager.dataSources.get(sourceId);
52
52
  ctx.body = await import_http_collection.HttpCollection.runAction({
53
53
  dataSource,
54
54
  actionOptions,
55
55
  parseField: inferFields,
56
56
  runAsDebug: debug,
57
57
  debugVars,
58
- environment: ctx.app.environment
58
+ environment: ctx.tego.environment
59
59
  });
60
60
  await next();
61
61
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tachybase/plugin-data-source-common",
3
3
  "displayName": "External DataSource Support",
4
- "version": "1.5.1",
4
+ "version": "1.6.1",
5
5
  "description": "Supports more data sources",
6
6
  "keywords": [
7
7
  "Data sources"
@@ -9,11 +9,11 @@
9
9
  "main": "dist/server/index.js",
10
10
  "dependencies": {},
11
11
  "devDependencies": {
12
- "@ant-design/icons": "^5.6.1",
13
- "@tachybase/schema": "1.3.52",
14
- "@tachybase/test": "1.3.52",
15
- "@tego/client": "1.3.52",
16
- "@tego/server": "1.3.52",
12
+ "@ant-design/icons": "^6.1.0",
13
+ "@tachybase/schema": "1.6.0-alpha.9",
14
+ "@tachybase/test": "1.6.0-alpha.9",
15
+ "@tego/client": "1.6.0-alpha.9",
16
+ "@tego/server": "1.6.0-alpha.9",
17
17
  "@types/lodash": "^4.17.20",
18
18
  "antd": "5.22.5",
19
19
  "axios": "1.13.0",
@@ -23,8 +23,8 @@
23
23
  "pg": "^8.16.3",
24
24
  "react-i18next": "16.2.1",
25
25
  "react-router-dom": "6.28.1",
26
- "@tachybase/module-data-source": "1.5.1",
27
- "@tachybase/client": "1.5.1"
26
+ "@tachybase/client": "1.6.1",
27
+ "@tachybase/module-data-source": "1.6.1"
28
28
  },
29
29
  "description.zh-CN": "支持更多的数据源",
30
30
  "displayName.zh-CN": "外部数据源支持",