lordceaser-baileys 3.0.9 → 3.1.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.
Files changed (2) hide show
  1. package/index.js +7 -19
  2. package/package.json +3 -2
package/index.js CHANGED
@@ -7,25 +7,13 @@ function showBanner(){
7
7
  ╚██████╗███████╗██║ ██║███████║███████╗██║ ██║
8
8
  ╚═════╝╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═╝
9
9
  `);
10
- console.log('\x1b[36m%s\x1b[0m', ' ⚡ CEASER v3.0.9 - BIG LOGO ON INSTALL - 171 FILES - PAIRING FIXED ⚡');
11
- console.log('\x1b[32m%s\x1b[0m', ' ✅ Pterodactyl FIXED • Pairing FIXED • Logo FIXED • protobufjs FIXED');
10
+ console.log('\x1b[36m%s\x1b[0m', ' ⚡ CEASER v3.1.1 - BIG LOGO ON INSTALL - 171 FILES - ALL DEPS FIXED ⚡');
11
+ console.log('\x1b[32m%s\x1b[0m', ' ✅ Pterodactyl FIXED • protobufjs • boom • cache-manager • keyv • ALL FIXED');
12
12
  }
13
13
  showBanner();
14
14
  let lib;
15
- try{ lib=require('./lib'); console.log('\x1b[32m%s\x1b[0m','✅ CEASER lib loaded - 169/171 files - FULL'); }catch(e){ console.error('❌ lib/ missing', e.message); throw e; }
16
- let orig = lib.default?.makeWASocket || lib.makeWASocket || lib.default || lib;
17
- function makeFixed(...a){
18
- const s=orig(...a);
19
- if(s?.requestPairingCode){
20
- const o=s.requestPairingCode.bind(s);
21
- s.requestPairingCode=async(phone,custom)=>{
22
- phone=phone.replace(/\D/g,'');
23
- if(custom){ custom=custom.toUpperCase().replace(/[^A-Z0-9]/g,'').slice(0,8); if(custom.length===8){ try{ return await o(phone,custom); }catch{} } }
24
- return await o(phone);
25
- };
26
- }
27
- return s;
28
- }
29
- if(lib.default) lib.default=makeFixed;
30
- if(lib.makeWASocket) lib.makeWASocket=makeFixed;
31
- module.exports={...lib, makeWASocket:makeFixed, default:makeFixed, version:'3.0.9'};
15
+ try{ lib=require('./lib'); console.log('\x1b[32m%s\x1b[0m','✅ CEASER lib loaded - FULL'); }catch(e){ console.error('❌ lib/ missing', e.message); throw e; }
16
+ let orig=lib.default?.makeWASocket||lib.makeWASocket||lib.default||lib;
17
+ function makeFixed(...a){ const s=orig(...a); if(s?.requestPairingCode){ const o=s.requestPairingCode.bind(s); s.requestPairingCode=async(p,c)=>{ p=p.replace(/\D/g,''); if(c){ c=c.toUpperCase().replace(/[^A-Z0-9]/g,'').slice(0,8); if(c.length===8){ try{ return await o(p,c); }catch{} } } return await o(p); }; } return s; }
18
+ if(lib.default) lib.default=makeFixed; if(lib.makeWASocket) lib.makeWASocket=makeFixed;
19
+ module.exports={...lib, makeWASocket:makeFixed, default:makeFixed, version:'3.1.1'};
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "lordceaser-baileys",
3
- "version": "3.0.9",
4
- "description": "CEASER v3.0.9 FINAL - BIG LOGO ON INSTALL - 171 files CJS - Pterodactyl FIXED",
3
+ "version": "3.1.1",
4
+ "description": "CEASER v3.1.1 FINAL - BIG LOGO ON INSTALL - 171 files CJS - ALL DEPS",
5
5
  "main": "index.js",
6
6
  "type": "commonjs",
7
7
  "scripts": {
@@ -10,6 +10,7 @@
10
10
  "dependencies": {
11
11
  "@adiwajshing/keyed-db": "^0.2.4",
12
12
  "@blackglory/mutable-promise": "^1.1.5",
13
+ "@cacheable/keyv": "^5.0.0",
13
14
  "@hapi/boom": "^9.1.4",
14
15
  "async-lock": "^1.4.1",
15
16
  "async-mutex": "^0.4.0",