@onedevil405/baileys 1.0.0 → 1.3.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/README.md +1 -0
- package/WAProto/fix-imports.js +4 -4
- package/package.json +2 -2
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Welcome to Baileys
|
package/WAProto/fix-imports.js
CHANGED
|
@@ -4,22 +4,22 @@ import { argv, exit } from 'process';
|
|
|
4
4
|
const filePath = './index.js';
|
|
5
5
|
|
|
6
6
|
try {
|
|
7
|
-
|
|
7
|
+
|
|
8
8
|
let content = readFileSync(filePath, 'utf8');
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
|
|
11
11
|
content = content.replace(
|
|
12
12
|
/import \* as (\$protobuf) from/g,
|
|
13
13
|
'import $1 from'
|
|
14
14
|
);
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
content = content.replace(
|
|
18
18
|
/(['"])protobufjs\/minimal(['"])/g,
|
|
19
19
|
'$1protobufjs/minimal.js$2'
|
|
20
20
|
);
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
|
|
23
23
|
writeFileSync(filePath, content, 'utf8');
|
|
24
24
|
|
|
25
25
|
console.log(`✅ Fixed imports in ${filePath}`);
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onedevil405/baileys",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A WebSockets library for interacting with WhatsApp Web",
|
|
6
6
|
"keywords": ["whatsapp", "automation"],
|
|
7
7
|
"homepage": "https://stormbot.webnode.page",
|
|
8
8
|
"license": "MIT",
|
|
9
|
-
"author": "
|
|
9
|
+
"author": "Lorenz Hübsch",
|
|
10
10
|
"main": "lib/index.js",
|
|
11
11
|
"types": "lib/index.d.ts",
|
|
12
12
|
"files": [
|