@wppconnect-team/wppconnect 1.41.3 → 2.0.1

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.
Files changed (47) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/api/helpers/base64-mimetype.js +2 -2
  3. package/dist/api/helpers/decrypt.js +65 -72
  4. package/dist/api/helpers/download-file.js +31 -81
  5. package/dist/api/helpers/evaluate-and-return.js +98 -93
  6. package/dist/api/helpers/exposed.enum.d.ts +2 -1
  7. package/dist/api/helpers/exposed.enum.js +1 -0
  8. package/dist/api/helpers/file-to-base64.js +30 -81
  9. package/dist/api/helpers/filename-from-mimetype.js +4 -4
  10. package/dist/api/helpers/scrape-img-qr.js +37 -86
  11. package/dist/api/helpers/scrape-login.js +12 -57
  12. package/dist/api/helpers/select-sticker.js +35 -100
  13. package/dist/api/layers/business.layer.js +29 -134
  14. package/dist/api/layers/catalog.layer.js +59 -210
  15. package/dist/api/layers/community.layer.js +29 -120
  16. package/dist/api/layers/controls.layer.js +62 -262
  17. package/dist/api/layers/group.layer.js +126 -391
  18. package/dist/api/layers/host.layer.js +348 -702
  19. package/dist/api/layers/labels.layer.js +35 -131
  20. package/dist/api/layers/listener.layer.d.ts +9 -1
  21. package/dist/api/layers/listener.layer.js +392 -491
  22. package/dist/api/layers/newsletter.layer.js +20 -89
  23. package/dist/api/layers/profile.layer.js +73 -184
  24. package/dist/api/layers/retriever.layer.js +163 -468
  25. package/dist/api/layers/sender.layer.js +554 -1094
  26. package/dist/api/layers/status.layer.js +80 -179
  27. package/dist/api/layers/ui.layer.js +32 -129
  28. package/dist/api/model/enum/definitions.js +1 -1
  29. package/dist/api/whatsapp.js +200 -426
  30. package/dist/config/WAuserAgente.js +1 -1
  31. package/dist/config/create-config.js +1 -1
  32. package/dist/config/puppeteer.config.js +1 -1
  33. package/dist/controllers/auth.js +42 -110
  34. package/dist/controllers/browser.js +251 -411
  35. package/dist/controllers/initializer.js +171 -265
  36. package/dist/controllers/websocket.js +29 -28
  37. package/dist/controllers/welcome.js +38 -88
  38. package/dist/lib/wapi/wapi.js +1 -1
  39. package/dist/token-store/fileTokenStore.js +83 -173
  40. package/dist/token-store/isValidSessionToken.js +2 -2
  41. package/dist/token-store/isValidTokenStore.js +2 -2
  42. package/dist/token-store/memoryTokenStore.js +11 -14
  43. package/dist/utils/ffmpeg.js +75 -131
  44. package/dist/utils/logger.js +5 -5
  45. package/dist/utils/semver.js +6 -6
  46. package/dist/utils/sleep.js +1 -1
  47. package/package.json +8 -8
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wppconnect-team/wppconnect",
3
- "version": "1.41.3",
3
+ "version": "2.0.1",
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,10 +58,10 @@
58
58
  "@babel/core": "^7.29.0",
59
59
  "@babel/eslint-parser": "^7.28.6",
60
60
  "@babel/eslint-plugin": "^7.27.1",
61
- "@babel/preset-env": "^7.29.2",
62
- "@commitlint/cli": "^20.5.0",
63
- "@commitlint/config-conventional": "^20.5.0",
64
- "@commitlint/cz-commitlint": "^20.5.1",
61
+ "@babel/preset-env": "^7.29.3",
62
+ "@commitlint/cli": "^20.5.3",
63
+ "@commitlint/config-conventional": "^20.5.3",
64
+ "@commitlint/cz-commitlint": "^20.5.3",
65
65
  "@eslint/js": "^10.0.1",
66
66
  "@types/atob": "^2.1.4",
67
67
  "@types/mime-types": "^3.0.1",
@@ -76,7 +76,7 @@
76
76
  "conventional-changelog-cli": "^5.0.0",
77
77
  "eslint": "10.2.1",
78
78
  "eslint-config-prettier": "^10.1.8",
79
- "@tony.ganchev/eslint-plugin-header": "^3.4.3",
79
+ "@tony.ganchev/eslint-plugin-header": "^3.4.4",
80
80
  "eslint-plugin-prettier": "^5.5.5",
81
81
  "globals": "^17.5.0",
82
82
  "husky": "^9.1.7",
@@ -94,8 +94,8 @@
94
94
  "webpack-cli": "^6.0.1"
95
95
  },
96
96
  "dependencies": {
97
- "@wppconnect/wa-js": "^3.23.4",
98
- "@wppconnect/wa-version": "^1.5.3731",
97
+ "@wppconnect/wa-js": "^4.0.0",
98
+ "@wppconnect/wa-version": "^1.5.3829",
99
99
  "atob": "^2.1.2",
100
100
  "axios": "^1.15.0",
101
101
  "boxen": "^5.1.2",