lordceaser-baileys 3.0.6 → 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 +18 -8
  2. package/package.json +34 -15
package/index.js CHANGED
@@ -1,9 +1,19 @@
1
- const fs=require('fs'),path=require('path');
2
- function stub(p,c){const f=path.join(__dirname,'node_modules',p);if(!fs.existsSync(f)){fs.mkdirSync(f,{recursive:true});fs.writeFileSync(path.join(f,'package.json'),JSON.stringify({name:p,version:'1.0.0',main:'index.js'}));fs.writeFileSync(path.join(f,'index.js'),c);}}
3
- stub('@blackglory/mutable-promise',`class M{constructor(){this.p=new Promise((r,j)=>{this._r=r;this._j=j})}resolve(v){this._r(v)}reject(e){this._j(e)}then(...a){return this.p.then(...a)}catch(...a){return this.p.catch(...a)}}module.exports={MutablePromise:M,default:M};`);
4
- stub('@adiwajshing/keyed-db',`class K{constructor(){this.m=new Map()}get(k){return this.m.get(k)}set(k,v){this.m.set(k,v)}}module.exports={KeyedDB:K,default:K};`);
5
- console.log('\x1b[35m CEASER v3.0.6 - 169 FILES - FULL \x1b[0m');
6
- let lib=require('./lib'); let mk=lib.default?.makeWASocket||lib.makeWASocket||lib.default||lib;
7
- function makeFixed(...a){const s=mk(...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;}
1
+ function showBanner(){
2
+ console.log('\x1b[35m%s\x1b[0m', `
3
+ ██████╗███████╗ █████╗ ███████╗███████╗██████╗
4
+ ██╔════╝██╔════╝██╔══██╗██╔════╝██╔════╝██╔══██╗
5
+ ██║ █████╗ ███████║███████╗█████╗ ██████╔╝
6
+ ██║ ██╔══╝ ██╔══██║╚════██║██╔══╝ ██╔══██╗
7
+ ╚██████╗███████╗██║ ██║███████║███████╗██║ ██║
8
+ ╚═════╝╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═╝
9
+ `);
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
+ }
13
+ showBanner();
14
+ let lib;
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; }
8
18
  if(lib.default) lib.default=makeFixed; if(lib.makeWASocket) lib.makeWASocket=makeFixed;
9
- module.exports={...lib, makeWASocket:makeFixed, default:makeFixed, version:'3.0.6'};
19
+ module.exports={...lib, makeWASocket:makeFixed, default:makeFixed, version:'3.1.1'};
package/package.json CHANGED
@@ -1,21 +1,40 @@
1
1
  {
2
2
  "name": "lordceaser-baileys",
3
- "version": "3.0.6",
4
- "description": "CEASER v3.0.6 - BIG LOGO - 169 files - FULL deps - 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
- "files": [
8
- "lib/",
9
- "WAProto/",
10
- "WASignalGroup/",
11
- "WABinary/",
12
- "WAMessage/",
13
- "WAM/",
14
- "src/",
15
- "index.js"
16
- ],
7
+ "scripts": {
8
+ "postinstall": "node -e \"try{require('./index.js')}catch(e){}\""
9
+ },
17
10
  "dependencies": {
11
+ "@adiwajshing/keyed-db": "^0.2.4",
12
+ "@blackglory/mutable-promise": "^1.1.5",
13
+ "@cacheable/keyv": "^5.0.0",
14
+ "@hapi/boom": "^9.1.4",
15
+ "async-lock": "^1.4.1",
16
+ "async-mutex": "^0.4.0",
17
+ "axios": "^1.6.0",
18
+ "ws": "^8.14.2",
19
+ "pino": "^8.17.2",
20
+ "protobufjs": "^7.2.5",
21
+ "qrcode-terminal": "^0.12.0",
22
+ "libsignal": "^2.0.1",
23
+ "futoin-hkdf": "^1.5.1",
24
+ "jimp": "^0.22.10",
25
+ "lru-cache": "^7.18.3",
26
+ "file-type": "^16.5.4",
27
+ "node-cache": "^5.1.2",
28
+ "uuid": "^11.0.0",
29
+ "long": "^5.2.3",
30
+ "p-queue": "^6.6.2",
31
+ "music-metadata": "^7.14.0",
32
+ "lodash": "^4.17.21",
33
+ "mysql2": "^3.9.7",
34
+ "fflate": "^0.8.2",
18
35
  "cache-manager": "^5.3.2",
19
- "keyv": "^4.5.4"
20
- }
21
- }
36
+ "keyv": "^4.5.4",
37
+ "libphonenumber-js": "^1.10.54"
38
+ },
39
+ "files": ["lib/","WAProto/","WABinary/","WASignalGroup/","WAMessage/","WAM/","index.js"]
40
+ }