@tachybase/plugin-action-custom-request 1.6.0 → 1.6.3

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,11 +1,11 @@
1
1
  module.exports = {
2
2
  "react": "18.3.1",
3
- "@tachybase/client": "1.6.0",
3
+ "@tachybase/client": "1.6.3",
4
4
  "react-i18next": "16.2.1",
5
- "@tego/server": "1.3.52",
6
- "@tachybase/test": "1.3.52",
7
- "@tachybase/schema": "1.3.52",
8
- "@tego/client": "1.3.52",
5
+ "@tego/server": "1.6.1",
6
+ "@tachybase/test": "1.6.1",
7
+ "@tachybase/schema": "1.6.1",
8
+ "@tego/client": "1.6.1",
9
9
  "antd": "5.22.5",
10
10
  "react-router-dom": "6.28.1",
11
11
  "axios": "1.13.0"
@@ -128,7 +128,7 @@ async function send(ctx, next) {
128
128
  },
129
129
  currentUser,
130
130
  currentTime: (/* @__PURE__ */ new Date()).toISOString(),
131
- $env: ctx.app.environment.getVariables()
131
+ $env: process.env
132
132
  };
133
133
  const getParsedValue = (value) => {
134
134
  const template = (0, import_server.parse)(value);
File without changes
@@ -21,7 +21,6 @@ __export(plugin_exports, {
21
21
  default: () => plugin_default
22
22
  });
23
23
  module.exports = __toCommonJS(plugin_exports);
24
- var import_node_path = require("node:path");
25
24
  var import_server = require("@tego/server");
26
25
  var import_listByCurrentRole = require("./actions/listByCurrentRole");
27
26
  var import_send = require("./actions/send");
@@ -40,8 +39,7 @@ class CustomRequestPlugin extends import_server.Plugin {
40
39
  return logger;
41
40
  }
42
41
  async load() {
43
- await this.importCollections((0, import_node_path.resolve)(__dirname, "collections"));
44
- this.app.resource({
42
+ this.app.resourcer.define({
45
43
  name: "customRequests",
46
44
  actions: {
47
45
  send: import_send.send.bind(this),
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tachybase/plugin-action-custom-request",
3
3
  "displayName": "Action: Custom request",
4
- "version": "1.6.0",
4
+ "version": "1.6.3",
5
5
  "description": "Sending a request to any HTTP service supports sending context data to the target service.",
6
6
  "keywords": [
7
7
  "Actions"
@@ -10,17 +10,17 @@
10
10
  "main": "dist/server/index.js",
11
11
  "dependencies": {},
12
12
  "devDependencies": {
13
- "@tachybase/schema": "1.3.52",
14
- "@tachybase/test": "1.3.52",
15
- "@tego/client": "1.3.52",
16
- "@tego/server": "1.3.52",
13
+ "@tachybase/schema": "1.6.1",
14
+ "@tachybase/test": "1.6.1",
15
+ "@tego/client": "1.6.1",
16
+ "@tego/server": "1.6.1",
17
17
  "antd": "5.22.5",
18
18
  "axios": "1.13.0",
19
19
  "file-saver": "^2.0.5",
20
20
  "lodash": "4.17.21",
21
21
  "react-i18next": "16.2.1",
22
22
  "react-router-dom": "6.28.1",
23
- "@tachybase/client": "1.6.0"
23
+ "@tachybase/client": "1.6.3"
24
24
  },
25
25
  "description.zh-CN": "向任意 HTTP 服务发送请求,支持将上下文数据发送给目标服务。",
26
26
  "displayName.zh-CN": "操作:自定义请求",