lordceaser-baileys 3.0.3 → 3.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.
- package/index.js +7 -19
- package/package.json +14 -22
package/index.js
CHANGED
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
const fs=require('fs'),path=require('path');
|
|
2
|
-
function stub(
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
console.log('\x1b[35m%s\x1b[0m',`
|
|
9
|
-
██████╗███████╗ █████╗ ███████╗███████╗██████╗
|
|
10
|
-
██╔════╝██╔════╝██╔══██╗██╔════╝██╔════╝██╔══██╗
|
|
11
|
-
██║ █████╗ ███████║███████╗█████╗ ██████╔╝
|
|
12
|
-
██║ ██╔══╝ ██╔══██║╚════██║██╔══╝ ██╔══██╗
|
|
13
|
-
╚██████╗███████╗██║ ██║███████║███████╗██║ ██║
|
|
14
|
-
╚═════╝╚══════╝╚═╝ ╚═╝╚══════╝╚══════╝╚═╝ ╚═╝
|
|
15
|
-
`);
|
|
16
|
-
console.log('\x1b[32m CEASER v3.0.3 - 169 FILES - All needed FIXED - Pterodactyl SAFE \x1b[0m');
|
|
17
|
-
let lib; try{ lib=require('./lib'); console.log('✅ lib loaded + WASignalGroup + WAProto OK'); }catch(e){ console.error('❌ lib fail',e.message); throw e; }
|
|
18
|
-
let mk=lib.default?.makeWASocket||lib.makeWASocket||lib.default||lib;
|
|
19
|
-
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; }
|
|
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;}
|
|
20
8
|
if(lib.default) lib.default=makeFixed; if(lib.makeWASocket) lib.makeWASocket=makeFixed;
|
|
21
|
-
module.exports={...lib, makeWASocket:makeFixed, default:makeFixed, version:'3.0.
|
|
9
|
+
module.exports={...lib, makeWASocket:makeFixed, default:makeFixed, version:'3.0.6'};
|
package/package.json
CHANGED
|
@@ -1,29 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lordceaser-baileys",
|
|
3
|
-
"version": "3.0.
|
|
4
|
-
"description": "CEASER v3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
|
+
"description": "CEASER v3.0.6 - BIG LOGO - 169 files - FULL deps - Pterodactyl FIXED",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "commonjs",
|
|
7
|
-
"files": [
|
|
7
|
+
"files": [
|
|
8
|
+
"lib/",
|
|
9
|
+
"WAProto/",
|
|
10
|
+
"WASignalGroup/",
|
|
11
|
+
"WABinary/",
|
|
12
|
+
"WAMessage/",
|
|
13
|
+
"WAM/",
|
|
14
|
+
"src/",
|
|
15
|
+
"index.js"
|
|
16
|
+
],
|
|
8
17
|
"dependencies": {
|
|
9
|
-
"axios": "^1.6.0",
|
|
10
|
-
"ws": "^8.14.2",
|
|
11
|
-
"pino": "^8.17.2",
|
|
12
|
-
"protobufjs": "^7.2.5",
|
|
13
|
-
"qrcode-terminal": "^0.12.0",
|
|
14
|
-
"jimp": "^0.22.10",
|
|
15
|
-
"file-type": "^16.5.4",
|
|
16
|
-
"node-cache": "^5.1.2",
|
|
17
|
-
"uuid": "^9.0.0",
|
|
18
|
-
"long": "^5.2.3",
|
|
19
|
-
"lodash": "^4.17.21",
|
|
20
|
-
"fflate": "^0.8.2",
|
|
21
18
|
"cache-manager": "^5.3.2",
|
|
22
|
-
"keyv": "^4.5.4"
|
|
23
|
-
"libphonenumber-js": "^1.10.54",
|
|
24
|
-
"libsignal": "^2.0.1",
|
|
25
|
-
"futoin-hkdf": "^1.5.1",
|
|
26
|
-
"lru-cache": "^7.18.3",
|
|
27
|
-
"music-metadata": "^7.14.0"
|
|
19
|
+
"keyv": "^4.5.4"
|
|
28
20
|
}
|
|
29
|
-
}
|
|
21
|
+
}
|