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