@deathnaitsa/wa-api 1.0.5 → 1.0.7

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.
@@ -83,8 +83,8 @@ const sessionCache = new Map();
83
83
  function getCachedSession(sessionId) {
84
84
  let session = sessionCache.get(sessionId);
85
85
  if (!session) {
86
- session = getSession(sessionId);
87
- if (!session) throw new WhatsappError(Messages.sessionNotFound(sessionId));
86
+ session = Socket_1.getSession(sessionId);
87
+ if (!session) throw new Error_1.WhatsappError(Defaults_1.Messages.sessionNotFound(sessionId));
88
88
  sessionCache.set(sessionId, session);
89
89
  }
90
90
  return session;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deathnaitsa/wa-api",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Multi Session Whatsapp Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/readme.md CHANGED
@@ -5,7 +5,7 @@ Leichte Bibliothek zur Verwaltung mehrerer WhatsApp-Sessions – mit **einer** u
5
5
  ## 📦 Installation
6
6
 
7
7
  ```bash
8
- npm install @DeathNaitsa/wa-api@latest
8
+ npm install @deathnaitsa/wa-api@latest
9
9
  ```
10
10
 
11
11
  ## 🔌 Import & Setup
@@ -14,10 +14,10 @@ Verwende den klassischen Import-Stil:
14
14
 
15
15
  ```js
16
16
  // CommonJS
17
- const wa = require('@DeathNaitsa/wa-api');
17
+ const wa = require('@deathnaitsa/wa-api');
18
18
 
19
19
  // ES Module
20
- import * as wa from '@DeathNaitsa/wa-api';
20
+ import * as wa from '@deathnaitsa/wa-api';
21
21
  ```
22
22
 
23
23
  Danach stehen dir alle Funktionen unter dem Namespace `wa` zur Verfügung.
@@ -105,4 +105,4 @@ try {
105
105
 
106
106
  ---
107
107
 
108
- © 2025 `@DeathNaitsa/wa-api` • Support: [sebloidl13@gmail.com](mailto:sebloidl13@gmail.com)
108
+ © 2025 `@deathnaitsa/wa-api` • Support: [sebloidl13@gmail.com](mailto:sebloidl13@gmail.com)