@nocobase/plugin-workflow-request-interceptor 2.3.0-alpha.1 → 3.0.0-alpha.1
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
CHANGED
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
11
|
"@formily/react": "2.3.7",
|
|
12
|
-
"@nocobase/client": "
|
|
13
|
-
"@nocobase/plugin-workflow": "
|
|
12
|
+
"@nocobase/client": "3.0.0-alpha.1",
|
|
13
|
+
"@nocobase/plugin-workflow": "3.0.0-alpha.1",
|
|
14
14
|
"react": "18.2.0",
|
|
15
|
-
"@nocobase/flow-engine": "
|
|
15
|
+
"@nocobase/flow-engine": "3.0.0-alpha.1",
|
|
16
16
|
"antd": "5.24.2",
|
|
17
|
-
"@nocobase/client-v2": "
|
|
18
|
-
"@nocobase/server": "
|
|
17
|
+
"@nocobase/client-v2": "3.0.0-alpha.1",
|
|
18
|
+
"@nocobase/server": "3.0.0-alpha.1",
|
|
19
19
|
"lodash": "4.18.1",
|
|
20
|
-
"@nocobase/plugin-error-handler": "
|
|
21
|
-
"@nocobase/data-source-manager": "
|
|
20
|
+
"@nocobase/plugin-error-handler": "3.0.0-alpha.1",
|
|
21
|
+
"@nocobase/data-source-manager": "3.0.0-alpha.1"
|
|
22
22
|
};
|
|
@@ -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-07-
|
|
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-07-30T03:57:14.347Z"}
|
|
@@ -201,7 +201,10 @@ class RequestInterceptionTrigger extends import_plugin_workflow.Trigger {
|
|
|
201
201
|
};
|
|
202
202
|
constructor(workflow) {
|
|
203
203
|
super(workflow);
|
|
204
|
-
workflow.app.dataSourceManager.use(this.middleware
|
|
204
|
+
workflow.app.dataSourceManager.use(this.middleware, {
|
|
205
|
+
after: "parseVariables",
|
|
206
|
+
before: "default"
|
|
207
|
+
});
|
|
205
208
|
workflow.app.pm.get(import_plugin_error_handler.default).errorHandler.register(
|
|
206
209
|
(err) => err instanceof RequestInterceptionError || err.name === "RequestInterceptionError",
|
|
207
210
|
async (err, ctx, next) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nocobase/plugin-workflow-request-interceptor",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha.1",
|
|
4
4
|
"displayName": "Workflow: Pre-action event",
|
|
5
5
|
"displayName.zh-CN": "工作流:操作前事件",
|
|
6
6
|
"description": "Triggered before the execution of a request initiated through an action button or API, such as before adding, updating, or deleting data. Suitable for data validation and logic judgment before action, and the request could be rejected by using the \"End process\" node.",
|
|
@@ -33,6 +33,6 @@
|
|
|
33
33
|
"keywords": [
|
|
34
34
|
"Workflow"
|
|
35
35
|
],
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "22d8be8ece179cfa5c8a4ebb2c896c92bd418e03",
|
|
37
37
|
"license": "Apache-2.0"
|
|
38
38
|
}
|