yieldstar 0.1.0-alpha.0 → 0.1.0

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.js CHANGED
@@ -132,6 +132,7 @@ import {
132
132
  StepDelay as StepDelay2,
133
133
  StepCacheCheck
134
134
  } from "@yieldstar/core";
135
+ var stepRunner = { run, delay, poll };
135
136
  async function* run(arg1, arg2) {
136
137
  let key = null;
137
138
  let fn;
@@ -209,7 +210,6 @@ async function* poll(arg1, arg2, arg3) {
209
210
  yield* run(task);
210
211
  }
211
212
  }
212
- var stepRunner = { run, delay, poll };
213
213
 
214
214
  // src/exports/workflow.ts
215
215
  import {
@@ -246,7 +246,7 @@ function createWorkflow(workflowFn) {
246
246
  stepKey = iteratorResult.value.key;
247
247
  } else {
248
248
  keylessStepIndex++;
249
- stepKey = `\$\$step-index-${keylessStepIndex}\$\$`;
249
+ stepKey = `$$step-index-${keylessStepIndex}$$`;
250
250
  }
251
251
  let cached = await heapClient.readStep({
252
252
  executionId,
@@ -275,7 +275,8 @@ function createWorkflow(workflowFn) {
275
275
  throw new Error("Step runners must yield a CacheCheck object");
276
276
  }
277
277
  if (isIterable(stepResponse)) {
278
- console.log("[ERR] Steps must be yielded using yield*\n");
278
+ console.log(`[ERR] Steps must be yielded using yield*
279
+ `);
279
280
  stepResponse = new StepInvalid;
280
281
  } else if (!(stepResponse instanceof StepResponse3)) {
281
282
  console.log(`[ERR] Iterators should yield a StepResponse. Got ${JSON.stringify(stepResponse)}`);
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "yieldstar",
3
- "version": "0.1.0-alpha.0",
3
+ "version": "0.1.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "src/index.ts",
7
+ "scripts": {
8
+ "build": "bun build src/index.ts --outfile dist/index.js --target bun --packages=external"
9
+ },
7
10
  "dependencies": {
8
11
  "serialize-error": "^11.0.3"
9
12
  },
10
13
  "devDependencies": {
11
14
  "@types/bun": "latest",
12
- "@yieldstar/core": "0.1.0"
13
- },
14
- "scripts": {
15
- "build": "bun build src/index.ts --outfile dist/index.js --target bun --packages=external"
15
+ "@yieldstar/core": "workspace:*"
16
16
  }
17
- }
17
+ }
File without changes