@hatchet-dev/typescript-sdk 1.8.1 → 1.8.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.
- package/package.json +1 -1
- package/v1/client/worker/worker-internal.js +2 -7
- package/v1/client/worker/worker.js +1 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
|
@@ -93,7 +93,7 @@ class V1Worker {
|
|
|
93
93
|
}
|
|
94
94
|
registerDurableActionsV1(workflow) {
|
|
95
95
|
const newActions = workflow._durableTasks.reduce((acc, task) => {
|
|
96
|
-
acc[`${workflow.name}:${task.name.toLowerCase()}`] = (ctx) => task.fn(ctx.input, ctx);
|
|
96
|
+
acc[`${(0, apply_namespace_1.applyNamespace)(workflow.name, this.client.config.namespace).toLowerCase()}:${task.name.toLowerCase()}`] = (ctx) => task.fn(ctx.input, ctx);
|
|
97
97
|
return acc;
|
|
98
98
|
}, {});
|
|
99
99
|
this.action_registry = Object.assign(Object.assign({}, this.action_registry), newActions);
|
|
@@ -254,12 +254,7 @@ class V1Worker {
|
|
|
254
254
|
catch (e) {
|
|
255
255
|
throw new hatchet_error_1.default(`Could not register workflow: ${e.message}`);
|
|
256
256
|
}
|
|
257
|
-
|
|
258
|
-
this.registerActionsV1(workflow);
|
|
259
|
-
}
|
|
260
|
-
else {
|
|
261
|
-
this.registerDurableActionsV1(workflow);
|
|
262
|
-
}
|
|
257
|
+
this.registerActionsV1(workflow);
|
|
263
258
|
});
|
|
264
259
|
}
|
|
265
260
|
registerWorkflow(initWorkflow) {
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const HATCHET_VERSION = "1.8.
|
|
1
|
+
export declare const HATCHET_VERSION = "1.8.2";
|
package/version.js
CHANGED