@hatchet-dev/typescript-sdk 0.15.2 → 0.15.3
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/clients/worker/handler.js +5 -1
- package/package.json +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
|
@@ -83,7 +83,11 @@ class WebhookHandler {
|
|
|
83
83
|
return;
|
|
84
84
|
}
|
|
85
85
|
if (req.method === 'PUT') {
|
|
86
|
-
|
|
86
|
+
let { body } = req;
|
|
87
|
+
if (typeof body !== 'string') {
|
|
88
|
+
body = JSON.stringify(body);
|
|
89
|
+
}
|
|
90
|
+
this.getHealthcheckResponse(body, req.headers['x-hatchet-signature'], secret)
|
|
87
91
|
.then((resp) => {
|
|
88
92
|
res.sendStatus(200).json(resp);
|
|
89
93
|
})
|
package/package.json
CHANGED
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const HATCHET_VERSION = "0.15.
|
|
1
|
+
export declare const HATCHET_VERSION = "0.15.3";
|
package/version.js
CHANGED