@wppconnect/wa-js 3.23.4 → 4.0.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/CHANGELOG.md +2 -5
- package/README.md +2 -2
- package/changelog.config.cjs +43 -0
- package/dist/conn/events/eventTypes.d.ts +16 -0
- package/dist/conn/events/index.d.ts +1 -0
- package/dist/conn/events/registerBackendEventBusEvents.d.ts +16 -0
- package/dist/contact/functions/index.d.ts +6 -1
- package/dist/contact/functions/queryExists.d.ts +4 -34
- package/dist/contact/functions/queryUsernameExists.d.ts +61 -0
- package/dist/contact/functions/queryWidExists.d.ts +51 -0
- package/dist/eventEmitter/eventTypes.d.ts +3 -3
- package/dist/eventEmitter/index.d.ts +41 -41
- package/dist/index.d.ts +8 -8
- package/dist/loader/blacklist.d.ts +28 -0
- package/dist/{webpack → loader}/eventTypes.d.ts +4 -4
- package/dist/{webpack → loader}/index.d.ts +14 -9
- package/dist/whatsapp/exportModule.d.ts +2 -2
- package/dist/whatsapp/functions/index.d.ts +1 -0
- package/dist/whatsapp/functions/sendQueryExists.d.ts +2 -1
- package/dist/whatsapp/functions/sendQueryUsernameExists.d.ts +36 -0
- package/dist/whatsapp/misc/BackendEventBus.d.ts +55 -0
- package/dist/whatsapp/misc/index.d.ts +1 -0
- package/dist/wppconnect-wa.js +1 -1
- package/dist/wppconnect-wa.js.LICENSE.txt +1 -1
- package/eslint.config.mjs +14 -0
- package/package.json +4 -4
package/eslint.config.mjs
CHANGED
|
@@ -106,4 +106,18 @@ export default [
|
|
|
106
106
|
'@typescript-eslint/no-unsafe-declaration-merging': 'off',
|
|
107
107
|
},
|
|
108
108
|
},
|
|
109
|
+
|
|
110
|
+
// CommonJS config files
|
|
111
|
+
{
|
|
112
|
+
files: ['**/*.cjs'],
|
|
113
|
+
languageOptions: {
|
|
114
|
+
globals: {
|
|
115
|
+
module: 'readonly',
|
|
116
|
+
require: 'readonly',
|
|
117
|
+
exports: 'readonly',
|
|
118
|
+
__dirname: 'readonly',
|
|
119
|
+
__filename: 'readonly',
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
},
|
|
109
123
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wppconnect/wa-js",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
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": {
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"scripts": {
|
|
23
23
|
"build:dev": "webpack --devtool inline-source-map --mode development",
|
|
24
24
|
"build:prd": "webpack",
|
|
25
|
-
"changelog:last": "conventional-changelog -
|
|
26
|
-
"changelog:preview": "conventional-changelog -
|
|
27
|
-
"changelog:update": "conventional-changelog -
|
|
25
|
+
"changelog:last": "conventional-changelog -n ./changelog.config.cjs -r 2",
|
|
26
|
+
"changelog:preview": "conventional-changelog -n ./changelog.config.cjs -u",
|
|
27
|
+
"changelog:update": "conventional-changelog -n ./changelog.config.cjs -i CHANGELOG.md -s -r 0",
|
|
28
28
|
"clean": "shx rm -rf dist",
|
|
29
29
|
"commit": "cz",
|
|
30
30
|
"docs:build": "npm run docs:clean && typedoc --gitRevision main",
|