@gamastudio/sendwave-provider 0.0.16 → 0.0.17
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/build/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gamastudio/sendwave-provider",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"description": "Librería para interactuar con Sendwave usando configuración dinámica.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"author": "Ameth Galarcio <amethgm@gmail.com>",
|
|
23
23
|
"license": "ISC",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@builderbot/bot": "^1.
|
|
25
|
+
"@builderbot/bot": "^1.3.15",
|
|
26
26
|
"@gamastudio/colorslog": "^0.1.8",
|
|
27
27
|
"@types/mime-types": "^3.0.1",
|
|
28
28
|
"axios": "^1.13.2",
|
package/build/utils/parserMsg.js
CHANGED
|
@@ -13,7 +13,10 @@ function parseIncomingMsg(payload) {
|
|
|
13
13
|
}
|
|
14
14
|
// if (msg.key.fromMe) return null
|
|
15
15
|
const fromMe = msg.key.fromMe;
|
|
16
|
-
const
|
|
16
|
+
const remoteJid = msg.key.remoteJidAlt || "";
|
|
17
|
+
const remoteJidAlt = msg.key.remoteJidAlt;
|
|
18
|
+
const from = (((_a = msg.key) === null || _a === void 0 ? void 0 : _a.remoteJidAlt) || "").split("@")[0].split(":")[0];
|
|
19
|
+
// const from = (msg.key?.remoteJid || "")
|
|
17
20
|
const to = payload.instance || "";
|
|
18
21
|
const name = msg.pushName;
|
|
19
22
|
const messageContent = msg.message || {};
|
|
@@ -87,6 +90,8 @@ function parseIncomingMsg(payload) {
|
|
|
87
90
|
}
|
|
88
91
|
return {
|
|
89
92
|
fromMe,
|
|
93
|
+
remoteJid,
|
|
94
|
+
remoteJidAlt,
|
|
90
95
|
from,
|
|
91
96
|
to,
|
|
92
97
|
name,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gamastudio/sendwave-provider",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"description": "Librería para interactuar con Sendwave usando configuración dinámica.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"author": "Ameth Galarcio <amethgm@gmail.com>",
|
|
23
23
|
"license": "ISC",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@builderbot/bot": "^1.
|
|
25
|
+
"@builderbot/bot": "^1.3.15",
|
|
26
26
|
"@gamastudio/colorslog": "^0.1.8",
|
|
27
27
|
"@types/mime-types": "^3.0.1",
|
|
28
28
|
"axios": "^1.13.2",
|