@wppconnect-team/wppconnect 2.0.1 → 2.0.2

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,9 @@
1
+ ## 2.0.2 (2026-05-04)
2
+
3
+ ### Bug Fixes
4
+
5
+ - wa-js and axios version bump ([#2766](https://github.com/wppconnect-team/wppconnect/issues/2766)) ([d0e1421](https://github.com/wppconnect-team/wppconnect/commit/d0e1421a2e6b17e3a837909614fc0a53a17cd7f0))
6
+
1
7
  ## 2.0.1 (2026-05-04)
2
8
 
3
9
  ### Bug Fixes
@@ -34,7 +34,7 @@ async function downloadFileToBase64(_path, _mines = []) {
34
34
  const response = await axios_1.default.get(_path, {
35
35
  responseType: 'arraybuffer',
36
36
  });
37
- const mimeType = response.headers['content-type'];
37
+ const mimeType = String(response.headers['content-type'] ?? '');
38
38
  if (_mines.length) {
39
39
  const isValidMime = _mines.some((m) => {
40
40
  if (typeof m === 'string') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect-team/wppconnect",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
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",
@@ -94,10 +94,10 @@
94
94
  "webpack-cli": "^6.0.1"
95
95
  },
96
96
  "dependencies": {
97
- "@wppconnect/wa-js": "^4.0.0",
97
+ "@wppconnect/wa-js": "^4.1.0",
98
98
  "@wppconnect/wa-version": "^1.5.3829",
99
99
  "atob": "^2.1.2",
100
- "axios": "^1.15.0",
100
+ "axios": "^1.16.0",
101
101
  "boxen": "^5.1.2",
102
102
  "catch-exit": "^2.0.0",
103
103
  "chalk": "~4.1.2",