@nocobase/plugin-action-custom-request 2.3.0-beta.10 → 2.3.0-beta.11
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 +5 -3
- package/package.json +2 -2
package/dist/externalVersion.js
CHANGED
|
@@ -8,23 +8,23 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "2.3.0-beta.
|
|
11
|
+
"@nocobase/client": "2.3.0-beta.11",
|
|
12
12
|
"react": "18.2.0",
|
|
13
13
|
"react-i18next": "11.18.6",
|
|
14
14
|
"@formily/react": "2.3.7",
|
|
15
|
-
"@nocobase/client-v2": "2.3.0-beta.
|
|
16
|
-
"@nocobase/flow-engine": "2.3.0-beta.
|
|
15
|
+
"@nocobase/client-v2": "2.3.0-beta.11",
|
|
16
|
+
"@nocobase/flow-engine": "2.3.0-beta.11",
|
|
17
17
|
"antd": "5.24.2",
|
|
18
18
|
"@emotion/css": "11.13.0",
|
|
19
|
-
"@nocobase/utils": "2.3.0-beta.
|
|
20
|
-
"@nocobase/logger": "2.3.0-beta.
|
|
21
|
-
"@nocobase/server": "2.3.0-beta.
|
|
22
|
-
"@nocobase/test": "2.3.0-beta.
|
|
19
|
+
"@nocobase/utils": "2.3.0-beta.11",
|
|
20
|
+
"@nocobase/logger": "2.3.0-beta.11",
|
|
21
|
+
"@nocobase/server": "2.3.0-beta.11",
|
|
22
|
+
"@nocobase/test": "2.3.0-beta.11",
|
|
23
23
|
"@formily/antd-v5": "1.2.3",
|
|
24
24
|
"lodash": "4.18.1",
|
|
25
25
|
"@formily/shared": "2.3.7",
|
|
26
|
-
"@nocobase/actions": "2.3.0-beta.
|
|
27
|
-
"@nocobase/evaluators": "2.3.0-beta.
|
|
26
|
+
"@nocobase/actions": "2.3.0-beta.11",
|
|
27
|
+
"@nocobase/evaluators": "2.3.0-beta.11",
|
|
28
28
|
"axios": "1.7.7",
|
|
29
|
-
"@nocobase/database": "2.3.0-beta.
|
|
29
|
+
"@nocobase/database": "2.3.0-beta.11"
|
|
30
30
|
};
|
|
@@ -230,12 +230,14 @@ async function send(ctx, next) {
|
|
|
230
230
|
$nSelectedRecord
|
|
231
231
|
};
|
|
232
232
|
applyVarsToVariables(variables, vars);
|
|
233
|
+
const urlVariables = {
|
|
234
|
+
...variables,
|
|
235
|
+
$env: ctx.app.environment.getNonSecretVariables()
|
|
236
|
+
};
|
|
233
237
|
const axiosRequestConfig = {
|
|
234
238
|
baseURL: getRequestBaseURL(ctx),
|
|
235
239
|
...options,
|
|
236
|
-
|
|
237
|
-
// relative paths pointing to the same server are not subject to the whitelist.
|
|
238
|
-
url: getParsedValue(url, variables),
|
|
240
|
+
url: getParsedValue(url, urlVariables),
|
|
239
241
|
headers: {
|
|
240
242
|
Authorization: "Bearer " + ctx.getBearerToken(),
|
|
241
243
|
...getHeaders(ctx.headers),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-action-custom-request",
|
|
3
|
-
"version": "2.3.0-beta.
|
|
3
|
+
"version": "2.3.0-beta.11",
|
|
4
4
|
"main": "dist/server/index.js",
|
|
5
5
|
"homepage": "https://docs.nocobase.com/handbook/action-custom-request",
|
|
6
6
|
"homepage.ru-RU": "https://docs-ru.nocobase.com/handbook/action-custom-request",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"@nocobase/server": "2.x",
|
|
35
35
|
"@nocobase/test": "2.x"
|
|
36
36
|
},
|
|
37
|
-
"gitHead": "
|
|
37
|
+
"gitHead": "e81c2c69d55f13e4d237c420a51ebad1e9dae515",
|
|
38
38
|
"keywords": [
|
|
39
39
|
"Actions"
|
|
40
40
|
]
|