@tachybase/plugin-action-custom-request 0.23.20 → 0.23.35
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 +10 -10
- package/dist/server/actions/send.js +2 -1
- package/dist/server/plugin.js +1 -1
- package/package.json +12 -12
package/dist/externalVersion.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
"react": "18.3.1",
|
|
3
|
-
"@tachybase/client": "0.23.
|
|
3
|
+
"@tachybase/client": "0.23.35",
|
|
4
4
|
"react-i18next": "15.2.0",
|
|
5
|
-
"@tachybase/schema": "0.23.
|
|
6
|
-
"@tachybase/logger": "0.23.
|
|
7
|
-
"@tachybase/server": "0.23.
|
|
8
|
-
"@tachybase/test": "0.23.
|
|
9
|
-
"@tachybase/components": "0.23.
|
|
5
|
+
"@tachybase/schema": "0.23.35",
|
|
6
|
+
"@tachybase/logger": "0.23.35",
|
|
7
|
+
"@tachybase/server": "0.23.35",
|
|
8
|
+
"@tachybase/test": "0.23.35",
|
|
9
|
+
"@tachybase/components": "0.23.35",
|
|
10
10
|
"antd": "5.22.5",
|
|
11
|
-
"@tachybase/utils": "0.23.
|
|
11
|
+
"@tachybase/utils": "0.23.35",
|
|
12
12
|
"react-router-dom": "6.28.1",
|
|
13
|
-
"@tachybase/actions": "0.23.
|
|
14
|
-
"@tachybase/evaluators": "0.23.
|
|
13
|
+
"@tachybase/actions": "0.23.35",
|
|
14
|
+
"@tachybase/evaluators": "0.23.35",
|
|
15
15
|
"axios": "1.7.7",
|
|
16
|
-
"@tachybase/database": "0.23.
|
|
16
|
+
"@tachybase/database": "0.23.35"
|
|
17
17
|
};
|
|
@@ -31,6 +31,7 @@ __export(send_exports, {
|
|
|
31
31
|
});
|
|
32
32
|
module.exports = __toCommonJS(send_exports);
|
|
33
33
|
var import_evaluators = require("@tachybase/evaluators");
|
|
34
|
+
var import_server = require("@tachybase/server");
|
|
34
35
|
var import_utils = require("@tachybase/utils");
|
|
35
36
|
var import_axios = __toESM(require("axios"));
|
|
36
37
|
const getHeaders = (headers) => {
|
|
@@ -138,7 +139,7 @@ async function send(ctx, next) {
|
|
|
138
139
|
return template(variables);
|
|
139
140
|
};
|
|
140
141
|
const axiosRequestConfig = {
|
|
141
|
-
baseURL:
|
|
142
|
+
baseURL: import_server.Gateway.getInstance().runAtLoop,
|
|
142
143
|
...options,
|
|
143
144
|
url: getParsedValue(url),
|
|
144
145
|
headers: {
|
package/dist/server/plugin.js
CHANGED
|
@@ -36,7 +36,7 @@ class CustomRequestPlugin extends import_server.Plugin {
|
|
|
36
36
|
const logger = this.createLogger({
|
|
37
37
|
dirname: "action-custom-request",
|
|
38
38
|
filename: "%DATE%.log",
|
|
39
|
-
transports: process.env.
|
|
39
|
+
transports: process.env.APP_ENV === "production" ? ["dailyRotateFile"] : ["console"]
|
|
40
40
|
});
|
|
41
41
|
return logger;
|
|
42
42
|
}
|
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": "0.23.
|
|
4
|
+
"version": "0.23.35",
|
|
5
5
|
"description": "Sending a request to any HTTP service supports sending context data to the target service.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"Actions"
|
|
@@ -15,19 +15,19 @@
|
|
|
15
15
|
"lodash": "~4.17.21",
|
|
16
16
|
"react-i18next": "^15.2.0",
|
|
17
17
|
"react-router-dom": "6.28.1",
|
|
18
|
-
"@tachybase/components": "0.23.
|
|
19
|
-
"@tachybase/schema": "0.23.
|
|
18
|
+
"@tachybase/components": "0.23.35",
|
|
19
|
+
"@tachybase/schema": "0.23.35"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@tachybase/actions": "0.23.
|
|
23
|
-
"@tachybase/client": "0.23.
|
|
24
|
-
"@tachybase/database": "0.23.
|
|
25
|
-
"@tachybase/
|
|
26
|
-
"@tachybase/
|
|
27
|
-
"@tachybase/
|
|
28
|
-
"@tachybase/
|
|
29
|
-
"@tachybase/
|
|
30
|
-
"@tachybase/
|
|
22
|
+
"@tachybase/actions": "0.23.35",
|
|
23
|
+
"@tachybase/client": "0.23.35",
|
|
24
|
+
"@tachybase/database": "0.23.35",
|
|
25
|
+
"@tachybase/evaluators": "0.23.35",
|
|
26
|
+
"@tachybase/logger": "0.23.35",
|
|
27
|
+
"@tachybase/server": "0.23.35",
|
|
28
|
+
"@tachybase/sdk": "0.23.35",
|
|
29
|
+
"@tachybase/test": "0.23.35",
|
|
30
|
+
"@tachybase/utils": "0.23.35"
|
|
31
31
|
},
|
|
32
32
|
"description.zh-CN": "向任意 HTTP 服务发送请求,支持将上下文数据发送给目标服务。",
|
|
33
33
|
"displayName.zh-CN": "操作:自定义请求",
|