@neelegirl/wa-api 1.6.0 → 1.6.3
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/Messaging/index.d.ts +19 -35
- package/dist/Messaging/index.js +42 -102
- package/dist/Socket/index.d.ts +33 -10
- package/dist/Socket/index.js +277 -352
- package/dist/whatsapp/index.js +2 -8
- package/package.json +22 -33
- package/readme.md +55 -643
package/dist/whatsapp/index.js
CHANGED
|
@@ -196,11 +196,5 @@ class Whatsapp {
|
|
|
196
196
|
});
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
exports.Whatsapp = Whatsapp;
|
|
200
|
-
|
|
201
|
-
// wa.load();
|
|
202
|
-
const mySocket = new Socket_1.Socket({ id: "mysocket", phoneNumber: "6281524538841" });
|
|
203
|
-
mySocket.onPairing = (code) => {
|
|
204
|
-
console.log(code);
|
|
205
|
-
};
|
|
206
|
-
wa.startSession(mySocket);
|
|
199
|
+
exports.Whatsapp = Whatsapp;
|
|
200
|
+
// Intentionally no side effects on import.
|
package/package.json
CHANGED
|
@@ -1,56 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neelegirl/wa-api",
|
|
3
|
-
"version": "1.6.
|
|
4
|
-
"description": "Multi-session WhatsApp wrapper built on @neelegirl/baileys
|
|
3
|
+
"version": "1.6.3",
|
|
4
|
+
"description": "Multi-session WhatsApp API wrapper built on @neelegirl/baileys",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
|
-
"exports": {
|
|
8
|
-
".": {
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
10
|
-
"require": "./dist/index.js",
|
|
11
|
-
"default": "./dist/index.js"
|
|
12
|
-
},
|
|
13
|
-
"./package.json": "./package.json"
|
|
14
|
-
},
|
|
15
7
|
"repository": {
|
|
16
8
|
"type": "git",
|
|
17
|
-
"url": "git+https://github.com/
|
|
9
|
+
"url": "git+https://github.com/neelegirl/wa-api.git"
|
|
18
10
|
},
|
|
19
|
-
"homepage": "https://github.com/
|
|
11
|
+
"homepage": "https://github.com/neelegirl/wa-api#readme",
|
|
20
12
|
"bugs": {
|
|
21
|
-
"url": "https://github.com/
|
|
13
|
+
"url": "https://github.com/neelegirl/wa-api/issues"
|
|
22
14
|
},
|
|
23
|
-
"keywords": [
|
|
24
|
-
"whatsapp",
|
|
25
|
-
"wa-api",
|
|
26
|
-
"multi-session",
|
|
27
|
-
"pairing",
|
|
28
|
-
"qr",
|
|
29
|
-
"automation",
|
|
30
|
-
"neelegirl"
|
|
31
|
-
],
|
|
32
15
|
"files": [
|
|
33
16
|
"dist/**/*",
|
|
34
|
-
"readme.md"
|
|
35
|
-
"LICENSE"
|
|
17
|
+
"readme.md"
|
|
36
18
|
],
|
|
37
19
|
"scripts": {
|
|
20
|
+
"build": "tsc",
|
|
38
21
|
"start": "node ./dist/index.js",
|
|
39
|
-
"
|
|
22
|
+
"start:dev": "tsc && node ./dist/index.js",
|
|
23
|
+
"test": "node -e \"console.log('No tests configured')\""
|
|
40
24
|
},
|
|
41
25
|
"author": "Neele",
|
|
42
|
-
"license": "
|
|
26
|
+
"license": "MIT",
|
|
43
27
|
"dependencies": {
|
|
44
|
-
"@adiwajshing/keyed-db": "^0.2.4",
|
|
45
|
-
"@hapi/boom": "^10.0.1",
|
|
46
28
|
"@neelegirl/baileys": "^2.1.0",
|
|
47
|
-
"
|
|
48
|
-
"mime": "^3.0.0",
|
|
49
|
-
"pino": "^8.11.0",
|
|
50
|
-
"qrcode-terminal": "^0.12.0"
|
|
29
|
+
"pino": "^8.11.0"
|
|
51
30
|
},
|
|
52
31
|
"devDependencies": {
|
|
53
|
-
"@types/mime": "^3.0.1"
|
|
32
|
+
"@types/mime": "^3.0.1",
|
|
33
|
+
"jest": "^29.0.0"
|
|
34
|
+
},
|
|
35
|
+
"keywords": [
|
|
36
|
+
"whatsapp",
|
|
37
|
+
"baileys",
|
|
38
|
+
"multi-session",
|
|
39
|
+
"wa-api"
|
|
40
|
+
],
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"@neelegirl/baileys": "^2.1.0"
|
|
54
43
|
},
|
|
55
44
|
"engines": {
|
|
56
45
|
"node": ">=20.0.0"
|