@roidev/kachina-md 2.3.0 → 2.4.0
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/lib/client/Client.js +3 -3
- package/lib/index.js +2 -2
- package/package.json +9 -9
- /package/lib/{handlers → structures}/PluginHandler.js +0 -0
- /package/lib/{helpers → utils}/database.js +0 -0
- /package/lib/{helpers → utils}/index.js +0 -0
- /package/lib/{helpers → utils}/logger.js +0 -0
- /package/lib/{helpers → utils}/serialize.js +0 -0
- /package/lib/{helpers → utils}/sticker.js +0 -0
package/lib/client/Client.js
CHANGED
|
@@ -10,12 +10,12 @@ import { Boom } from '@hapi/boom';
|
|
|
10
10
|
import pino from 'pino';
|
|
11
11
|
import qrcode from 'qrcode-terminal';
|
|
12
12
|
import EventEmitter from 'events';
|
|
13
|
-
import { serialize } from '../
|
|
14
|
-
import { PluginHandler } from '../
|
|
13
|
+
import { serialize } from '../utils/serialize.js';
|
|
14
|
+
import { PluginHandler } from '../structures/PluginHandler.js';
|
|
15
15
|
import {
|
|
16
16
|
createSticker,
|
|
17
17
|
StickerTypes
|
|
18
|
-
} from '../
|
|
18
|
+
} from '../utils/sticker.js';
|
|
19
19
|
import chalk from 'chalk';
|
|
20
20
|
|
|
21
21
|
/**
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Main exports
|
|
2
2
|
export { Client } from './client/Client.js';
|
|
3
|
-
export { PluginHandler } from './
|
|
3
|
+
export { PluginHandler } from './structures/PluginHandler.js';
|
|
4
4
|
|
|
5
5
|
// Helpers
|
|
6
6
|
export {
|
|
@@ -23,7 +23,7 @@ export {
|
|
|
23
23
|
randomNumber,
|
|
24
24
|
pickRandom,
|
|
25
25
|
chunk
|
|
26
|
-
} from './
|
|
26
|
+
} from './utils/index.js';
|
|
27
27
|
|
|
28
28
|
// Default export
|
|
29
29
|
import { Client } from './client/Client.js';
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roidev/kachina-md",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "WhatsApp Bot Framework - Simple, Fast, and Modular",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"build": "node build.js",
|
|
10
|
-
"test": "node
|
|
10
|
+
"test": "node example/basic-bot.js",
|
|
11
11
|
"prepublishOnly": "npm run build",
|
|
12
12
|
"release": "bash scripts/release.sh",
|
|
13
|
-
"docs:dev": "vitepress dev docs
|
|
14
|
-
"docs:build": "vitepress build docs
|
|
15
|
-
"docs:preview": "vitepress preview docs
|
|
13
|
+
"docs:dev": "vitepress dev docs --host",
|
|
14
|
+
"docs:build": "vitepress build docs",
|
|
15
|
+
"docs:preview": "vitepress preview docs"
|
|
16
16
|
},
|
|
17
17
|
"keywords": [
|
|
18
18
|
"whatsapp",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@hapi/boom": "^10.0.1",
|
|
38
38
|
"axios": "^1.6.0",
|
|
39
|
-
"baileys": "npm:
|
|
39
|
+
"baileys": "npm:ye-bail@latest",
|
|
40
40
|
"chalk": "^5.3.0",
|
|
41
41
|
"file-type": "^18.7.0",
|
|
42
42
|
"fs-extra": "^11.2.0",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"node-cache": "^5.1.2",
|
|
45
45
|
"pino": "^8.16.0",
|
|
46
46
|
"qrcode-terminal": "^0.12.0",
|
|
47
|
-
"sharp": "^0.
|
|
47
|
+
"sharp": "^0.34.5",
|
|
48
48
|
"wa-sticker-formatter": "^4.4.4"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"./plugins": {
|
|
64
64
|
"import": "./lib/plugins/index.js"
|
|
65
65
|
},
|
|
66
|
-
"./
|
|
67
|
-
"import": "./lib/
|
|
66
|
+
"./utils": {
|
|
67
|
+
"import": "./lib/utils/index.js"
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"files": [
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|