feat(plugins): enhance SMS sending functionality with raw HTTP handling

- Added support for using the `net` module in the `send-sms` plugin to establish raw HTTP connections.
- Refactored the `ztePost` function to `zteHttpPost`, allowing for custom HTTP request formatting and improved error handling.
- Introduced a new utility function, `httpBodyFromRaw`, to process raw HTTP responses effectively.
- Updated the `script-sandbox.js` to allow the use of the `net` and `node:net` modules in the sandbox environment.
This commit is contained in:
2026-09-08 22:58:52 +07:00
parent 6c82ff20eb
commit 707e2c0f1e
2 changed files with 69 additions and 28 deletions
+2
View File
@@ -22,7 +22,9 @@ const ALLOWED_MODULES = new Set([
"basic-ftp",
"jsonata",
"mustache",
"net",
"node-html-parser",
"node:net",
"node:stream",
"nodemailer",
"rss-parser",