@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.
Files changed (2) hide show
  1. package/dist/index.js +5 -0
  2. 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shushed/helpers",
3
- "version": "0.0.152-trigger-test-20250904123737",
3
+ "version": "0.0.153-trigger-test-20250904150652",
4
4
  "author": "",
5
5
  "license": "UNLICENSED",
6
6
  "description": "",