devilkyuuna 1.0.12 → 1.0.14

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.
@@ -503,17 +503,8 @@ const chatModificationToAppPatch = (mod, jid) => {
503
503
  apiVersion: 3,
504
504
  operation: OP.SET,
505
505
  };
506
- } else if ("contact" in mod) {
507
- patch = {
508
- syncAction: {
509
- contactAction: mod.contact || {}
510
- },
511
- index: ["contact", jid],
512
- type: "critical_unblock_low",
513
- apiVersion: 2,
514
- operation: mod.contact ? OP.SET : OP.REMOVE
515
- };
516
- } else if ('removeChatLabel' in mod) {
506
+ }
507
+ else if ('removeChatLabel' in mod) {
517
508
  patch = {
518
509
  syncAction: {
519
510
  labelAssociationAction: {
@@ -27,17 +27,12 @@ const PLATFORM_MAP = {
27
27
  'cygwin': undefined,
28
28
  'netbsd': undefined
29
29
  };
30
-
31
- const Browsers = {
32
- iOS: (browser) => ["ios", browser, "18.2"],
33
- ubuntu: (browser) => ['Ubuntu', browser, '22.04.4'],
34
- macOS: (browser) => ['Mac OS', browser, '14.4.1'],
35
- baileys: (browser) => ['Baileys', browser, '6.5.0'],
36
- windows: (browser) => ['Windows', browser, '10.0.22631']
30
+ exports.Browsers = (browser) => {
31
+ const osName = PLATFORM_MAP[os_1.platform()] || 'Ubuntu';
32
+ const osRelease = os_1.release();
33
+ return [osName, browser, osRelease];
37
34
  };
38
35
 
39
- exports.Browsers = Browsers
40
-
41
36
  const getPlatformId = (browser) => {
42
37
  const platformType = WAProto_1.proto.DeviceProps.PlatformType[browser.toUpperCase()];
43
38
  return platformType ? platformType.toString() : '1'; //chrome
@@ -29,8 +29,6 @@ const getUserAgent = (config) => {
29
29
  };
30
30
  };
31
31
 
32
-
33
-
34
32
  const PLATFORM_MAP = {
35
33
  'Mac OS': WAProto_1.proto.ClientPayload.WebInfo.WebSubPlatform.DARWIN,
36
34
  'Windows': WAProto_1.proto.ClientPayload.WebInfo.WebSubPlatform.WIN32
package/lib/index.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ import makeWASocket from './Socket';
2
+ export * from '../WAProto';
3
+ export * from './Utils';
4
+ export * from './Types';
5
+ export * from './Store';
6
+ export * from './Defaults';
7
+ export * from './WABinary';
8
+ export * from './WAM';
9
+ export * from './WAUSync';
10
+ export type WASocket = ReturnType<typeof makeWASocket>;
11
+ export { makeWASocket };
12
+ export default makeWASocket;
package/lib/index.js CHANGED
@@ -1,39 +1,42 @@
1
- "use strict";
2
-
3
- const chalk = require("chalk");
4
-
5
- console.log(chalk.whiteBright("\n• Modified Baileys by Skyzopedia"));
6
- console.log(chalk.cyan("• Telegram: ") + chalk.greenBright("@Xskycode"));
7
- console.log(chalk.gray("------------------------------\n"));
8
-
9
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- var desc = Object.getOwnPropertyDescriptor(m, k);
12
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
13
- desc = { enumerable: true, get: function() { return m[k]; } };
14
- }
15
- Object.defineProperty(o, k2, desc);
16
- }) : (function(o, m, k, k2) {
17
- if (k2 === undefined) k2 = k;
18
- o[k2] = m[k];
19
- }));
20
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
21
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
22
- };
23
- var __importDefault = (this && this.__importDefault) || function (mod) {
24
- return (mod && mod.__esModule) ? mod : { "default": mod };
25
- };
26
- Object.defineProperty(exports, "__esModule", { value: true });
27
- exports.makeWASocket = void 0;
28
- const Socket_1 = __importDefault(require("./Socket"));
29
- exports.makeWASocket = Socket_1.default;
30
- __exportStar(require("../WAProto"), exports);
31
- __exportStar(require("./Utils"), exports);
32
- __exportStar(require("./Types"), exports);
33
- __exportStar(require("./Store"), exports);
34
- __exportStar(require("./Defaults"), exports);
35
- __exportStar(require("./WABinary"), exports);
36
- __exportStar(require("./WAM"), exports);
37
- __exportStar(require("./WAUSync"), exports);
38
-
39
- exports.default = Socket_1.default;
1
+ "use strict";
2
+ const chalk = require("chalk");
3
+ const { version } = require("../package.json");
4
+
5
+ console.log(chalk.cyan(" Thanks for using Baileys @DinzID"))
6
+
7
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
8
+ if (k2 === undefined) k2 = k;
9
+ var desc = Object.getOwnPropertyDescriptor(m, k);
10
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
11
+ desc = { enumerable: true, get: function() { return m[k]; } };
12
+ }
13
+ Object.defineProperty(o, k2, desc);
14
+ }) : (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ o[k2] = m[k];
17
+ }));
18
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
19
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
20
+ };
21
+ var __importDefault = (this && this.__importDefault) || function (mod) {
22
+ return (mod && mod.__esModule) ? mod : { "default": mod };
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.makeWASocket = void 0;
26
+ const Socket_1 = __importDefault(require("./Socket"));
27
+ exports.makeWASocket = Socket_1.default;
28
+ __exportStar(require("../WAProto"), exports);
29
+ __exportStar(require("./Utils"), exports);
30
+ __exportStar(require("./Types"), exports);
31
+ __exportStar(require("./Store"), exports);
32
+ __exportStar(require("./Defaults"), exports);
33
+ __exportStar(require("./WABinary"), exports);
34
+ __exportStar(require("./WAM"), exports);
35
+ __exportStar(require("./WAUSync"), exports);
36
+
37
+ exports.default = Socket_1.default;
38
+
39
+
40
+
41
+
42
+
package/package.json CHANGED
@@ -1,110 +1,107 @@
1
- {
2
- "name": "devilkyuuna",
3
- "version": "1.0.12",
4
- "description": "WhatsApp API Modification By Devilkyuuna",
5
- "keywords": [
6
- "whatsapp",
7
- "laurine-wabot",
8
- "baileys",
9
- "whatsapp-web",
10
- "whatsapp-chat",
11
- "whatsapp-group",
12
- "botwa",
13
- "whiskeysockets"
14
- ],
15
- "homepage": "https://www.npmjs.com/package/@whiskeysockets/baileys",
16
- "repository": {
17
- "url": "https://www.npmjs.com/package/@whiskeysockets/baileys"
18
- },
19
- "license": "MIT",
20
- "author": "Adhiraj Singh",
21
- "main": "lib/index.js",
22
- "types": "lib/index.d.ts",
23
- "files": [
24
- "lib/*",
25
- "WAProto/*.js",
26
- "engine-requirements.js"
27
- ],
28
- "scripts": {
29
- "build:all": "tsc && typedoc",
30
- "build:docs": "typedoc",
31
- "build:tsc": "tsc",
32
- "changelog:last": "conventional-changelog -p angular -r 2",
33
- "changelog:preview": "conventional-changelog -p angular -u",
34
- "gen:protobuf": "sh WAProto/GenerateStatics.sh",
35
- "lint": "eslint src --ext .js,.ts,.jsx,.tsx",
36
- "lint:fix": "eslint src --fix --ext .js,.ts,.jsx,.tsx",
37
- "prepack": "",
38
- "prepare": "",
39
- "preinstall": "node ./engine-requirements.js",
40
- "release": "release-it",
41
- "test": "jest"
42
- },
43
- "dependencies": {
44
- "@adiwajshing/keyed-db": "^0.2.4",
45
- "@hapi/boom": "^9.1.3",
46
- "@cacheable/node-cache": "^1.4.0",
47
- "async-mutex": "^0.5.0",
48
- "audio-decode": "^2.1.3",
49
- "axios": "^1.3.3",
50
- "cache-manager": "4.0.1",
51
- "chalk": "^4.1.2",
52
- "futoin-hkdf": "^1.5.1",
53
- "libphonenumber-js": "^1.10.20",
54
- "lodash": "^4.17.21",
55
- "libsignal": "npm:@skyzopedia/libsignal-node",
56
- "music-metadata": "^7.12.3",
57
- "node-cache": "^5.1.2",
58
- "node-fetch": "^2.6.1",
59
- "pino": "^7.0.0",
60
- "protobufjs": "^7.2.4",
61
- "uuid": "^9.0.0",
62
- "ws": "^8.13.0"
63
- },
64
- "devDependencies": {
65
- "@adiwajshing/eslint-config": "github:adiwajshing/eslint-config",
66
- "@types/got": "^9.6.11",
67
- "@types/jest": "^27.5.1",
68
- "@types/node": "^16.0.0",
69
- "@types/sharp": "^0.29.4",
70
- "@types/ws": "^8.0.0",
71
- "conventional-changelog-cli": "^2.2.2",
72
- "eslint": "^8.0.0",
73
- "jest": "^27.0.6",
74
- "jimp": "^0.22.12",
75
- "link-preview-js": "^3.0.0",
76
- "open": "^8.4.2",
77
- "qrcode-terminal": "^0.12.0",
78
- "release-it": "^15.10.3",
79
- "sharp": "^0.30.5",
80
- "ts-jest": "^27.0.3",
81
- "ts-node": "^10.8.1",
82
- "typedoc": "^0.24.7",
83
- "typescript": "^4.6.4",
84
- "json": "^11.0.0"
85
- },
86
- "peerDependencies": {
87
- "jimp": "^0.22.12",
88
- "link-preview-js": "^3.0.0",
89
- "qrcode-terminal": "^0.12.0",
90
- "sharp": "^0.32.2"
91
- },
92
- "peerDependenciesMeta": {
93
- "jimp": {
94
- "optional": true
95
- },
96
- "link-preview-js": {
97
- "optional": true
98
- },
99
- "qrcode-terminal": {
100
- "optional": true
101
- },
102
- "sharp": {
103
- "optional": true
104
- }
105
- },
106
- "packageManager": "yarn@1.22.19",
107
- "engines": {
108
- "node": ">=20.0.0"
109
- }
110
- }
1
+ {
2
+ "name": "devilkyuuna",
3
+ "version": "1.0.14",
4
+ "description": "Baileys Modification for whatsapp",
5
+ "keywords": [
6
+ "Modified",
7
+ "Bot Whatsapp",
8
+ "DinzID"
9
+ ],
10
+ "homepage": "https://github.com/dinzid04/DinzBaileys.git",
11
+ "repository": {
12
+ "url": "https://github.com/dinzid04/kyuuna.git"
13
+ },
14
+ "license": "MIT",
15
+ "author": "DinzID",
16
+ "main": "lib/index.js",
17
+ "types": "lib/index.d.ts",
18
+ "files": [
19
+ "lib/*",
20
+ "WAProto/*.js",
21
+ "engine-requirements.js"
22
+ ],
23
+ "scripts": {
24
+ "build:all": "tsc && typedoc",
25
+ "build:docs": "typedoc",
26
+ "build:tsc": "tsc",
27
+ "changelog:last": "conventional-changelog -p angular -r 2",
28
+ "changelog:preview": "conventional-changelog -p angular -u",
29
+ "gen:protobuf": "sh WAProto/GenerateStatics.sh",
30
+ "lint": "eslint src --ext .js,.ts,.jsx,.tsx",
31
+ "lint:fix": "eslint src --fix --ext .js,.ts,.jsx,.tsx",
32
+ "prepack": "",
33
+ "prepare": "",
34
+ "preinstall": "node ./engine-requirements.js",
35
+ "release": "release-it",
36
+ "test": "jest"
37
+ },
38
+ "dependencies": {
39
+ "@adiwajshing/keyed-db": "^0.2.4",
40
+ "@cacheable/node-cache": "^1.4.0",
41
+ "@hapi/boom": "^9.1.3",
42
+ "async-mutex": "^0.5.0",
43
+ "audio-decode": "^2.1.3",
44
+ "axios": "^1.3.3",
45
+ "cache-manager": "4.0.1",
46
+ "chalk": "^4.1.2",
47
+ "futoin-hkdf": "^1.5.1",
48
+ "gradient-string": "^3.0.0",
49
+ "libphonenumber-js": "^1.10.20",
50
+ "libsignal": "npm:@yaoii-bails/libsignall-node",
51
+ "lodash": "^4.17.21",
52
+ "music-metadata": "^7.12.3",
53
+ "node-cache": "^5.1.2",
54
+ "node-fetch": "^2.6.1",
55
+ "ora": "^6.3.1",
56
+ "pino": "^7.0.0",
57
+ "protobufjs": "^7.2.4",
58
+ "uuid": "^9.0.0",
59
+ "ws": "^8.13.0"
60
+ },
61
+ "devDependencies": {
62
+ "@adiwajshing/eslint-config": "github:adiwajshing/eslint-config",
63
+ "@types/got": "^9.6.11",
64
+ "@types/jest": "^27.5.1",
65
+ "@types/node": "^16.0.0",
66
+ "@types/sharp": "^0.29.4",
67
+ "@types/ws": "^8.0.0",
68
+ "conventional-changelog-cli": "^2.2.2",
69
+ "eslint": "^9",
70
+ "jest": "^27.0.6",
71
+ "jimp": "^0.16.1",
72
+ "json": "^11.0.0",
73
+ "link-preview-js": "^3.0.0",
74
+ "open": "^8.4.2",
75
+ "qrcode-terminal": "^0.12.0",
76
+ "release-it": "^15.10.3",
77
+ "sharp": "^0.30.5",
78
+ "ts-jest": "^27.0.3",
79
+ "ts-node": "^10.8.1",
80
+ "typedoc": "^0.24.7",
81
+ "typescript": "^4.6.4"
82
+ },
83
+ "peerDependencies": {
84
+ "jimp": "^0.16.3",
85
+ "link-preview-js": "^3.0.0",
86
+ "qrcode-terminal": "^0.12.0",
87
+ "sharp": "^0.34.2"
88
+ },
89
+ "peerDependenciesMeta": {
90
+ "jimp": {
91
+ "optional": true
92
+ },
93
+ "link-preview-js": {
94
+ "optional": true
95
+ },
96
+ "qrcode-terminal": {
97
+ "optional": true
98
+ },
99
+ "sharp": {
100
+ "optional": true
101
+ }
102
+ },
103
+ "packageManager": "yarn@1.22.19",
104
+ "engines": {
105
+ "node": ">=20.0.0"
106
+ }
107
+ }