@neelegirl/wa-api 1.5.0 → 1.5.1

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.
@@ -49,7 +49,19 @@ const sessions = new Map();
49
49
  const callback = new Map();
50
50
  const retryCount = new Map();
51
51
  let stock;
52
- const CURRENT_WA_API_VERSION = "1.3.2";
52
+ let CURRENT_WA_API_VERSION = "1.5.1";
53
+ try {
54
+ // Prefer package.json version when available
55
+ // dist/Socket/index.js -> ../../package.json
56
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
57
+ const pkg = require("../../package.json");
58
+ if (pkg && typeof pkg.version === "string") {
59
+ CURRENT_WA_API_VERSION = pkg.version;
60
+ }
61
+ }
62
+ catch (_a) {
63
+ // fallback keeps bundled version
64
+ }
53
65
  let waApiUpdateCheckDone = false;
54
66
 
55
67
  function isNewerVersion(latest, current) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neelegirl/wa-api",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Multi Session Whatsapp Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  "jest": "^29.0.0",
26
26
  "@adiwajshing/keyed-db": "^0.2.4",
27
27
  "@hapi/boom": "^10.0.1",
28
- "@neelegirl/baileys": "^2.0.4",
28
+ "@neelegirl/baileys": "^2.0.5",
29
29
  "mime": "^3.0.0",
30
30
  "pino": "^8.11.0",
31
31
  "qrcode-terminal": "^0.12.0"
package/readme.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ### *Multi-Session WhatsApp – einfach & stabil*
6
6
  ### *QR · Pairing · Auto-Reconnect · Smart Queue Ready*
7
7
 
8
- [![Version](https://img.shields.io/badge/Version-1.5.0-ff69b4?style=for-the-badge&logo=github)](https://github.com/neelegirl/wa-api)
8
+ [![Version](https://img.shields.io/badge/Version-1.5.1-ff69b4?style=for-the-badge&logo=github)](https://github.com/neelegirl/wa-api)
9
9
  [![Baileys](https://img.shields.io/badge/@neelegirl/baileys-2.0.4-9b59b6?style=for-the-badge)](https://www.npmjs.com/package/@neelegirl/baileys)
10
10
  [![Baileys API](https://img.shields.io/badge/Baileys_API-1.7.2-9b59b6?style=for-the-badge)](https://github.com/WhiskeySockets/Baileys)
11
11
  [![npm](https://img.shields.io/npm/v/@neelegirl/wa-api?style=for-the-badge&color=ff69b4&logo=npm)](https://www.npmjs.com/package/@neelegirl/wa-api)
@@ -20,9 +20,9 @@
20
20
 
21
21
  | 📦 Paket | 🎯 Baileys | ✨ Highlights |
22
22
  |----------|------------|----------------|
23
- | **@neelegirl/wa-api v1.5.0** | **@neelegirl/baileys 2.0.4** | Multi-Session · QR · Pairing · Update-Check von npm |
23
+ | **@neelegirl/wa-api v1.5.1** | **@neelegirl/baileys 2.0.5** | Multi-Session · QR · Pairing · Update-Check von npm |
24
24
 
25
- **✨ v1.5.0** · README Glow-Up · Kompatibel mit **@neelegirl/baileys 2.0.4** & **Baileys API 1.7.2** · Update-Prüfung via npm-Registry
25
+ **✨ v1.5.1** · README Glow-Up · Kompatibel mit **@neelegirl/baileys 2.0.5** & **Baileys API 1.7.2** · Update-Prüfung via npm-Registry
26
26
 
27
27
  [**Installation**](#-installation) · [**Quickstart**](#-quickstart-guide) · [**Features**](#-features) · [**API**](#-vollständige-api-referenz) · [**Support**](#-support--community)
28
28
 
@@ -635,11 +635,11 @@ if (session) {
635
635
 
636
636
  ---
637
637
 
638
- ## 🆕 Was ist neu in Version 1.5.0?
638
+ ## 🆕 Was ist neu in Version 1.5.1?
639
639
 
640
640
  ### ✨ **Neue Features & Glow-Up**
641
641
 
642
- - 📖 **README Glow-Up** – Version 1.5.0, Badges & Changelog
642
+ - 📖 **README Glow-Up** – Version 1.5.1, Badges & Changelog
643
643
  - ✅ **Kompatibilität** mit **@neelegirl/baileys 2.0.4** & **Baileys API 1.7.2**
644
644
  - 🔔 **Update-Check** – Liest Version von **npm-Registry** (registry.npmjs.org), nur 1× pro Prozess
645
645
  - 📦 **Abhängigkeit** auf `@neelegirl/baileys@^2.0.4` (empfohlen 2.0.4)
@@ -672,9 +672,9 @@ if (session) {
672
672
 
673
673
  ## 📝 Changelog
674
674
 
675
- ### Version 1.5.0 (Aktuell) 🎉
675
+ ### Version 1.5.1 (Aktuell) 🎉
676
676
 
677
- - 📖 **README Glow-Up** – Version 1.5.0, Baileys 2.0.4 Badges
677
+ - 📖 **README Glow-Up** – Version 1.5.1, Baileys 2.0.5 Badges
678
678
  - 🔔 Update-Check von **npm-Registry** (registry.npmjs.org), nur 1× pro Prozess
679
679
  - ✨ Kompatibilität mit **@neelegirl/baileys 2.0.4** & **Baileys API 1.7.2**
680
680
  - 📦 Abhängigkeit `@neelegirl/baileys@^2.0.4`