@wppconnect-team/wppconnect 1.14.1 → 1.14.4
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
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## 1.14.4 (2022-06-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
## 1.14.3 (2022-06-17)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **deps:** update dependency @wppconnect/wa-js to ^2.7.2 ([#1181](https://github.com/wppconnect-team/wppconnect/issues/1181)) ([5208e62](https://github.com/wppconnect-team/wppconnect/commit/5208e621cf79ca5d80cca5ecf3c7b9068ca44e91))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 1.14.2 (2022-06-11)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* Added filename for sendFile when is using path or URL (fix [#1168](https://github.com/wppconnect-team/wppconnect/issues/1168)) ([5534fad](https://github.com/wppconnect-team/wppconnect/commit/5534fad0e056563cc3ce6b7699ea06f5eaff6da8))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
1
23
|
## 1.14.1 (2022-06-08)
|
|
2
24
|
|
|
3
25
|
|
package/README.md
CHANGED
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
> WPPConnect is an open source project developed by the JavaScript community with the aim of exporting functions from WhatsApp Web to the node, which can be used to support the creation of any interaction, such as customer service, media sending, intelligence recognition based on phrases artificial and many other things, use your imagination... 😀🤔💭
|
|
14
14
|
|
|
15
15
|
<p align="center">
|
|
16
|
-
<a href="https://wppconnect
|
|
17
|
-
<a href="https://wppconnect
|
|
18
|
-
<a href="https://wppconnect
|
|
16
|
+
<a href="https://wppconnect.io/wppconnect/pages/Getting%20Started/installation.html">Getting Started</a> •
|
|
17
|
+
<a href="https://wppconnect.io/wppconnect/pages/Getting%20Started/basic-functions.html">Basic Function</a> •
|
|
18
|
+
<a href="https://wppconnect.io/wppconnect/">Documentation</a>
|
|
19
19
|
</p>
|
|
20
20
|
|
|
21
21
|
## Our online channels
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
| Send _location_ | ✔ |
|
|
43
43
|
| **and much more** | ✔ |
|
|
44
44
|
|
|
45
|
-
See more at <a href="https://wppconnect
|
|
45
|
+
See more at <a href="https://wppconnect.io/wppconnect/classes/Whatsapp.html">WhatsApp methods</a>
|
|
46
46
|
|
|
47
47
|
## Installation
|
|
48
48
|
|
|
@@ -52,7 +52,7 @@ The first thing that you had to do is install the `npm package` :
|
|
|
52
52
|
npm i --save @wppconnect-team/wppconnect
|
|
53
53
|
```
|
|
54
54
|
|
|
55
|
-
See more at <a href="https://wppconnect
|
|
55
|
+
See more at <a href="https://wppconnect.io/wppconnect/pages/Getting%20Started/installation.html">Getting Started</a>
|
|
56
56
|
|
|
57
57
|
## Development
|
|
58
58
|
|
|
@@ -374,8 +374,8 @@ var RetrieverLayer = /** @class */ (function (_super) {
|
|
|
374
374
|
case 1:
|
|
375
375
|
status = _a.sent();
|
|
376
376
|
return [2 /*return*/, {
|
|
377
|
-
id:
|
|
378
|
-
status: status.status,
|
|
377
|
+
id: contactId,
|
|
378
|
+
status: (status === null || status === void 0 ? void 0 : status.status) || status,
|
|
379
379
|
}];
|
|
380
380
|
}
|
|
381
381
|
});
|
|
@@ -35,7 +35,7 @@ export declare class SenderLayer extends ListenerLayer {
|
|
|
35
35
|
* useTemplateButtons: true, // False for legacy
|
|
36
36
|
* buttons: [
|
|
37
37
|
* {
|
|
38
|
-
* url: 'https://wppconnect
|
|
38
|
+
* url: 'https://wppconnect.io/',
|
|
39
39
|
* text: 'WPPConnect Site'
|
|
40
40
|
* },
|
|
41
41
|
* {
|
|
@@ -176,7 +176,7 @@ export declare class SenderLayer extends ListenerLayer {
|
|
|
176
176
|
* useTemplateButtons: true, // False for legacy
|
|
177
177
|
* buttons: [
|
|
178
178
|
* {
|
|
179
|
-
* url: 'https://wppconnect
|
|
179
|
+
* url: 'https://wppconnect.io/',
|
|
180
180
|
* text: 'WPPConnect Site'
|
|
181
181
|
* },
|
|
182
182
|
* {
|
|
@@ -160,7 +160,7 @@ var SenderLayer = /** @class */ (function (_super) {
|
|
|
160
160
|
* useTemplateButtons: true, // False for legacy
|
|
161
161
|
* buttons: [
|
|
162
162
|
* {
|
|
163
|
-
* url: 'https://wppconnect
|
|
163
|
+
* url: 'https://wppconnect.io/',
|
|
164
164
|
* text: 'WPPConnect Site'
|
|
165
165
|
* },
|
|
166
166
|
* {
|
|
@@ -628,6 +628,9 @@ var SenderLayer = /** @class */ (function (_super) {
|
|
|
628
628
|
if (fileContent) {
|
|
629
629
|
base64 = fileContent;
|
|
630
630
|
}
|
|
631
|
+
if (!options.filename) {
|
|
632
|
+
options.filename = path.basename(pathOrBase64);
|
|
633
|
+
}
|
|
631
634
|
_a.label = 5;
|
|
632
635
|
case 5:
|
|
633
636
|
if (!base64) {
|
|
@@ -147,7 +147,7 @@ function create(sessionOrOption, catchQR, statusFind, options, browserSessionTok
|
|
|
147
147
|
mergedOptions = __assign(__assign({}, create_config_1.defaultOptions), options);
|
|
148
148
|
logger = mergedOptions.logger;
|
|
149
149
|
if (usingDeprecatedCreate) {
|
|
150
|
-
logger.warn('You are using deprecated create method, please use create({options}) See: https://wppconnect
|
|
150
|
+
logger.warn('You are using deprecated create method, please use create({options}) See: https://wppconnect.io/wppconnect/pages/Getting%20Started/creating-client.html#passing-options-on-create');
|
|
151
151
|
}
|
|
152
152
|
if (!mergedOptions.disableWelcome) {
|
|
153
153
|
(0, welcome_1.welcomeScreen)();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wppconnect-team/wppconnect",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.4",
|
|
4
4
|
"description": "WPPConnect is an open source project developed by the JavaScript community with the aim of exporting functions from WhatsApp Web to the node, which can be used to support the creation of any interaction, such as customer service, media sending, intelligence recognition based on phrases artificial and many other things, use your imagination... 😀🤔💭",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
},
|
|
59
59
|
"homepage": "https://github.com/wppconnect-team/wppconnect#readme",
|
|
60
60
|
"devDependencies": {
|
|
61
|
-
"@babel/core": "^7.18.
|
|
61
|
+
"@babel/core": "^7.18.5",
|
|
62
62
|
"@babel/eslint-parser": "^7.18.2",
|
|
63
63
|
"@babel/eslint-plugin": "^7.17.7",
|
|
64
64
|
"@babel/preset-env": "^7.18.2",
|
|
@@ -68,20 +68,20 @@
|
|
|
68
68
|
"@types/atob": "^2.1.2",
|
|
69
69
|
"@types/mime-types": "^2.1.1",
|
|
70
70
|
"@types/mocha": "^9.1.1",
|
|
71
|
-
"@types/node": "^16.11.
|
|
71
|
+
"@types/node": "^16.11.41",
|
|
72
72
|
"@types/rimraf": "^3.0.2",
|
|
73
|
-
"@types/sharp": "^0.30.
|
|
73
|
+
"@types/sharp": "^0.30.4",
|
|
74
74
|
"@types/shelljs": "^0.8.11",
|
|
75
75
|
"@types/tmp": "^0.2.3",
|
|
76
76
|
"@types/ws": "^8.5.3",
|
|
77
|
-
"@typescript-eslint/eslint-plugin": "^5.27.
|
|
78
|
-
"@typescript-eslint/parser": "^5.27.
|
|
77
|
+
"@typescript-eslint/eslint-plugin": "^5.27.1",
|
|
78
|
+
"@typescript-eslint/parser": "^5.27.1",
|
|
79
79
|
"babel-loader": "^8.2.5",
|
|
80
80
|
"commitizen": "^4.2.4",
|
|
81
|
-
"concurrently": "^7.2.
|
|
81
|
+
"concurrently": "^7.2.2",
|
|
82
82
|
"conventional-changelog-cli": "^2.2.2",
|
|
83
83
|
"copy-webpack-plugin": "^11.0.0",
|
|
84
|
-
"eslint": "^8.
|
|
84
|
+
"eslint": "^8.18.0",
|
|
85
85
|
"eslint-config-prettier": "^8.5.0",
|
|
86
86
|
"eslint-plugin-prettier": "^4.0.0",
|
|
87
87
|
"gulp": "^4.0.2",
|
|
@@ -96,13 +96,13 @@
|
|
|
96
96
|
"ts-node": "^10.8.1",
|
|
97
97
|
"typedoc": "^0.21.10",
|
|
98
98
|
"typedoc-plugin-pages": "^1.1.0",
|
|
99
|
-
"typescript": "^4.7.
|
|
99
|
+
"typescript": "^4.7.4",
|
|
100
100
|
"webpack": "^5.73.0",
|
|
101
|
-
"webpack-cli": "^4.
|
|
101
|
+
"webpack-cli": "^4.10.0"
|
|
102
102
|
},
|
|
103
103
|
"dependencies": {
|
|
104
|
-
"@wppconnect/wa-js": "^2.
|
|
105
|
-
"@wppconnect/wa-version": "^1.1.
|
|
104
|
+
"@wppconnect/wa-js": "^2.7.3",
|
|
105
|
+
"@wppconnect/wa-version": "^1.1.97",
|
|
106
106
|
"atob": "^2.1.2",
|
|
107
107
|
"axios": "^0.27.2",
|
|
108
108
|
"boxen": "^5.1.2",
|
|
@@ -129,7 +129,7 @@
|
|
|
129
129
|
"tmp": "^0.2.1",
|
|
130
130
|
"tree-kill": "^1.2.2",
|
|
131
131
|
"winston": "^3.7.2",
|
|
132
|
-
"ws": "^8.
|
|
132
|
+
"ws": "^8.8.0"
|
|
133
133
|
},
|
|
134
134
|
"optionalDependencies": {
|
|
135
135
|
"fsevents": "^2.3.2"
|