@deathnaitsa/wa-api 1.0.4 → 1.0.6

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.4",
3
+ "version": "1.0.6",
4
4
  "description": "Multi Session Whatsapp Library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -27,7 +27,7 @@
27
27
  "@adiwajshing/keyed-db": "^0.2.4",
28
28
  "@hapi/boom": "^10.0.1",
29
29
  "@whiskeysockets/baileys": "^6.7.16",
30
- "mime": "^3.0.1",
30
+ "mime": "^3.0.0",
31
31
  "pino": "^9.6.0",
32
32
  "qrcode-terminal": "^0.12.0"
33
33
  },