@wppconnect-team/wppconnect 1.14.4 → 1.16.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.
Files changed (33) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/dist/api/layers/group.layer.d.ts +14 -0
  3. package/dist/api/layers/group.layer.js +61 -0
  4. package/dist/api/layers/host.layer.d.ts +2 -1
  5. package/dist/api/layers/host.layer.js +6 -1
  6. package/dist/api/layers/labels.layer.d.ts +63 -0
  7. package/dist/api/layers/labels.layer.js +191 -0
  8. package/dist/api/layers/listener.layer.d.ts +17 -2
  9. package/dist/api/layers/listener.layer.js +62 -19
  10. package/dist/api/layers/profile.layer.d.ts +2 -2
  11. package/dist/api/layers/profile.layer.js +2 -2
  12. package/dist/api/layers/retriever.layer.js +22 -13
  13. package/dist/api/layers/sender.layer.d.ts +17 -0
  14. package/dist/api/layers/sender.layer.js +27 -0
  15. package/dist/api/layers/status.layer.d.ts +37 -0
  16. package/dist/api/layers/status.layer.js +216 -0
  17. package/dist/api/model/chat.d.ts +6 -0
  18. package/dist/api/model/enum/index.d.ts +0 -1
  19. package/dist/api/model/enum/index.js +1 -3
  20. package/dist/api/model/group-metadata.d.ts +15 -0
  21. package/dist/api/model/initializer.d.ts +8 -0
  22. package/dist/api/model/participant-event.d.ts +4 -3
  23. package/dist/config/create-config.d.ts +21 -0
  24. package/dist/config/create-config.js +4 -0
  25. package/dist/controllers/browser.d.ts +3 -1
  26. package/dist/controllers/browser.js +59 -2
  27. package/dist/controllers/initializer.d.ts +2 -2
  28. package/dist/controllers/initializer.js +3 -1
  29. package/package.json +33 -39
  30. package/LICENSE.header +0 -14
  31. package/dist/api/model/enum/group-change-event.d.ts +0 -6
  32. package/dist/api/model/enum/group-change-event.js +0 -26
  33. package/license-checker-config.json +0 -19
