@wppconnect-team/wppconnect 1.14.1 → 1.14.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,12 @@
1
+ ## 1.14.2 (2022-06-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * 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))
7
+
8
+
9
+
1
10
  ## 1.14.1 (2022-06-08)
2
11
 
3
12
 
@@ -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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect-team/wppconnect",
3
- "version": "1.14.1",
3
+ "version": "1.14.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",
@@ -68,7 +68,7 @@
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.38",
71
+ "@types/node": "^16.11.39",
72
72
  "@types/rimraf": "^3.0.2",
73
73
  "@types/sharp": "^0.30.2",
74
74
  "@types/shelljs": "^0.8.11",
@@ -102,7 +102,7 @@
102
102
  },
103
103
  "dependencies": {
104
104
  "@wppconnect/wa-js": "^2.6.0",
105
- "@wppconnect/wa-version": "^1.1.89",
105
+ "@wppconnect/wa-version": "^1.1.92",
106
106
  "atob": "^2.1.2",
107
107
  "axios": "^0.27.2",
108
108
  "boxen": "^5.1.2",