@wppconnect/wa-js 3.19.4 → 3.19.6
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/CHANGELOG.md +1 -1
- package/README.md +22 -0
- package/dist/chat/functions/list.d.ts +4 -0
- package/dist/conn/functions/getABProps.d.ts +83 -0
- package/dist/conn/functions/index.d.ts +1 -0
- package/dist/whatsapp/functions/abPropsCache.d.ts +36 -0
- package/dist/whatsapp/functions/index.d.ts +1 -0
- package/dist/whatsapp/functions/markSeen.d.ts +13 -4
- package/dist/whatsapp/functions/toUserLid.d.ts +6 -0
- package/dist/wppconnect-wa.js +1 -1
- package/dist/wppconnect-wa.js.LICENSE.txt +1 -1
- package/package.json +12 -12
- package/scripts/compare-wa-versions.sh +85 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wppconnect/wa-js",
|
|
3
|
-
"version": "3.19.
|
|
3
|
+
"version": "3.19.6",
|
|
4
4
|
"description": "WPPConnect/WA-JS is an open-source project with the aim of exporting functions from WhatsApp Web",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
"watch": "webpack watch --devtool inline-source-map --mode development"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@commitlint/cli": "^20.3.
|
|
48
|
-
"@commitlint/config-conventional": "^20.3.
|
|
49
|
-
"@commitlint/prompt-cli": "^20.3.
|
|
47
|
+
"@commitlint/cli": "^20.3.1",
|
|
48
|
+
"@commitlint/config-conventional": "^20.3.1",
|
|
49
|
+
"@commitlint/prompt-cli": "^20.3.1",
|
|
50
50
|
"@playwright/test": "^1.57.0",
|
|
51
51
|
"@tony.ganchev/eslint-plugin-header": "^3.1.11",
|
|
52
52
|
"@types/debug": "^4.1.12",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"@types/node-fetch": "^2.6.13",
|
|
55
55
|
"@types/parse-data-url": "^3.0.2",
|
|
56
56
|
"@types/shelljs": "^0.10.0",
|
|
57
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
58
|
-
"@typescript-eslint/parser": "^8.
|
|
59
|
-
"@wppconnect/wa-version": "^1.5.
|
|
57
|
+
"@typescript-eslint/eslint-plugin": "^8.53.0",
|
|
58
|
+
"@typescript-eslint/parser": "^8.53.0",
|
|
59
|
+
"@wppconnect/wa-version": "^1.5.3052",
|
|
60
60
|
"buffer": "^6.0.3",
|
|
61
61
|
"compare-versions": "^6.1.1",
|
|
62
62
|
"compressorjs": "^1.2.1",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"eslint": "^9.39.2",
|
|
67
67
|
"eslint-config-prettier": "^10.1.8",
|
|
68
68
|
"eslint-plugin-import": "^2.32.0",
|
|
69
|
-
"eslint-plugin-prettier": "^5.5.
|
|
69
|
+
"eslint-plugin-prettier": "^5.5.5",
|
|
70
70
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
71
71
|
"eventemitter2": "^6.4.9",
|
|
72
72
|
"file-type": "~16.5.4",
|
|
@@ -75,19 +75,19 @@
|
|
|
75
75
|
"node-fetch": "^2.7.0",
|
|
76
76
|
"parse-data-url": "^6.0.0",
|
|
77
77
|
"playwright-chromium": "^1.57.0",
|
|
78
|
-
"prettier": "^3.
|
|
79
|
-
"release-it": "^19.2.
|
|
78
|
+
"prettier": "^3.8.0",
|
|
79
|
+
"release-it": "^19.2.3",
|
|
80
80
|
"shx": "^0.4.0",
|
|
81
81
|
"terser-webpack-plugin": "^5.3.16",
|
|
82
82
|
"ts-loader": "^9.5.4",
|
|
83
83
|
"ts-morph": "^27.0.2",
|
|
84
84
|
"ts-node": "^10.9.2",
|
|
85
|
-
"typedoc": "^0.28.
|
|
85
|
+
"typedoc": "^0.28.16",
|
|
86
86
|
"typedoc-plugin-mdn-links": "^5.0.10",
|
|
87
87
|
"typedoc-plugin-missing-exports": "^4.1.2",
|
|
88
88
|
"typescript": "^5.9.3",
|
|
89
89
|
"typescript-debounce-decorator": "^0.0.18",
|
|
90
|
-
"typescript-eslint": "^8.
|
|
90
|
+
"typescript-eslint": "^8.53.0",
|
|
91
91
|
"webpack": "^5.104.1",
|
|
92
92
|
"webpack-cli": "^6.0.1"
|
|
93
93
|
},
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
# Compare WhatsApp Web source between two versions
|
|
3
|
+
# Usage: ./scripts/compare-wa-versions.sh <version1> <version2> [module_name]
|
|
4
|
+
#
|
|
5
|
+
# Examples:
|
|
6
|
+
# ./scripts/compare-wa-versions.sh 2.3000.1031980585 2.3000.1031992593
|
|
7
|
+
# ./scripts/compare-wa-versions.sh 2.3000.1031980585 2.3000.1031992593 WAWebUpdateUnreadChatAction
|
|
8
|
+
|
|
9
|
+
V1="$1"
|
|
10
|
+
V2="$2"
|
|
11
|
+
MODULE="$3"
|
|
12
|
+
|
|
13
|
+
WA_SOURCE_DIR="$(dirname "$0")/../wa-source"
|
|
14
|
+
|
|
15
|
+
if [ -z "$V1" ] || [ -z "$V2" ]; then
|
|
16
|
+
echo "Usage: $0 <version1> <version2> [module_name]"
|
|
17
|
+
echo ""
|
|
18
|
+
echo "Available versions:"
|
|
19
|
+
ls -1 "$WA_SOURCE_DIR" | tail -10
|
|
20
|
+
exit 1
|
|
21
|
+
fi
|
|
22
|
+
|
|
23
|
+
DIR1="$WA_SOURCE_DIR/$V1"
|
|
24
|
+
DIR2="$WA_SOURCE_DIR/$V2"
|
|
25
|
+
|
|
26
|
+
if [ ! -d "$DIR1" ]; then
|
|
27
|
+
echo "Error: Version $V1 not found"
|
|
28
|
+
exit 1
|
|
29
|
+
fi
|
|
30
|
+
|
|
31
|
+
if [ ! -d "$DIR2" ]; then
|
|
32
|
+
echo "Error: Version $V2 not found"
|
|
33
|
+
exit 1
|
|
34
|
+
fi
|
|
35
|
+
|
|
36
|
+
if [ -n "$MODULE" ]; then
|
|
37
|
+
echo "=== Comparing module: $MODULE ==="
|
|
38
|
+
echo ""
|
|
39
|
+
|
|
40
|
+
# Extract module from both versions
|
|
41
|
+
TMP1=$(mktemp)
|
|
42
|
+
TMP2=$(mktemp)
|
|
43
|
+
|
|
44
|
+
grep -h "__d(\"$MODULE\"" "$DIR1"/*.js 2>/dev/null | head -1 > "$TMP1"
|
|
45
|
+
grep -h "__d(\"$MODULE\"" "$DIR2"/*.js 2>/dev/null | head -1 > "$TMP2"
|
|
46
|
+
|
|
47
|
+
if [ ! -s "$TMP1" ]; then
|
|
48
|
+
echo "Module $MODULE not found in $V1"
|
|
49
|
+
rm "$TMP1" "$TMP2"
|
|
50
|
+
exit 1
|
|
51
|
+
fi
|
|
52
|
+
|
|
53
|
+
if [ ! -s "$TMP2" ]; then
|
|
54
|
+
echo "Module $MODULE not found in $V2"
|
|
55
|
+
rm "$TMP1" "$TMP2"
|
|
56
|
+
exit 1
|
|
57
|
+
fi
|
|
58
|
+
|
|
59
|
+
# Show diff
|
|
60
|
+
diff --color=always "$TMP1" "$TMP2" || true
|
|
61
|
+
|
|
62
|
+
rm "$TMP1" "$TMP2"
|
|
63
|
+
else
|
|
64
|
+
echo "=== File count comparison ==="
|
|
65
|
+
echo "$V1: $(ls "$DIR1"/*.js 2>/dev/null | wc -l) JS files"
|
|
66
|
+
echo "$V2: $(ls "$DIR2"/*.js 2>/dev/null | wc -l) JS files"
|
|
67
|
+
echo ""
|
|
68
|
+
|
|
69
|
+
echo "=== Module differences ==="
|
|
70
|
+
# Extract all module names
|
|
71
|
+
TMP1=$(mktemp)
|
|
72
|
+
TMP2=$(mktemp)
|
|
73
|
+
|
|
74
|
+
grep -oh '__d("[^"]*"' "$DIR1"/*.js 2>/dev/null | sort -u > "$TMP1"
|
|
75
|
+
grep -oh '__d("[^"]*"' "$DIR2"/*.js 2>/dev/null | sort -u > "$TMP2"
|
|
76
|
+
|
|
77
|
+
echo "Modules only in $V1:"
|
|
78
|
+
comm -23 "$TMP1" "$TMP2" | head -20
|
|
79
|
+
echo ""
|
|
80
|
+
|
|
81
|
+
echo "Modules only in $V2:"
|
|
82
|
+
comm -13 "$TMP1" "$TMP2" | head -20
|
|
83
|
+
|
|
84
|
+
rm "$TMP1" "$TMP2"
|
|
85
|
+
fi
|