@nocobase/plugin-workflow-test 1.8.0-beta.9 → 1.8.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
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
module.exports = {
|
|
11
|
-
"@nocobase/client": "1.8.
|
|
12
|
-
"@nocobase/utils": "1.8.
|
|
11
|
+
"@nocobase/client": "1.8.1",
|
|
12
|
+
"@nocobase/utils": "1.8.1",
|
|
13
13
|
"lodash": "4.17.21",
|
|
14
|
-
"@nocobase/test": "1.8.
|
|
15
|
-
"@nocobase/server": "1.8.
|
|
16
|
-
"@nocobase/data-source-manager": "1.8.
|
|
17
|
-
"@nocobase/database": "1.8.
|
|
14
|
+
"@nocobase/test": "1.8.1",
|
|
15
|
+
"@nocobase/server": "1.8.1",
|
|
16
|
+
"@nocobase/data-source-manager": "1.8.1",
|
|
17
|
+
"@nocobase/database": "1.8.1"
|
|
18
18
|
};
|
package/dist/server/index.js
CHANGED
|
@@ -53,6 +53,19 @@ declare const _default: {
|
|
|
53
53
|
run(node: any, input: any, processor: any): Promise<any>;
|
|
54
54
|
resume(node: any, job: any, processor: any): any;
|
|
55
55
|
};
|
|
56
|
+
timeConsume: {
|
|
57
|
+
run({ config }: {
|
|
58
|
+
config: any;
|
|
59
|
+
}, input: any, processor: any): Promise<{
|
|
60
|
+
status: number;
|
|
61
|
+
}>;
|
|
62
|
+
};
|
|
63
|
+
recordAppId: {
|
|
64
|
+
run(node: any, input: any, processor: any): {
|
|
65
|
+
status: number;
|
|
66
|
+
result: any;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
56
69
|
customizedSuccess: {
|
|
57
70
|
run(node: any, input: any, processor: any): {
|
|
58
71
|
status: number;
|
|
@@ -29,6 +29,7 @@ __export(instructions_exports, {
|
|
|
29
29
|
default: () => instructions_default
|
|
30
30
|
});
|
|
31
31
|
module.exports = __toCommonJS(instructions_exports);
|
|
32
|
+
var import_test = require("@nocobase/test");
|
|
32
33
|
var import_utils = require("@nocobase/utils");
|
|
33
34
|
var instructions_default = {
|
|
34
35
|
echo: {
|
|
@@ -119,6 +120,23 @@ var instructions_default = {
|
|
|
119
120
|
return job;
|
|
120
121
|
}
|
|
121
122
|
},
|
|
123
|
+
timeConsume: {
|
|
124
|
+
async run({ config }, input, processor) {
|
|
125
|
+
const { duration = 1e3 } = config;
|
|
126
|
+
await (0, import_test.sleep)(duration);
|
|
127
|
+
return {
|
|
128
|
+
status: 1
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
recordAppId: {
|
|
133
|
+
run(node, input, processor) {
|
|
134
|
+
return {
|
|
135
|
+
status: 1,
|
|
136
|
+
result: processor.options.plugin.app.instanceId
|
|
137
|
+
};
|
|
138
|
+
}
|
|
139
|
+
},
|
|
122
140
|
customizedSuccess: {
|
|
123
141
|
run(node, input, processor) {
|
|
124
142
|
return {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@nocobase/plugin-workflow-test",
|
|
3
3
|
"displayName": "Workflow: test kit",
|
|
4
4
|
"displayName.zh-CN": "工作流:测试工具包",
|
|
5
|
-
"version": "1.8.
|
|
5
|
+
"version": "1.8.1",
|
|
6
6
|
"license": "AGPL-3.0",
|
|
7
7
|
"main": "dist/server/index.js",
|
|
8
8
|
"types": "./dist/server/index.d.ts",
|
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
"@nocobase/server": "1.x",
|
|
12
12
|
"@nocobase/test": "1.x"
|
|
13
13
|
},
|
|
14
|
-
"gitHead": "
|
|
14
|
+
"gitHead": "85bbe64895160a66603856c6ff0c05e4ebb5fbc2"
|
|
15
15
|
}
|