@hatchet-dev/typescript-sdk 1.9.7 → 1.9.8
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 +2 -2
- package/v1/client/worker/worker-internal.js +2 -2
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hatchet-dev/typescript-sdk",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.8",
|
|
4
4
|
"description": "Background task orchestration & visibility for developers",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"grpc-tools": "^1.13.0",
|
|
44
44
|
"jest": "^29.7.0",
|
|
45
45
|
"jest-tsd": "^0.2.2",
|
|
46
|
-
"pino": "^9.
|
|
46
|
+
"pino": "^9.12.0",
|
|
47
47
|
"prettier": "^3.5.3",
|
|
48
48
|
"resolve-tspaths": "^0.8.23",
|
|
49
49
|
"ts-jest": "^29.3.1",
|
|
@@ -127,7 +127,7 @@ class V1Worker {
|
|
|
127
127
|
try {
|
|
128
128
|
const { concurrency } = workflow;
|
|
129
129
|
let onFailureTask;
|
|
130
|
-
if (
|
|
130
|
+
if (workflow.onFailure && typeof workflow.onFailure === 'function') {
|
|
131
131
|
onFailureTask = {
|
|
132
132
|
readableId: 'on-failure-task',
|
|
133
133
|
action: onFailureTaskName(workflow),
|
|
@@ -140,7 +140,7 @@ class V1Worker {
|
|
|
140
140
|
concurrency: [],
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
|
-
if (
|
|
143
|
+
if (workflow.onFailure && typeof workflow.onFailure === 'object') {
|
|
144
144
|
const onFailure = workflow.onFailure;
|
|
145
145
|
onFailureTask = {
|
|
146
146
|
readableId: 'on-failure-task',
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const HATCHET_VERSION = "1.9.
|
|
1
|
+
export declare const HATCHET_VERSION = "1.9.8";
|
package/version.js
CHANGED