@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.
@@ -196,11 +196,5 @@ class Whatsapp {
196
196
  });
197
197
  }
198
198
  }
199
- exports.Whatsapp = Whatsapp;
200
- const wa = new Whatsapp();
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.0",
4
- "description": "Multi-session WhatsApp wrapper built on @neelegirl/baileys for QR, pairing and message automation.",
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/neelegirly/neelegirl-wa-api.git"
9
+ "url": "git+https://github.com/neelegirl/wa-api.git"
18
10
  },
19
- "homepage": "https://github.com/neelegirly/neelegirl-wa-api#readme",
11
+ "homepage": "https://github.com/neelegirl/wa-api#readme",
20
12
  "bugs": {
21
- "url": "https://github.com/neelegirly/neelegirl-wa-api/issues"
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
- "run-script": "node ./dist/index.js"
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": "ISC",
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
- "jest": "^29.0.0",
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"