@itznomo/baileys 0.0.4 → 0.0.5

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/package.json CHANGED
@@ -1,31 +1,16 @@
1
1
  {
2
2
  "name": "@itznomo/baileys",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "All-in-one WhatsApp Web API for Node.js: buttons, lists, native flow, carousel, widgets, AI rich messages, calls, payments, command router and more",
5
- "keywords": [
6
- "whatsapp",
7
- "baileys",
8
- "whatsapp-bot",
9
- "buttons",
10
- "carousel",
11
- "native-flow",
12
- "calls",
13
- "automation"
14
- ],
5
+ "keywords": ["whatsapp", "baileys", "whatsapp-bot", "buttons", "carousel", "native-flow", "calls", "automation"],
15
6
  "author": "Anuhas Bandara <anuhazdev@gmail.com>",
16
7
  "license": "MIT",
17
8
  "type": "module",
18
9
  "main": "src/index.js",
19
10
  "types": "index.d.ts",
20
11
  "exports": {
21
- ".": {
22
- "types": "./index.d.ts",
23
- "default": "./src/index.js"
24
- },
25
- "./voip": {
26
- "types": "./voip.d.ts",
27
- "default": "./src/voip/index.js"
28
- },
12
+ ".": { "types": "./index.d.ts", "default": "./src/index.js" },
13
+ "./voip": { "types": "./voip.d.ts", "default": "./src/voip/index.js" },
29
14
  "./package.json": "./package.json"
30
15
  },
31
16
  "files": [
@@ -48,9 +33,7 @@
48
33
  "example:bot": "node ./Example/full-bot.mjs",
49
34
  "rename": "node ./scripts/rename.mjs"
50
35
  },
51
- "engines": {
52
- "node": ">=18.0.0"
53
- },
36
+ "engines": { "node": ">=18.0.0" },
54
37
  "peerDependencies": {
55
38
  "sharp": "*",
56
39
  "jimp": "*",
@@ -60,23 +43,11 @@
60
43
  "libphonenumber-js": "*"
61
44
  },
62
45
  "peerDependenciesMeta": {
63
- "sharp": {
64
- "optional": true
65
- },
66
- "jimp": {
67
- "optional": true
68
- },
69
- "@napi-rs/image": {
70
- "optional": true
71
- },
72
- "keyv": {
73
- "optional": true
74
- },
75
- "mongodb": {
76
- "optional": true
77
- },
78
- "libphonenumber-js": {
79
- "optional": true
80
- }
46
+ "sharp": { "optional": true },
47
+ "jimp": { "optional": true },
48
+ "@napi-rs/image": { "optional": true },
49
+ "keyv": { "optional": true },
50
+ "mongodb": { "optional": true },
51
+ "libphonenumber-js": { "optional": true }
81
52
  }
82
53
  }
@@ -897,7 +897,7 @@ const getUserAgent = config => ({
897
897
  appVersion: { primary: config.version[0], secondary: config.version[1], tertiary: config.version[2] },
898
898
  platform: config.browser[1].toLocaleLowerCase().includes('android')
899
899
  ? proto.ClientPayload.UserAgent.Platform.ANDROID
900
- : proto.ClientPayload.UserAgent.Platform.WEB,
900
+ : proto.ClientPayload.UserAgent.Platform.MACOS,
901
901
  releaseChannel: proto.ClientPayload.UserAgent.ReleaseChannel.RELEASE,
902
902
  osVersion: '0.1',
903
903
  device: 'Desktop',