@alineo-labs/workflow 0.1.3 → 0.1.5

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.d.mts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { ExecCodeOptions, ExecOptions, Sandbox, SandboxOptions } from "@alineo-labs/sandbox";
2
-
3
2
  //#region src/sandbox-builder.d.ts
4
3
  /** An operation queued on a SandboxBuilder and executed later. */
5
4
  type SandboxOp = {
@@ -74,7 +73,7 @@ interface ForEachOptions {
74
73
  * .pipe(process.stdout);
75
74
  * ```
76
75
  */
77
- declare class SandboxBuilder {
76
+ export declare class SandboxBuilder {
78
77
  readonly _ops: SandboxOp[];
79
78
  /** Queue a shell command. */
80
79
  exec(cmd: string, opts?: ExecOptions): this;
@@ -161,7 +160,7 @@ interface SequenceStep {
161
160
  * .pipe(process.stdout);
162
161
  * ```
163
162
  */
164
- declare class WorkflowBuilder {
163
+ export declare class WorkflowBuilder {
165
164
  private readonly _client;
166
165
  private readonly _stages;
167
166
  constructor(client: Sandbox);
@@ -226,6 +225,6 @@ declare class WorkflowBuilder {
226
225
  * .pipe(process.stdout);
227
226
  * ```
228
227
  */
229
- declare function workflow(client: Sandbox): WorkflowBuilder;
228
+ export declare function workflow(client: Sandbox): WorkflowBuilder;
230
229
  //#endregion
231
- export { type ForEachOptions, type RetryOptions, SandboxBuilder, type SandboxOp, type SequenceStep, type WhenPredicate, WorkflowBuilder, type WorkflowResult, workflow };
230
+ export type { ForEachOptions, RetryOptions, SandboxOp, SequenceStep, WhenPredicate, WorkflowResult };
package/dist/index.mjs CHANGED
@@ -202,9 +202,7 @@ async function flushOps(sandbox, ops, ctx) {
202
202
  }
203
203
  break;
204
204
  }
205
- case "forEach":
206
- await flushForEach(sandbox, op.items, op.fn, op.opts, ctx);
207
- break;
205
+ case "forEach": await flushForEach(sandbox, op.items, op.fn, op.opts, ctx);
208
206
  }
209
207
  }
210
208
  async function flushRetry(sandbox, fn, maxAttempts, opts, ctx) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alineo-labs/workflow",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,12 +29,12 @@
29
29
  "test:watch": "vitest"
30
30
  },
31
31
  "dependencies": {
32
- "@alineo-labs/sandbox": "0.4.0"
32
+ "@alineo-labs/sandbox": "0.4.2"
33
33
  },
34
34
  "devDependencies": {
35
- "bun-types": "1.3.14",
36
- "tsdown": "0.22.3",
35
+ "bun-types": "1.4.2",
36
+ "tsdown": "0.23.0",
37
37
  "typescript": "6.0.3",
38
- "vitest": "4.1.9"
38
+ "vitest": "5.0.0"
39
39
  }
40
40
  }