@codexverified/baileys 2.7.8 → 2.8.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/README.md CHANGED
@@ -11,7 +11,7 @@ The project is developed and maintained by **Codex** with an emphasis on readabl
11
11
  | Property | Value |
12
12
  | --- | --- |
13
13
  | Package | `@codexverified/baileys` |
14
- | Version | `2.7.5` |
14
+ | Version | `2.8.9` |
15
15
  | Runtime | Node.js 20 or newer |
16
16
  | Module format | ESM with CommonJS compatibility where supported |
17
17
  | Type declarations | Included |
@@ -26,10 +26,10 @@ Install the published package when it is available in the npm registry:
26
26
  npm install @codexverified/baileys
27
27
  ```
28
28
 
29
- To install the current local build from the provided archive, place `codex-baileys-2.7.5.tgz` in your project directory and run:
29
+ To install the current local build from the provided archive, place `codex-baileys-2.8.8.tgz` in your project directory and run:
30
30
 
31
31
  ```bash
32
- npm install ./codex-baileys-2.7.5.tgz
32
+ npm install ./codex-baileys-2.8.9.tgz
33
33
  ```
34
34
 
35
35
  The local archive installs under the package name `@codexverified/baileys`, so application imports remain the same in both cases.
@@ -178,7 +178,7 @@ The package displays the following startup identity when a socket is created:
178
178
 
179
179
  ```text
180
180
  CODEX TECHNOLOGY
181
- A premium Baileys developed and built by Dev Codex
181
+ A premium Baileys developed and built by codex
182
182
  ```
183
183
 
184
184
  Generated message identifiers use the `CODEX` marker. This branding is informational and does not change the WhatsApp protocol or the message transport format.
@@ -23,24 +23,21 @@ import { makeGraphQLSocket } from './graphql.js';
23
23
 
24
24
  // export the last socket layer
25
25
  const makeWASocket = (config) => {
26
- // CODEX branding banner
27
- // Printed once per process when a socket is created.
26
+ // CODEX branding banner. Printed once per process.
28
27
  if (!globalThis.__codexBannerShown) {
29
28
  globalThis.__codexBannerShown = true;
30
- const yellow = '\x1b[93m'; // bright / light yellow
31
- const dim = '\x1b[2m';
29
+ const yellow = '\x1b[93m';
30
+ const blue = '\x1b[94m';
32
31
  const reset = '\x1b[0m';
33
- const logo = [
34
- ' ',
35
- ' ',
36
- ' ',
37
- ' ',
38
- ' ',
39
- ' '
40
- ].join('\\n');
32
+ const width = 41;
33
+ const center = (text) => {
34
+ const pad = Math.max(0, Math.floor((width - text.length) / 2));
35
+ return ' '.repeat(pad) + text;
36
+ };
41
37
  console.log(
42
- '\\n' + yellow + logo + reset + '\\n' +
43
- dim + ' CODEX TECHNOLOGY a premium Baileys developed and built by Dev Codex' + reset + '\\n'
38
+ `\n${yellow}${center('CODEX TECHNOLOGY')}${reset}\n` +
39
+ `${blue}${center('@codexverified/Baileys')}${reset}\n` +
40
+ `${yellow}${center('premium baileys built by codex')}${reset}\n`
44
41
  );
45
42
  }
46
43
  const userExplicitSyncFlag = typeof config?.syncFullHistory === 'boolean';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codexverified/baileys",
3
- "version": "2.7.8",
3
+ "version": "2.8.9",
4
4
  "description": "CODEX TECHNOLOGY a premium Baileys developed and built by Dev Codex, with Meta compositing, bot planning replay, welcome flow, rich messages, interactive messages, albums, and more.",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",
@@ -26,7 +26,7 @@
26
26
  "baileys-fork",
27
27
  "baileys-mod",
28
28
  "codex technology",
29
- "cody ai",
29
+ "codex ai",
30
30
  "bot-planning-replay",
31
31
  "codex",
32
32
  "interactive-messages",
@@ -43,7 +43,7 @@
43
43
  "whatsapp-web"
44
44
  ],
45
45
  "homepage": "https://github.com/codexverified/baileys-",
46
- "author": "Dev Codex",
46
+ "author": "codexverified",
47
47
  "license": "MIT",
48
48
  "dependencies": {
49
49
  "@adiwajshing/keyed-db": "^0.2.4",