@workflow/world-testing 4.0.1-beta.8 → 4.0.1-beta.9
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/dist/.well-known/workflow/v1/flow.js +4 -1
- package/dist/.well-known/workflow/v1/flow.js.map +1 -1
- package/dist/.well-known/workflow/v1/manifest.debug.json +14 -14
- package/dist/.well-known/workflow/v1/step.js +2 -1
- package/dist/.well-known/workflow/v1/step.js.map +1 -1
- package/package.json +4 -4
|
@@ -36770,6 +36770,7 @@ function createQueue(port) {
|
|
|
36770
36770
|
duplex: "half",
|
|
36771
36771
|
dispatcher: httpAgent,
|
|
36772
36772
|
headers: {
|
|
36773
|
+
"content-type": "application/json",
|
|
36773
36774
|
"x-vqs-queue-name": queueName,
|
|
36774
36775
|
"x-vqs-message-id": messageId,
|
|
36775
36776
|
"x-vqs-message-attempt": String(attempt + 1)
|
|
@@ -36815,7 +36816,9 @@ function createQueue(port) {
|
|
|
36815
36816
|
return async (req) => {
|
|
36816
36817
|
const headers = HeaderParser.safeParse(Object.fromEntries(req.headers));
|
|
36817
36818
|
if (!headers.success || !req.body) {
|
|
36818
|
-
return Response.json({
|
|
36819
|
+
return Response.json({
|
|
36820
|
+
error: !req.body ? "Missing request body" : "Missing required headers"
|
|
36821
|
+
}, { status: 400 });
|
|
36819
36822
|
}
|
|
36820
36823
|
const queueName = headers.data["x-vqs-queue-name"];
|
|
36821
36824
|
const messageId = headers.data["x-vqs-message-id"];
|