@hatchet-dev/typescript-sdk 0.4.1 → 0.4.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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/step.d.ts +1 -0
  3. package/step.js +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hatchet-dev/typescript-sdk",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Background task orchestration & visibility for developers",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
package/step.d.ts CHANGED
@@ -82,6 +82,7 @@ export declare class Context<T, K> {
82
82
  stepOutput(step: string): NextStep;
83
83
  triggeredByEvent(): boolean;
84
84
  workflowInput(): T;
85
+ workflowName(): string;
85
86
  userData(): K;
86
87
  stepName(): string;
87
88
  workflowRunId(): string;
package/step.js CHANGED
@@ -157,6 +157,9 @@ class Context {
157
157
  workflowInput() {
158
158
  return this.input;
159
159
  }
160
+ workflowName() {
161
+ return this.action.jobName;
162
+ }
160
163
  userData() {
161
164
  var _a;
162
165
  return (_a = this.data) === null || _a === void 0 ? void 0 : _a.user_data;