@nocobase/plugin-workflow-request 1.4.29 → 1.4.31

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.
@@ -13,10 +13,10 @@ module.exports = {
13
13
  "@formily/shared": "2.3.2",
14
14
  "@formily/react": "2.3.0",
15
15
  "@formily/antd-v5": "1.1.9",
16
- "@nocobase/plugin-workflow": "1.4.29",
17
- "@nocobase/client": "1.4.29",
16
+ "@nocobase/plugin-workflow": "1.4.31",
17
+ "@nocobase/client": "1.4.31",
18
18
  "react-i18next": "11.18.6",
19
- "@nocobase/server": "1.4.29",
19
+ "@nocobase/server": "1.4.31",
20
20
  "axios": "1.7.7",
21
21
  "lodash": "4.17.21"
22
22
  };
@@ -19,7 +19,7 @@ export type RequestInstructionConfig = Pick<AxiosRequestConfig, 'url' | 'method'
19
19
  onlyData?: boolean;
20
20
  };
21
21
  export default class extends Instruction {
22
- run(node: FlowNodeModel, prevJob: any, processor: Processor): Promise<import("@nocobase/plugin-workflow").JobModel | {
22
+ run(node: FlowNodeModel, prevJob: any, processor: Processor): Promise<{
23
23
  status: 1 | -1;
24
24
  result: any;
25
25
  }>;
@@ -162,7 +162,7 @@ class RequestInstruction_default extends import_plugin_workflow.Instruction {
162
162
  });
163
163
  });
164
164
  processor.logger.info(`request (#${node.id}) sent to "${config.url}", waiting for response...`);
165
- return job;
165
+ return null;
166
166
  }
167
167
  async resume(node, job, processor) {
168
168
  const { ignoreFail } = node.config;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "displayName.zh-CN": "工作流:HTTP 请求节点",
5
5
  "description": "Send HTTP requests to any HTTP service for data interaction in workflow.",
6
6
  "description.zh-CN": "可用于在工作流中向任意 HTTP 服务发送请求,进行数据交互。",
7
- "version": "1.4.29",
7
+ "version": "1.4.31",
8
8
  "license": "AGPL-3.0",
9
9
  "main": "./dist/server/index.js",
10
10
  "homepage": "https://docs.nocobase.com/handbook/workflow-request",
@@ -22,7 +22,7 @@
22
22
  "@nocobase/server": "1.x",
23
23
  "@nocobase/test": "1.x"
24
24
  },
25
- "gitHead": "d18c11cd4992da01f61eacb033d3b1d601ffe338",
25
+ "gitHead": "931861310dfd8ab019906f8a3a73576922145e63",
26
26
  "keywords": [
27
27
  "Workflow"
28
28
  ]