@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.
@@ -8,23 +8,23 @@
8
8
  */
9
9
 
10
10
  module.exports = {
11
- "@nocobase/client": "2.3.0-beta.10",
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.10",
16
- "@nocobase/flow-engine": "2.3.0-beta.10",
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.10",
20
- "@nocobase/logger": "2.3.0-beta.10",
21
- "@nocobase/server": "2.3.0-beta.10",
22
- "@nocobase/test": "2.3.0-beta.10",
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.10",
27
- "@nocobase/evaluators": "2.3.0-beta.10",
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.10"
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
- // safeRequest checks this url value (before baseURL combination) so that
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.10",
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": "7aa3dce6cf3201752882f7012c72997898015d89",
37
+ "gitHead": "e81c2c69d55f13e4d237c420a51ebad1e9dae515",
38
38
  "keywords": [
39
39
  "Actions"
40
40
  ]