@nocobase/plugin-workflow-request 2.1.0-beta.13 → 2.1.0-beta.14

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.
@@ -14,11 +14,12 @@ module.exports = {
14
14
  "@formily/react": "2.3.7",
15
15
  "@formily/antd-v5": "1.2.3",
16
16
  "@ant-design/icons": "5.6.1",
17
- "@nocobase/client": "2.1.0-beta.13",
18
- "@nocobase/plugin-workflow": "2.1.0-beta.13",
17
+ "@nocobase/client": "2.1.0-beta.14",
18
+ "@nocobase/plugin-workflow": "2.1.0-beta.14",
19
19
  "react-i18next": "11.18.6",
20
- "@nocobase/server": "2.1.0-beta.13",
20
+ "@nocobase/server": "2.1.0-beta.14",
21
21
  "axios": "1.7.7",
22
- "lodash": "4.17.21",
23
- "@nocobase/plugin-file-manager": "2.1.0-beta.13"
22
+ "lodash": "4.18.1",
23
+ "@nocobase/plugin-file-manager": "2.1.0-beta.14",
24
+ "@nocobase/utils": "2.1.0-beta.14"
24
25
  };
@@ -39,10 +39,10 @@ __export(RequestInstruction_exports, {
39
39
  default: () => RequestInstruction_default
40
40
  });
41
41
  module.exports = __toCommonJS(RequestInstruction_exports);
42
- var import_axios = __toESM(require("axios"));
43
42
  var import_lodash = require("lodash");
44
43
  var import_plugin_workflow = require("@nocobase/plugin-workflow");
45
44
  var import_plugin_file_manager = __toESM(require("@nocobase/plugin-file-manager"));
45
+ var import_utils = require("@nocobase/utils");
46
46
  function getContentTypeTransformer(mimeType, app) {
47
47
  switch (mimeType) {
48
48
  case "text/plain":
@@ -102,7 +102,7 @@ async function request(config, app) {
102
102
  headers["Content-Type"] = contentType;
103
103
  }
104
104
  const transformer = getContentTypeTransformer(contentType, app);
105
- return import_axios.default.request({
105
+ return (0, import_utils.serverRequest)({
106
106
  url: (0, import_lodash.trim)(url),
107
107
  method,
108
108
  headers,
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "description": "Send HTTP requests to any HTTP service for data interaction in workflow.",
7
7
  "description.ru-RU": "Отправляет HTTP-запросы к любому HTTP-сервису для взаимодействия с данными в рабочем процессе.",
8
8
  "description.zh-CN": "可用于在工作流中向任意 HTTP 服务发送请求,进行数据交互。",
9
- "version": "2.1.0-beta.13",
9
+ "version": "2.1.0-beta.14",
10
10
  "license": "Apache-2.0",
11
11
  "main": "./dist/server/index.js",
12
12
  "homepage": "https://docs.nocobase.com/handbook/workflow-request",
@@ -26,7 +26,7 @@
26
26
  "@nocobase/server": "2.x",
27
27
  "@nocobase/test": "2.x"
28
28
  },
29
- "gitHead": "691716e5f4e5f8bd3859d65bc8a29b4e3c32209b",
29
+ "gitHead": "cd55c9a14596d834c30c83a82c38f1f719f7aac4",
30
30
  "keywords": [
31
31
  "Workflow"
32
32
  ]