@vanzxy/baileys 1.6.4 → 1.6.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.

Potentially problematic release.


This version of @vanzxy/baileys might be problematic. Click here for more details.

package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vanzxy/baileys",
3
- "version": "1.6.4",
4
- "description": "Enhanced Baileys fork by Vanzxy based on @itsliaaa/baileys + @whiskeysockets/baileys with fixes for audio group status and clean media without newsletter button.",
3
+ "version": "1.6.6",
4
+ "description": "Enhanced Baileys fork by Vanzxy \u2014 based on @itsliaaa/baileys + @whiskeysockets/baileys with fixes for audio group status and clean media without newsletter button.",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
7
7
  "module": "./lib/index.js",
@@ -16,14 +16,15 @@
16
16
  },
17
17
  "scripts": {
18
18
  "preinstall": "node ./engine-requirements.js",
19
- "postinstall": "node ./postinstall-banner.js"
19
+ "postinstall": "node ./postinstall-banner.js",
20
+ "test": "node --test tests/"
20
21
  },
21
22
  "engines": {
22
23
  "node": ">=20.0.0"
23
24
  },
24
25
  "repository": {
25
26
  "type": "git",
26
- "url": "git+https://github.com/vanzxy/baileys.git"
27
+ "url": "git+https://github.com/vanzxysenpai/vanzxybaileys.git"
27
28
  },
28
29
  "files": [
29
30
  "lib/**/*",
@@ -44,7 +45,7 @@
44
45
  "whatsapp-bot",
45
46
  "whatsapp-web"
46
47
  ],
47
- "homepage": "https://github.com/vanzxy/baileys#readme",
48
+ "homepage": "https://github.com/vanzxysenpai/vanzxybaileys#readme",
48
49
  "author": "Vanzxy",
49
50
  "license": "MIT",
50
51
  "dependencies": {
@@ -60,8 +61,7 @@
60
61
  "p-queue": "^9.1.0",
61
62
  "pino": "^9.6.0",
62
63
  "protobufjs": "^7.5.6",
63
- "ws": "^8.19.0",
64
- "whatsapp-rust-bridge": "0.5.5"
64
+ "ws": "^8.19.0"
65
65
  },
66
66
  "peerDependencies": {
67
67
  "@napi-rs/image": "~1.12.0",
@@ -11,13 +11,45 @@ const version = (() => {
11
11
  }
12
12
  })();
13
13
 
14
+ const c = {
15
+ reset: '\x1b[0m',
16
+ bold: '\x1b[1m',
17
+ dim: '\x1b[2m',
18
+ green: '\x1b[32m',
19
+ cyan: '\x1b[36m',
20
+ gray: '\x1b[90m'
21
+ };
22
+
23
+ const WIDTH = 62;
24
+ const strip = (s) => s.replace(/\x1b\[[0-9;]*m/g, '');
25
+ const pad = (s) => {
26
+ const visible = strip(s).length;
27
+ const left = Math.floor((WIDTH - visible) / 2);
28
+ const right = WIDTH - visible - left;
29
+ return ' '.repeat(Math.max(left, 0)) + s + ' '.repeat(Math.max(right, 0));
30
+ };
31
+
32
+ const top = `${c.gray}╭${'─'.repeat(WIDTH)}╮${c.reset}`;
33
+ const bottom = `${c.gray}╰${'─'.repeat(WIDTH)}╯${c.reset}`;
34
+ const row = (content = '') => `${c.gray}│${c.reset}${content}${c.gray}│${c.reset}`;
35
+ const blank = row(' '.repeat(WIDTH));
36
+
37
+ const title = `${c.bold}${c.green}🍃 @vanzxy/baileys${version ? ` v${version}` : ''}${c.reset}`;
38
+ const tagline1 = `${c.dim}Next-gen Baileys fork by Vanzxy${c.reset}`;
39
+ const tagline2 = `${c.dim}Interactive messages · native flow · status tools · QoL${c.reset}`;
40
+ const docs = `${c.cyan}https://github.com/vanzxysenpai/vanzxybaileys${c.reset}`;
41
+
14
42
  const lines = [
15
43
  '',
16
- '\x1b[1;32m🍃 @vanzxy/baileys' + (version ? ` v${version}` : '') + '\x1b[0m',
17
- '\x1b[2m' + '─'.repeat(76) + '\x1b[0m',
18
- '\x1b[2mNext-gen Baileys fork by Vanzxy — extended interactive messages, native flow',
19
- 'enhancements, status tools & QoL fixes on top of WhiskeySockets/Baileys.\x1b[0m',
20
- '\x1b[36mDocs: https://github.com/vanzxysenpai/vanzxybaileys\x1b[0m',
44
+ top,
45
+ blank,
46
+ row(pad(title)),
47
+ row(pad(tagline1)),
48
+ row(pad(tagline2)),
49
+ blank,
50
+ row(pad(docs)),
51
+ blank,
52
+ bottom,
21
53
  ''
22
54
  ];
23
55
 
package/NOTICE.md DELETED
@@ -1,91 +0,0 @@
1
- # Third-Party Notices
2
-
3
- This project (`@vanzxy/baileys`) is built on top of, and includes code
4
- adapted from, the following projects. Attribution kept here per their
5
- original license terms, instead of inline in each source file.
6
-
7
- ---
8
-
9
- ## lib/Utils/MessageBuilder.js — AIRich / Button / ButtonV2 / Carousel / Toolkit
10
-
11
- Base implementation ("NIXCODE — Advanced WhatsApp Interactive Message
12
- Builder") originally created by **Nixel**, with contributions from
13
- **Ahmad tumbuh kembang**. Obtained via the `@blurose/baileys` (1.1.13) fork.
14
-
15
- - WhatsApp: wa.me/6285188349341
16
- - Channel: https://whatsapp.com/channel/0029VbCV1ck8fewpdNb2TY2k
17
- - Copyright (c) 2026 Nixel
18
-
19
- Original license terms:
20
- > Permission is granted to use and modify this library for personal or
21
- > commercial projects. Reuploading, reselling, relicensing, or
22
- > redistributing this library as a standalone product is prohibited.
23
- > Do not claim this project as your own original work.
24
-
25
- Ported into `@vanzxy/baileys` 1.3.9 with modifications (see git history /
26
- inline `Vanz@` comments for specifics): lazy-loading of optional
27
- `sharp`/`fluent-ffmpeg` dependencies, faster default behavior for
28
- `addVideo()`, `verificationMetadata` signing added to `AIRich.build()`,
29
- and neutral fallback text (previously referenced the original author's
30
- name in a small number of user-facing fallback strings).
31
-
32
- ---
33
-
34
- ## lib/Utils/message-kind.js — button/list "addon kind" resolution
35
-
36
- `resolveButtonAddonKind()` is adapted from **zapo-js**
37
- (`resolveButtonAddonKind` / `resolveNativeFlowAddonKind` in
38
- `src/message/encode/content.ts`), created by **vinikjkkj**
39
- <contact@vinicius.email>. <https://github.com/vinikjkkj/zapo>
40
-
41
- - License: MIT, Copyright (c) 2026 vinikjkkj
42
- - Ported into `@vanzxy/baileys` 1.6.4, adapted from zapo's internal
43
- `Proto.IMessage` shape to this fork's message-content shape.
44
- `parseInteractiveReply()` in the same file is original code written
45
- for this fork (not from zapo), covering `buttonsResponseMessage` /
46
- `listResponseMessage` / `interactiveResponseMessage` /
47
- `templateButtonReplyMessage`.
48
-
49
- Additional performance/authenticity reference drawn from `arslan-baileys`
50
- (1.1.0), which shares the same underlying builder API.
51
-
52
- ---
53
-
54
- ## lib/Utils/button-sender.js + lib/Utils/button-helper-utils.js — interactive/native-flow button send layer
55
-
56
- Ported from `@queenanya/baileys` (fork by **QueenAnya** / OLDUSER 06,
57
- package `@queenanya/baileys`), files `src/addons/button-sender.ts` and
58
- `src/addons/message-utils.ts`. That fork's own header credits the base
59
- implementation as "Ported from `@ryuu-reinzz/button-helper` v2.2.5".
60
-
61
- - License: MIT (per `@queenanya/baileys` `package.json`)
62
- - Ported into `@vanzxy/baileys` 1.6.5, converted TS → JS ESM. Adjustments:
63
- `console.log`/`console.warn` calls replaced with `sock.logger` (pino)
64
- calls to match this fork's logging convention; default dummy-file
65
- name/branding strings genericized; import paths rewired to this fork's
66
- `Utils`/`WABinary`/`Types` layout (`generateWAMessage`,
67
- `generateWAMessageFromContent`, `normalizeMessageContent`,
68
- `getUrlFromDirectPath`, `unixTimestampSeconds`, `isJidGroup`,
69
- `isJidNewsletter`, `QueryIds`, `XWAPaths`, etc. — all already present
70
- in `@vanzxy/baileys` and reused as-is, no duplication).
71
- - Adds `sendButtons()`, `sendInteractiveMessage()`,
72
- `sendInteractiveMessageV2()`, plus supporting validators
73
- (`validateSendButtonsPayload`, `validateSendInteractiveMessagePayload`,
74
- `validateInteractiveMessageContent`, `validateAuthoringButtons`),
75
- `buildInteractiveButtons()`, `convertToInteractiveMessage()`, the
76
- `InteractiveValidationError` class, and message-introspection helpers
77
- (`getButtonType`, `getButtonArgs`, `getMediaType`, `getMessageType`,
78
- `prepareAlbumMessageContent`, `makeMessageExtrasAddon`, etc.). These
79
- send buttons via `relayMessage` directly (bypassing `sendMessage`'s
80
- validation path, which doesn't recognise `interactiveMessage`
81
- payloads) with the correct `biz`/`interactive`/`native_flow` binary
82
- nodes so buttons render on WhatsApp Messenger + Business, Android +
83
- iOS. Complements the existing `Button`/`ButtonV2`/`ButtonV3` builder
84
- classes in `MessageBuilder.js`, which build message *content* — this
85
- addon handles the *send* layer.
86
-
87
- ## rich-message-utils.js — AIRICH inline-image bug fix
88
-
89
- Original implementation is this project's own; fixed 2026-08-15 (bad
90
- protobuf field shape for `AIRichResponseInlineImageMetadata.imageUrl`
91
- causing silently-dropped image data on encode).