@nocobase/plugin-workflow-request 2.1.0-alpha.16 → 2.1.0-alpha.17

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-alpha.16",
18
- "@nocobase/plugin-workflow": "2.1.0-alpha.16",
17
+ "@nocobase/client": "2.1.0-alpha.17",
18
+ "@nocobase/plugin-workflow": "2.1.0-alpha.17",
19
19
  "react-i18next": "11.18.6",
20
- "@nocobase/server": "2.1.0-alpha.16",
20
+ "@nocobase/server": "2.1.0-alpha.17",
21
21
  "axios": "1.7.7",
22
22
  "lodash": "4.17.21",
23
- "@nocobase/plugin-file-manager": "2.1.0-alpha.16"
23
+ "@nocobase/plugin-file-manager": "2.1.0-alpha.17",
24
+ "@nocobase/utils": "2.1.0-alpha.17"
24
25
  };
@@ -1 +1 @@
1
- {"name":"joi","description":"Object schema validation","version":"17.13.3","repository":"git://github.com/hapijs/joi","main":"lib/index.js","types":"lib/index.d.ts","browser":"dist/joi-browser.min.js","files":["lib/**/*","dist/*"],"keywords":["schema","validation"],"dependencies":{"@hapi/hoek":"^9.3.0","@hapi/topo":"^5.1.0","@sideway/address":"^4.1.5","@sideway/formula":"^3.0.1","@sideway/pinpoint":"^2.0.0"},"devDependencies":{"@hapi/bourne":"2.x.x","@hapi/code":"8.x.x","@hapi/joi-legacy-test":"npm:@hapi/joi@15.x.x","@hapi/lab":"^25.1.3","@types/node":"^14.18.63","typescript":"4.3.x"},"scripts":{"prepublishOnly":"cd browser && npm install && npm run build","test":"lab -t 100 -a @hapi/code -L -Y","test-cov-html":"lab -r html -o coverage.html -a @hapi/code"},"license":"BSD-3-Clause","_lastModified":"2026-04-14T00:05:37.773Z"}
1
+ {"name":"joi","description":"Object schema validation","version":"17.13.3","repository":"git://github.com/hapijs/joi","main":"lib/index.js","types":"lib/index.d.ts","browser":"dist/joi-browser.min.js","files":["lib/**/*","dist/*"],"keywords":["schema","validation"],"dependencies":{"@hapi/hoek":"^9.3.0","@hapi/topo":"^5.1.0","@sideway/address":"^4.1.5","@sideway/formula":"^3.0.1","@sideway/pinpoint":"^2.0.0"},"devDependencies":{"@hapi/bourne":"2.x.x","@hapi/code":"8.x.x","@hapi/joi-legacy-test":"npm:@hapi/joi@15.x.x","@hapi/lab":"^25.1.3","@types/node":"^14.18.63","typescript":"4.3.x"},"scripts":{"prepublishOnly":"cd browser && npm install && npm run build","test":"lab -t 100 -a @hapi/code -L -Y","test-cov-html":"lab -r html -o coverage.html -a @hapi/code"},"license":"BSD-3-Clause","_lastModified":"2026-04-17T02:46:38.620Z"}
@@ -40,10 +40,10 @@ __export(RequestInstruction_exports, {
40
40
  });
41
41
  module.exports = __toCommonJS(RequestInstruction_exports);
42
42
  var import_joi = __toESM(require("joi"));
43
- var import_axios = __toESM(require("axios"));
44
43
  var import_lodash = require("lodash");
45
44
  var import_plugin_workflow = require("@nocobase/plugin-workflow");
46
45
  var import_plugin_file_manager = __toESM(require("@nocobase/plugin-file-manager"));
46
+ var import_utils = require("@nocobase/utils");
47
47
  function getContentTypeTransformer(mimeType, app) {
48
48
  switch (mimeType) {
49
49
  case "text/plain":
@@ -122,7 +122,7 @@ async function request(config, app) {
122
122
  headers["Content-Type"] = contentType;
123
123
  }
124
124
  const transformer = getContentTypeTransformer(contentType, app);
125
- return import_axios.default.request({
125
+ return (0, import_utils.serverRequest)({
126
126
  url: (0, import_lodash.trim)(url),
127
127
  method,
128
128
  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-alpha.16",
9
+ "version": "2.1.0-alpha.17",
10
10
  "license": "Apache-2.0",
11
11
  "main": "./dist/server/index.js",
12
12
  "homepage": "https://docs.nocobase.com/handbook/workflow-request",
@@ -27,7 +27,7 @@
27
27
  "@nocobase/server": "2.x",
28
28
  "@nocobase/test": "2.x"
29
29
  },
30
- "gitHead": "14cf3dbdb9f0a9669602de4ad21a9464fa27c105",
30
+ "gitHead": "586cb00f56557e66168b9720d0e0193a1b752067",
31
31
  "keywords": [
32
32
  "Workflow"
33
33
  ]