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.
- package/engine-requirements.js +91 -10
- package/lib/Defaults/index.js +2 -3
- package/lib/Socket/chats.js +0 -19
- package/lib/Socket/messages-send.js +1 -1
- package/lib/Socket/newsletter.d.ts +134 -0
- package/lib/Socket/newsletter.js +59 -242
- package/lib/Socket/socket.js +1 -15
- package/lib/Utils/chat-utils.js +2 -11
- package/lib/Utils/generics.js +4 -9
- package/lib/Utils/validate-connection.js +0 -2
- package/lib/index.d.ts +12 -0
- package/lib/index.js +42 -39
- package/package.json +107 -110
- package/lib/Socket/chats.js.bak +0 -981
- package/lib/Utils/generics.js.bak +0 -433
- package/lib/Utils/validate-connection.js.bak +0 -237
package/lib/Utils/chat-utils.js
CHANGED
|
@@ -503,17 +503,8 @@ const chatModificationToAppPatch = (mod, jid) => {
|
|
|
503
503
|
apiVersion: 3,
|
|
504
504
|
operation: OP.SET,
|
|
505
505
|
};
|
|
506
|
-
}
|
|
507
|
-
|
|
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: {
|
package/lib/Utils/generics.js
CHANGED
|
@@ -27,17 +27,12 @@ const PLATFORM_MAP = {
|
|
|
27
27
|
'cygwin': undefined,
|
|
28
28
|
'netbsd': undefined
|
|
29
29
|
};
|
|
30
|
-
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
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
|
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
|
|
4
|
-
|
|
5
|
-
console.log(chalk.
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var
|
|
10
|
-
if (
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
exports.makeWASocket =
|
|
28
|
-
|
|
29
|
-
exports
|
|
30
|
-
__exportStar(require("
|
|
31
|
-
__exportStar(require("./
|
|
32
|
-
__exportStar(require("./
|
|
33
|
-
__exportStar(require("./
|
|
34
|
-
__exportStar(require("./
|
|
35
|
-
__exportStar(require("./
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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.
|
|
4
|
-
"description": "
|
|
5
|
-
"keywords": [
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"@
|
|
66
|
-
"@types/
|
|
67
|
-
"@types/
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
"
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
"
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
"
|
|
94
|
-
"optional": true
|
|
95
|
-
},
|
|
96
|
-
"
|
|
97
|
-
"optional": true
|
|
98
|
-
},
|
|
99
|
-
"
|
|
100
|
-
"optional": true
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
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
|
+
}
|