@wooksjs/event-wf 0.4.13 → 0.4.15

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 CHANGED
@@ -73,8 +73,8 @@ class WooksWf extends wooks.WooksAdapterBase {
73
73
  const step = wf.createStep(id, opts);
74
74
  return this.on('WF_STEP', id, () => step);
75
75
  }
76
- flow(id, schema, init) {
77
- this.wf.register(id, schema);
76
+ flow(id, schema, prefix, init) {
77
+ this.wf.register(id, schema, prefix);
78
78
  return this.on('WF_FLOW', id, () => ({ init, id }));
79
79
  }
80
80
  start(schemaId, inputContext, input, spy, cleanup) {
package/dist/index.d.ts CHANGED
@@ -115,7 +115,7 @@ declare class WooksWf<T> extends WooksAdapterBase {
115
115
  input?: D;
116
116
  handler: string | TStepHandler<T, I, D>;
117
117
  }): _prostojs_router.TProstoRouterPathHandle<Record<string, string | string[]>>;
118
- flow(id: string, schema: TWorkflowSchema<T>, init?: () => void | Promise<void>): _prostojs_router.TProstoRouterPathHandle<Record<string, string | string[]>>;
118
+ flow(id: string, schema: TWorkflowSchema<T>, prefix?: string, init?: () => void | Promise<void>): _prostojs_router.TProstoRouterPathHandle<Record<string, string | string[]>>;
119
119
  start<I>(schemaId: string, inputContext: T, input?: I, spy?: TWorkflowSpy<T, I>, cleanup?: () => void): Promise<TFlowOutput<T, I>>;
120
120
  resume<I>(schemaId: string, state: {
121
121
  indexes: number[];
package/dist/index.mjs CHANGED
@@ -71,8 +71,8 @@ class WooksWf extends WooksAdapterBase {
71
71
  const step = createStep(id, opts);
72
72
  return this.on('WF_STEP', id, () => step);
73
73
  }
74
- flow(id, schema, init) {
75
- this.wf.register(id, schema);
74
+ flow(id, schema, prefix, init) {
75
+ this.wf.register(id, schema, prefix);
76
76
  return this.on('WF_FLOW', id, () => ({ init, id }));
77
77
  }
78
78
  start(schemaId, inputContext, input, spy, cleanup) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wooksjs/event-wf",
3
- "version": "0.4.13",
3
+ "version": "0.4.15",
4
4
  "description": "@wooksjs/event-wf",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
@@ -33,12 +33,12 @@
33
33
  "author": "Artem Maltsev",
34
34
  "license": "MIT",
35
35
  "peerDependencies": {
36
- "wooks": "0.4.13",
37
- "@wooksjs/event-core": "0.4.13"
36
+ "wooks": "0.4.15",
37
+ "@wooksjs/event-core": "0.4.15"
38
38
  },
39
39
  "dependencies": {
40
40
  "@prostojs/logger": "^0.4.0",
41
- "@prostojs/wf": "^0.0.10"
41
+ "@prostojs/wf": "^0.0.12"
42
42
  },
43
43
  "bugs": {
44
44
  "url": "https://github.com/wooksjs/wooksjs/issues"