@moostjs/event-wf 0.6.5 → 0.6.6
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/index.cjs +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -239,6 +239,7 @@ const CONTEXT_TYPE = "WF";
|
|
|
239
239
|
resolveArgs: opts.resolveArgs,
|
|
240
240
|
manualUnscope: true,
|
|
241
241
|
targetPath,
|
|
242
|
+
controllerPrefix: opts.prefix,
|
|
242
243
|
handlerType: handler.type
|
|
243
244
|
});
|
|
244
245
|
if (handler.type === "WF_STEP") {
|
|
@@ -262,7 +263,7 @@ const CONTEXT_TYPE = "WF";
|
|
|
262
263
|
let wfSchema = mate.read(opts.fakeInstance, opts.method)?.wfSchema;
|
|
263
264
|
if (!wfSchema) wfSchema = mate.read(opts.fakeInstance)?.wfSchema;
|
|
264
265
|
const _fn = async () => {
|
|
265
|
-
(0, moost.setControllerContext)(this.moost, "bindHandler", targetPath);
|
|
266
|
+
(0, moost.setControllerContext)(this.moost, "bindHandler", targetPath, { prefix: opts.prefix });
|
|
266
267
|
return fn();
|
|
267
268
|
};
|
|
268
269
|
this.toInit.push(() => {
|
package/dist/index.mjs
CHANGED
|
@@ -216,6 +216,7 @@ const CONTEXT_TYPE = "WF";
|
|
|
216
216
|
resolveArgs: opts.resolveArgs,
|
|
217
217
|
manualUnscope: true,
|
|
218
218
|
targetPath,
|
|
219
|
+
controllerPrefix: opts.prefix,
|
|
219
220
|
handlerType: handler.type
|
|
220
221
|
});
|
|
221
222
|
if (handler.type === "WF_STEP") {
|
|
@@ -239,7 +240,7 @@ const CONTEXT_TYPE = "WF";
|
|
|
239
240
|
let wfSchema = mate.read(opts.fakeInstance, opts.method)?.wfSchema;
|
|
240
241
|
if (!wfSchema) wfSchema = mate.read(opts.fakeInstance)?.wfSchema;
|
|
241
242
|
const _fn = async () => {
|
|
242
|
-
setControllerContext(this.moost, "bindHandler", targetPath);
|
|
243
|
+
setControllerContext(this.moost, "bindHandler", targetPath, { prefix: opts.prefix });
|
|
243
244
|
return fn();
|
|
244
245
|
};
|
|
245
246
|
this.toInit.push(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moostjs/event-wf",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"description": "@moostjs/event-wf",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"composables",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@prostojs/mate": "^0.4.0",
|
|
55
55
|
"@wooksjs/event-core": "^0.7.8",
|
|
56
56
|
"wooks": "^0.7.8",
|
|
57
|
-
"moost": "^0.6.
|
|
57
|
+
"moost": "^0.6.6"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"pub": "pnpm publish --access public",
|