@hatchet-dev/typescript-sdk 1.0.5 → 1.0.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hatchet-dev/typescript-sdk",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "description": "Background task orchestration & visibility for developers",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
package/step.js CHANGED
@@ -361,14 +361,14 @@ class Context {
361
361
  bulkRunChildren(children) {
362
362
  return __awaiter(this, void 0, void 0, function* () {
363
363
  const runs = yield this.bulkRunNoWaitChildren(children);
364
- const res = runs.map((run, index) => {
364
+ const res = runs.map((run, index) => __awaiter(this, void 0, void 0, function* () {
365
365
  const wf = children[index].workflow;
366
366
  if (wf instanceof declaration_1.TaskWorkflowDeclaration) {
367
367
  // eslint-disable-next-line no-underscore-dangle
368
- return run.output[wf._standalone_task_name];
368
+ return (yield run.output)[wf._standalone_task_name];
369
369
  }
370
370
  return run.output;
371
- });
371
+ }));
372
372
  return Promise.all(res);
373
373
  });
374
374
  }
@@ -439,7 +439,7 @@ class Context {
439
439
  // eslint-disable-next-line no-underscore-dangle
440
440
  if (workflow._standalone_task_name) {
441
441
  // eslint-disable-next-line no-underscore-dangle
442
- return run.output[workflow._standalone_task_name];
442
+ return (yield run.output)[workflow._standalone_task_name];
443
443
  }
444
444
  }
445
445
  return run.output;
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const HATCHET_VERSION = "1.0.5";
1
+ export declare const HATCHET_VERSION = "1.0.6";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.HATCHET_VERSION = void 0;
4
- exports.HATCHET_VERSION = '1.0.5';
4
+ exports.HATCHET_VERSION = '1.0.6';