powr-sdk-api 4.1.5 → 4.1.8
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/services/tools.js +6 -4
- package/package.json +3 -2
package/dist/services/tools.js
CHANGED
|
@@ -322,12 +322,14 @@ class ToolsManager {
|
|
|
322
322
|
async executeGmailAction(actionId, params, config) {
|
|
323
323
|
const nodemailer = require('nodemailer');
|
|
324
324
|
try {
|
|
325
|
-
// Create transporter
|
|
326
|
-
const transporter = nodemailer.
|
|
327
|
-
|
|
325
|
+
// Create transporter using the exact config from ai-pitcher
|
|
326
|
+
const transporter = nodemailer.createTransport({
|
|
327
|
+
host: 'smtp.gmail.com',
|
|
328
|
+
port: 465,
|
|
329
|
+
secure: true,
|
|
328
330
|
auth: {
|
|
329
331
|
user: config.email,
|
|
330
|
-
pass: config.appPassword
|
|
332
|
+
pass: config.appPassword
|
|
331
333
|
}
|
|
332
334
|
});
|
|
333
335
|
switch (actionId) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "powr-sdk-api",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.8",
|
|
4
4
|
"description": "Shared API core library for PowrStack projects",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -45,7 +45,8 @@
|
|
|
45
45
|
"winston": "^3.17.0",
|
|
46
46
|
"mongodb": "^6.3.0",
|
|
47
47
|
"multer": "^1.4.5-lts.1",
|
|
48
|
-
"bcrypt": "^5.1.1"
|
|
48
|
+
"bcrypt": "^5.1.1",
|
|
49
|
+
"nodemailer": "^6.10.0"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
51
52
|
"@babel/cli": "^7.23.9",
|