package/package.json CHANGED
@@ -1,11 +1,10 @@
1
1
  {
2
2
  "name": "@wppconnect-team/wppconnect",
3
- "version": "1.14.4",
3
+ "version": "1.16.0",
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",
7
7
  "scripts": {
8
- "build:docs": "typedoc && git add docs/*",
9
8
  "build:client": "tsc",
10
9
  "build:wapi": "cd src/lib/wapi/ && webpack",
11
10
  "build": "npm run build:wapi && npm run build:client",
@@ -14,12 +13,9 @@
14
13
  "changelog:update": "conventional-changelog -p angular -i CHANGELOG.md -s",
15
14
  "clean": "shx rm -rf session dist",
16
15
  "commit": "cz",
17
- "docs:build": "npm run docs:clean && npm run docs:fix && typedoc && npm run docs:copy-images",
16
+ "docs:build": "npm run docs:clean && typedoc && npm run docs:copy-images",
18
17
  "docs:clean": "shx rm -rf api-docs",
19
18
  "docs:copy-images": "shx cp -R ./img ./api-docs",
20
- "docs:fix": "ts-node ./docs/layouts/fix-docs.ts",
21
- "license:add": "license-check-and-add add",
22
- "license:check": "license-check-and-add check",
23
19
  "lint:js": "npx eslint -c .eslintrc.js --ext .js src",
24
20
  "lint:ts": "npx eslint -c .eslintrc.js --ext .ts src",
25
21
  "lint": "npm run lint:ts && npm run lint:js",
@@ -58,51 +54,49 @@
58
54
  },
59
55
  "homepage": "https://github.com/wppconnect-team/wppconnect#readme",
60
56
  "devDependencies": {
61
- "@babel/core": "^7.18.5",
62
- "@babel/eslint-parser": "^7.18.2",
63
- "@babel/eslint-plugin": "^7.17.7",
64
- "@babel/preset-env": "^7.18.2",
65
- "@commitlint/cli": "^17.0.2",
66
- "@commitlint/config-conventional": "^17.0.2",
67
- "@commitlint/cz-commitlint": "^17.0.0",
57
+ "@babel/core": "^7.18.10",
58
+ "@babel/eslint-parser": "^7.18.9",
59
+ "@babel/eslint-plugin": "^7.18.10",
60
+ "@babel/preset-env": "^7.18.10",
61
+ "@commitlint/cli": "^17.0.3",
62
+ "@commitlint/config-conventional": "^17.0.3",
63
+ "@commitlint/cz-commitlint": "^17.0.3",
64
+ "@knodes/typedoc-plugin-pages": "^0.23.1",
68
65
  "@types/atob": "^2.1.2",
69
66
  "@types/mime-types": "^2.1.1",
70
67
  "@types/mocha": "^9.1.1",
71
- "@types/node": "^16.11.41",
68
+ "@types/node": "^16.11.47",
72
69
  "@types/rimraf": "^3.0.2",
73
70
  "@types/sharp": "^0.30.4",
74
71
  "@types/shelljs": "^0.8.11",
75
72
  "@types/tmp": "^0.2.3",
76
73
  "@types/ws": "^8.5.3",
77
- "@typescript-eslint/eslint-plugin": "^5.27.1",
78
- "@typescript-eslint/parser": "^5.27.1",
74
+ "@typescript-eslint/eslint-plugin": "^5.29.0",
75
+ "@typescript-eslint/parser": "^5.29.0",
79
76
  "babel-loader": "^8.2.5",
80
- "commitizen": "^4.2.4",
81
- "concurrently": "^7.2.2",
77
+ "commitizen": "^4.2.5",
78
+ "concurrently": "^7.3.0",
82
79
  "conventional-changelog-cli": "^2.2.2",
83
- "copy-webpack-plugin": "^11.0.0",
84
- "eslint": "^8.18.0",
80
+ "eslint": "^8.21.0",
85
81
  "eslint-config-prettier": "^8.5.0",
86
- "eslint-plugin-prettier": "^4.0.0",
87
- "gulp": "^4.0.2",
82
+ "eslint-plugin-header": "^3.1.1",
83
+ "eslint-plugin-prettier": "^4.2.1",
88
84
  "husky": "^8.0.1",
89
- "license-check-and-add": "^4.0.5",
90
85
  "mocha": "^10.0.0",
91
- "prettier": "^2.6.2",
86
+ "prettier": "^2.7.1",
92
87
  "pretty-quick": "^3.1.3",
93
88
  "regenerator-runtime": "^0.13.9",
94
- "release-it": "^15.0.0",
89
+ "release-it": "^15.2.0",
95
90
  "shx": "^0.3.4",
96
- "ts-node": "^10.8.1",
97
- "typedoc": "^0.21.10",
98
- "typedoc-plugin-pages": "^1.1.0",
91
+ "ts-node": "^10.8.2",
92
+ "typedoc": "^0.23.10",
99
93
  "typescript": "^4.7.4",
100
94
  "webpack": "^5.73.0",
101
95
  "webpack-cli": "^4.10.0"
102
96
  },
103
97
  "dependencies": {
104
- "@wppconnect/wa-js": "^2.7.3",
105
- "@wppconnect/wa-version": "^1.1.97",
98
+ "@wppconnect/wa-js": "^2.10.0",
99
+ "@wppconnect/wa-version": "^1.1.122",
106
100
  "atob": "^2.1.2",
107
101
  "axios": "^0.27.2",
108
102
  "boxen": "^5.1.2",
@@ -110,26 +104,26 @@
110
104
  "chalk": "~4.1.2",
111
105
  "chrome-launcher": "^0.15.1",
112
106
  "execa": "^5.1.1",
113
- "file-type": "~16.5.3",
107
+ "file-type": "~16.5.4",
114
108
  "futoin-hkdf": "^1.5.1",
115
109
  "latest-version": "^5.1.0",
116
- "logform": "^2.4.0",
110
+ "logform": "^2.4.2",
117
111
  "lookpath": "^1.2.2",
118
112
  "mime-types": "^2.1.35",
119
113
  "puppeteer": "*",
120
- "puppeteer-extra": "^3.2.3",
121
- "puppeteer-extra-plugin-stealth": "^2.9.0",
122
- "puppeteer-extra-plugin-user-data-dir": "^2.3.1",
123
- "puppeteer-extra-plugin-user-preferences": "^2.3.1",
114
+ "puppeteer-extra": "^3.3.4",
115
+ "puppeteer-extra-plugin-stealth": "^2.11.0",
116
+ "puppeteer-extra-plugin-user-data-dir": "^2.4.0",
117
+ "puppeteer-extra-plugin-user-preferences": "^2.4.0",
124
118
  "qrcode-terminal": "^0.12.0",
125
119
  "reflect-metadata": "^0.1.13",
126
120
  "rimraf": "^3.0.2",
127
121
  "sanitize-filename": "^1.6.3",
128
- "sharp": "^0.30.6",
122
+ "sharp": "^0.30.7",
129
123
  "tmp": "^0.2.1",
130
124
  "tree-kill": "^1.2.2",
131
- "winston": "^3.7.2",
132
- "ws": "^8.8.0"
125
+ "winston": "^3.8.1",
126
+ "ws": "^8.8.1"
133
127
  },
134
128
  "optionalDependencies": {
135
129
  "fsevents": "^2.3.2"
package/LICENSE.header DELETED
@@ -1,14 +0,0 @@
1
- This file is part of WPPConnect.
2
-
3
- WPPConnect is free software: you can redistribute it and/or modify
4
- it under the terms of the GNU Lesser General Public License as published by
5
- the Free Software Foundation, either version 3 of the License, or
6
- (at your option) any later version.
7
-
8
- WPPConnect is distributed in the hope that it will be useful,
9
- but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- GNU Lesser General Public License for more details.
12
-
13
- You should have received a copy of the GNU Lesser General Public License
14
- along with WPPConnect. If not, see <https://www.gnu.org/licenses/>.
@@ -1,6 +0,0 @@
1
- export declare enum GroupChangeEvent {
2
- Add = "add",
3
- Inivite = "invite",
4
- Leave = "leave",
5
- Remove = "remove"
6
- }
@@ -1,26 +0,0 @@
1
- "use strict";
2
- /*
3
- * This file is part of WPPConnect.
4
- *
5
- * WPPConnect is free software: you can redistribute it and/or modify
6
- * it under the terms of the GNU Lesser General Public License as published by
7
- * the Free Software Foundation, either version 3 of the License, or
8
- * (at your option) any later version.
9
- *
10
- * WPPConnect is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU Lesser General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU Lesser General Public License
16
- * along with WPPConnect. If not, see <https://www.gnu.org/licenses/>.
17
- */
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.GroupChangeEvent = void 0;
20
- var GroupChangeEvent;
21
- (function (GroupChangeEvent) {
22
- GroupChangeEvent["Add"] = "add";
23
- GroupChangeEvent["Inivite"] = "invite";
24
- GroupChangeEvent["Leave"] = "leave";
25
- GroupChangeEvent["Remove"] = "remove";
26
- })(GroupChangeEvent = exports.GroupChangeEvent || (exports.GroupChangeEvent = {}));
@@ -1,19 +0,0 @@
1
- {
2
- "ignore": ["**/.*", "**/*.md", ".github", ".husky", "api-docs", "tokens"],
3
- "license": "LICENSE.header",
4
- "licenseFormats": {
5
- "js|ts": {
6
- "prepend": "/*",
7
- "append": " */",
8
- "eachLine": {
9
- "prepend": " * "
10
- }
11
- },
12
- "dotfile": {
13
- "eachLine": {
14
- "prepend": "# "
15
- }
16
- }
17
- },
18
- "trailingWhitespace": "TRIM"
19
- }