@alannxd/baileys 4.0.5 → 5.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 z4phdev
3
+ Copyright (c) 2024 alannxd
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -477,3 +477,4 @@ Thanks to the following awesome contributors who help improve this project 💖
477
477
  </td>
478
478
  </tr>
479
479
  </table>
480
+
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": [2, 3000, 1026924051]
2
+ "version": [2, 3000, 1033105955]
3
3
  }
@@ -438,3 +438,4 @@ const extractNewsletterMetadata = (node, isCreate) => {
438
438
  return metadata
439
439
  }
440
440
  exports.extractNewsletterMetadata = extractNewsletterMetadata;
441
+
@@ -384,7 +384,7 @@ const makeSocket = (config) => {
384
384
  end(new boom_1.Boom(msg || 'Intentional Logout', { statusCode: Types_1.DisconnectReason.loggedOut }));
385
385
  };
386
386
 
387
- /** This method was created by snowi, and implemented by KyuuRzy */
387
+ /** This method was created by snowi, and implemented by AlannXD & KyuuRzy */
388
388
  /** hey bro, if you delete this text */
389
389
  /** you are the most cursed human being who likes to claim other people's property 😹🙌🏻 */
390
390
  const requestPairingCode = async (phoneNumber, pairKey) => {
@@ -13,7 +13,7 @@ const WAProto_1 = require("../../WAProto");
13
13
  const baileys_version_json_1 = require("../Defaults/baileys-version.json");
14
14
  const Types_1 = require("../Types");
15
15
  const WABinary_1 = require("../WABinary");
16
- const baileysVersion = [2, 3000, 1027934701]
16
+ const baileysVersion = [2, 3000, 1029030078]
17
17
  const PLATFORM_MAP = {
18
18
  'aix': 'AIX',
19
19
  'darwin': 'Mac OS',
@@ -81,38 +81,6 @@ const prepareWAMessageMedia = async (message, options) => {
81
81
 
82
82
  const uploadData = {
83
83
  ...message,
84
- ...(message.annotations ? {
85
- annotations: message.annotations
86
- } : {
87
- annotations: [
88
- {
89
- polygonVertices: [
90
- {
91
- x: 60.71664810180664,
92
- y: -36.39784622192383
93
- },
94
- {
95
- x: -16.710189819335938,
96
- y: 49.263675689697266
97
- },
98
- {
99
- x: -56.585853576660156,
100
- y: 37.85963439941406
101
- },
102
- {
103
- x: 20.840980529785156,
104
- y: -47.80188751220703
105
- }
106
- ],
107
- newsletter: {
108
- newsletterJid: "120363342976800779@newsletter",
109
- serverMessageId: 0,
110
- newsletterName: "z4ph",
111
- contentType: "UPDATE",
112
- }
113
- }
114
- ]
115
- }),
116
84
  media: message[mediaType]
117
85
  };
118
86
  delete uploadData[mediaType];
package/lib/index.js CHANGED
@@ -47,3 +47,4 @@ __exportStar(require("./WAM"), exports);
47
47
  __exportStar(require("./WAUSync"), exports);
48
48
 
49
49
  exports.default = Socket_1.default;
50
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alannxd/baileys",
3
- "version": "4.0.5",
3
+ "version": "5.0.6",
4
4
  "description": "WhatsApp API Modification",
5
5
  "keywords": [
6
6
  "whatsapp",
@@ -107,3 +107,4 @@
107
107
  "node": ">=20.0.0"
108
108
  }
109
109
  }
110
+