@hatchet-dev/typescript-sdk 0.8.0-alpha.1 → 0.8.0-alpha.2

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.
@@ -203,14 +203,15 @@ class Worker {
203
203
  }
204
204
  });
205
205
  const future = new hatchet_promise_1.default((() => __awaiter(this, void 0, void 0, function* () {
206
+ let result;
206
207
  try {
207
- yield run();
208
+ result = yield run();
208
209
  }
209
210
  catch (e) {
210
211
  yield failure(e);
211
212
  return;
212
213
  }
213
- yield success(null);
214
+ yield success(result);
214
215
  }))());
215
216
  this.futures[action.stepRunId] = future;
216
217
  // Send the action event to the dispatcher
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hatchet-dev/typescript-sdk",
3
- "version": "0.8.0-alpha.1",
3
+ "version": "0.8.0-alpha.2",
4
4
  "description": "Background task orchestration & visibility for developers",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -51,7 +51,7 @@
51
51
  "worker:logger": "npm run exec -- ./examples/logger.ts",
52
52
  "api": "npm run exec -- ./examples/api.ts",
53
53
  "prepublish": "cp package.json dist/package.json;",
54
- "publish:ci": "rm -rf ./dist && npm run tsc:build && npm run prepublish && cd dist && npm publish --access public --no-git-checks",
54
+ "publish:ci": "rm -rf ./dist && npm run tsc:build && npm run prepublish && cd dist && npm publish --access public --no-git-checks --tag=alpha",
55
55
  "generate-docs": "typedoc"
56
56
  },
57
57
  "keywords": [],