@shushed/helpers 0.0.152-trigger-test-20250904123737 → 0.0.153-trigger-test-20250904150652
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/index.js +5 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -171563,6 +171563,11 @@ var TriggerHelper = class {
|
|
|
171563
171563
|
return;
|
|
171564
171564
|
}
|
|
171565
171565
|
}
|
|
171566
|
+
} else if (contentType === "text/plain") {
|
|
171567
|
+
rawBody = await parser2.text(optionsEnchanced.nodeReq, {
|
|
171568
|
+
limit: "2mb"
|
|
171569
|
+
});
|
|
171570
|
+
bodyAsJson = { text: rawBody };
|
|
171566
171571
|
} else {
|
|
171567
171572
|
optionsEnchanced.req.throw(400, `Invalid Content-Type expected: ${optionsEnchanced.request.headers["content-type"]}, got ${optionsEnchanced.nodeReq}`);
|
|
171568
171573
|
return;
|