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:
@@ -22,7 +22,9 @@ const ALLOWED_MODULES = new Set([
|
||||
"basic-ftp",
|
||||
"jsonata",
|
||||
"mustache",
|
||||
"net",
|
||||
"node-html-parser",
|
||||
"node:net",
|
||||
"node:stream",
|
||||
"nodemailer",
|
||||
"rss-parser",
|
||||
|
||||
Reference in New Issue
Block a user