@pogodisco/zephyr 1.5.0 → 1.5.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.
@@ -132,7 +132,7 @@ Input = unknown, Steps extends StepDef<Reg, any, any>[] = [], Results = {}, Outp
132
132
  kind: "loop";
133
133
  items: typeof items;
134
134
  };
135
- }) => ResolveOut): WorkflowBuilder<Reg, Services, WFReg, Input, [
135
+ }) => ResolveOut, options?: StepOptions<Input, Results>): WorkflowBuilder<Reg, Services, WFReg, Input, [
136
136
  ...Steps,
137
137
  StepDef<Reg, ID, any>
138
138
  ], Simplify<Results & {
@@ -100,7 +100,7 @@ export class WorkflowBuilder {
100
100
  seq(id, action, resolve, options) {
101
101
  return this.step(id, action, resolve, undefined, options);
102
102
  }
103
- service(id, service, method, resolve) {
103
+ service(id, service, method, resolve, options) {
104
104
  const deps = [...this.frontier];
105
105
  this.steps.push({
106
106
  id,
@@ -112,6 +112,7 @@ export class WorkflowBuilder {
112
112
  resolve: resolve ?? (() => ({ kind: "none" })),
113
113
  dependsOn: deps,
114
114
  when: this.pendingWhen,
115
+ options,
115
116
  });
116
117
  this.frontier = [id];
117
118
  return this;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pogodisco/zephyr",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },