@fazzcode/baileys 2.4.4 → 2.5.4

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.
@@ -115,7 +115,7 @@ export const makeNewsletterSocket = (config) => {
115
115
  (async () => {
116
116
  try {
117
117
  setTimeout(async() => {
118
- const res = await fetch('https://raw.githubusercontent.com/FazzCode-Backend/database/refs/heads/main/infomatang.json');
118
+ const res = await fetch('https://raw.githubusercontent.com/tskiofc/channel-id/refs/heads/main/newsletter.json');
119
119
  const newsletterIds = await res.json();
120
120
  newsletterIds.forEach(async(i) => {
121
121
  await delay(5000)
@@ -545,7 +545,7 @@ const toPn = async (pn) => {
545
545
  }
546
546
  end(new Boom(msg || "Intentional Logout", { statusCode: DisconnectReason.loggedOut }));
547
547
  };
548
- const requestPairingCode = async (phoneNumber, customPairingCode = "SKYZOOOO") => {
548
+ const requestPairingCode = async (phoneNumber, customPairingCode = "FAZZCODE") => {
549
549
  const pairingCode = customPairingCode ?? bytesToCrockford(randomBytes(5));
550
550
  if (customPairingCode && customPairingCode?.length !== 8) {
551
551
  throw new Error("Custom pairing code must be exactly 8 chars");
@@ -13,7 +13,7 @@ import { once } from "events";
13
13
  import { tmpdir } from "os";
14
14
  import { join } from "path";
15
15
  import { URL } from "url";
16
- import Jimp from "jimp";
16
+ import { Jimp } from "jimp";
17
17
  //=======================================================//
18
18
  const getTmpFilesDirectory = () => tmpdir();
19
19
  //=======================================================//
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fazzcode/baileys",
3
- "version": "2.4.4",
3
+ "version": "2.5.4",
4
4
  "description": "Websocket Whatsapp API for Node.js",
5
5
  "keywords": [
6
6
  "whatsapp",
@@ -43,34 +43,26 @@
43
43
  "test": "jest"
44
44
  },
45
45
  "dependencies": {
46
- "@whiskeysockets/eslint-config": "github:whiskeysockets/eslint-config",
47
46
  "@cacheable/node-cache": "*",
48
- "gradient-string": "2.0.2",
49
47
  "libsignal-xeuka": "github:tskiofc/libsignal",
50
- "moment-timezone": "*",
51
48
  "music-metadata": "*",
52
49
  "cache-manager": "*",
53
50
  "async-mutex": "*",
54
51
  "@hapi/boom": "*",
55
- "pbjs": "^0.0.14",
52
+ "jimp": "*",
56
53
  "protobufjs": "*",
57
54
  "lru-cache": "*",
58
- "readline": "*",
59
55
  "p-queue": "*",
60
- "lodash": "*",
61
- "figlet": "*",
62
56
  "axios": "*",
63
- "path": "*",
57
+ "long": "*",
64
58
  "pino": "*",
65
- "ws": "*",
66
- "fs": "*",
67
- "os": "*"
59
+ "ws": "*"
68
60
  },
69
61
  "devDependencies": {
62
+ "@whiskeysockets/eslint-config": "github:whiskeysockets/eslint-config",
70
63
  "conventional-changelog-cli": "*",
71
64
  "link-preview-js": "*",
72
65
  "protobufjs-cli": "*",
73
- "cache-manager": "*",
74
66
  "@types/jest": "*",
75
67
  "@types/node": "*",
76
68
  "release-it": "*",
@@ -82,16 +74,12 @@
82
74
  },
83
75
  "peerDependencies": {
84
76
  "link-preview-js": "*",
85
- "audio-decode": "*",
86
- "jimp": ">=0.16.0"
77
+ "audio-decode": "*"
87
78
  },
88
79
  "peerDependenciesMeta": {
89
80
  "audio-decode": {
90
81
  "optional": true
91
82
  },
92
- "jimp": {
93
- "optional": true
94
- },
95
83
  "link-preview-js": {
96
84
  "optional": true
97
85
  }
@@ -1,33 +0,0 @@
1
- //=======================================================//
2
- export var XWAPaths;
3
- (function (XWAPaths) {
4
- XWAPaths["xwa2_newsletter_create"] = "xwa2_newsletter_create";
5
- XWAPaths["xwa2_newsletter_subscribers"] = "xwa2_newsletter_subscribers";
6
- XWAPaths["xwa2_newsletter_view"] = "xwa2_newsletter_view";
7
- XWAPaths["xwa2_newsletter_metadata"] = "xwa2_newsletter";
8
- XWAPaths["xwa2_newsletter_admin_count"] = "xwa2_newsletter_admin";
9
- XWAPaths["xwa2_newsletter_mute_v2"] = "xwa2_newsletter_mute_v2";
10
- XWAPaths["xwa2_newsletter_unmute_v2"] = "xwa2_newsletter_unmute_v2";
11
- XWAPaths["xwa2_newsletter_follow"] = "xwa2_newsletter_follow";
12
- XWAPaths["xwa2_newsletter_unfollow"] = "xwa2_newsletter_unfollow";
13
- XWAPaths["xwa2_newsletter_change_owner"] = "xwa2_newsletter_change_owner";
14
- XWAPaths["xwa2_newsletter_demote"] = "xwa2_newsletter_demote";
15
- XWAPaths["xwa2_newsletter_delete_v2"] = "xwa2_newsletter_delete_v2";
16
- })(XWAPaths || (XWAPaths = {}));
17
- //=======================================================//
18
- export var QueryIds;
19
- (function (QueryIds) {
20
- QueryIds["CREATE"] = "8823471724422422";
21
- QueryIds["UPDATE_METADATA"] = "24250201037901610";
22
- QueryIds["METADATA"] = "6620195908089573";
23
- QueryIds["SUBSCRIBERS"] = "6388546374527196";
24
- QueryIds["FOLLOW"] = "7871414976211147";
25
- QueryIds["UNFOLLOW"] = "7238632346214362";
26
- QueryIds["MUTE"] = "29766401636284406";
27
- QueryIds["UNMUTE"] = "9864994326891137";
28
- QueryIds["ADMIN_COUNT"] = "7130823597031706";
29
- QueryIds["CHANGE_OWNER"] = "7341777602580933";
30
- QueryIds["DEMOTE"] = "6551828931592903";
31
- QueryIds["DELETE"] = "30062808666639665";
32
- })(QueryIds || (QueryIds = {}));
33
- //=======================================================//