@vielhuber/wahelper 1.6.8 → 1.7.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vielhuber/wahelper",
3
- "version": "1.6.8",
3
+ "version": "1.7.0",
4
4
  "description": "Lightweight whatsapp integration layer.",
5
5
  "main": "wahelper.js",
6
6
  "files": [
@@ -22,12 +22,12 @@
22
22
  "author": "David Vielhuber <david@vielhuber.de>",
23
23
  "license": "MIT",
24
24
  "dependencies": {
25
- "baileys": "mtAlves/Baileys#fix/pairing-code",
25
+ "baileys": "latest",
26
26
  "qrcode-terminal": "^0.12.0"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@prettier/plugin-php": "^0.25.0",
30
- "prettier": "^3.8.3"
30
+ "prettier": "^3.9.5"
31
31
  },
32
32
  "engines": {
33
33
  "node": ">=18"
@@ -4,7 +4,8 @@ import makeWASocket, {
4
4
  useMultiFileAuthState,
5
5
  DisconnectReason,
6
6
  downloadMediaMessage,
7
- fetchLatestBaileysVersion
7
+ fetchLatestBaileysVersion,
8
+ Browsers
8
9
  } from 'baileys';
9
10
  import P from 'pino';
10
11
  import qrcodeTerminal from 'qrcode-terminal';
@@ -651,7 +652,7 @@ export default class wahelperDaemon {
651
652
  // sync full history always — on pairing and reconnects
652
653
  syncFullHistory: true,
653
654
  version,
654
- browser: ['Chrome', 'Windows', '110.0.5481.177']
655
+ browser: Browsers.windows('Desktop')
655
656
  });
656
657
 
657
658
  this.sock.ev.on('messaging-history.set', async obj => {