@wppconnect/server 1.8.3 → 1.8.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 +6 -0
- package/dist/mapper/index.js +2 -2
- package/dist/mapper/index.js.map +1 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## 1.8.4 (2023-02-19)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **deps:** update dependency @wppconnect-team/wppconnect to ^1.22.0 ([#1104](https://github.com/wppconnect-team/wppconnect-server/issues/1104)) ([b444adb](https://github.com/wppconnect-team/wppconnect-server/commit/b444adbe9b5e135ba327e4f7cce6b8b623deedde))
|
|
6
|
+
|
|
1
7
|
## 1.8.3 (2023-02-03)
|
|
2
8
|
|
|
3
9
|
## 1.8.2 (2023-01-13)
|
package/dist/mapper/index.js
CHANGED
|
@@ -21,7 +21,7 @@ async function convert(prefix, data, event) {
|
|
|
21
21
|
|
|
22
22
|
async function config_event(prefix, event) {
|
|
23
23
|
try {
|
|
24
|
-
let { default: mappConf } = await Promise
|
|
24
|
+
let { default: mappConf } = await ((specifier) => new Promise((r) => r(specifier)).then((s) => _interopRequireWildcard(require(s))))(`./${prefix}${event}.js`);
|
|
25
25
|
if (!mappConf) return undefined;
|
|
26
26
|
return mappConf;
|
|
27
27
|
} catch (e) {
|
|
@@ -31,7 +31,7 @@ async function config_event(prefix, event) {
|
|
|
31
31
|
|
|
32
32
|
async function config_type(prefix, event, type) {
|
|
33
33
|
try {
|
|
34
|
-
let { default: mappConf } = await Promise
|
|
34
|
+
let { default: mappConf } = await ((specifier) => new Promise((r) => r(specifier)).then((s) => _interopRequireWildcard(require(s))))(`./${prefix}${event}-${type}.js`);
|
|
35
35
|
if (!mappConf) return undefined;
|
|
36
36
|
return mappConf;
|
|
37
37
|
} catch (e) {
|
package/dist/mapper/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["convert","prefix","data","event","indexOf","mappConfEvent","config_event","mappConfType","config_type","type","Object","assign","mapper","e","default","mappConf","undefined"],"sources":["../../src/mapper/index.js"],"sourcesContent":["import mapper from 'json-mapper-json';\n\nexport async function convert(prefix, data, event) {\n try {\n data.event = event || data.event;\n event = data.event.indexOf('message') >= 0 ? 'message' : data.event;\n\n let mappConfEvent = await config_event(prefix, event);\n let mappConfType = await config_type(prefix, event, data.type);\n\n Object.assign(mappConfEvent, mappConfType);\n\n // console.log('mappConfEvent', mappConfEvent);\n\n if (!mappConfEvent) return data;\n return await mapper(data, mappConfEvent);\n } catch (e) {\n return data;\n }\n}\n\nasync function config_event(prefix, event) {\n try {\n let { default: mappConf } = await import(`./${prefix}${event}.js`);\n if (!mappConf) return undefined;\n return mappConf;\n } catch (e) {\n return undefined;\n }\n}\n\nasync function config_type(prefix, event, type) {\n try {\n let { default: mappConf } = await import(`./${prefix}${event}-${type}.js`);\n if (!mappConf) return undefined;\n return mappConf;\n } catch (e) {\n return undefined;\n }\n}\n"],"mappings":"0LAAA,0EAAsC;;AAE/B,eAAeA,OAAO,CAACC,MAAM,EAAEC,IAAI,EAAEC,KAAK,EAAE;EACjD,IAAI;IACFD,IAAI,CAACC,KAAK,GAAGA,KAAK,IAAID,IAAI,CAACC,KAAK;IAChCA,KAAK,GAAGD,IAAI,CAACC,KAAK,CAACC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,SAAS,GAAGF,IAAI,CAACC,KAAK;;IAEnE,IAAIE,aAAa,GAAG,MAAMC,YAAY,CAACL,MAAM,EAAEE,KAAK,CAAC;IACrD,IAAII,YAAY,GAAG,MAAMC,WAAW,CAACP,MAAM,EAAEE,KAAK,EAAED,IAAI,CAACO,IAAI,CAAC;;IAE9DC,MAAM,CAACC,MAAM,CAACN,aAAa,EAAEE,YAAY,CAAC;;IAE1C;;IAEA,IAAI,CAACF,aAAa,EAAE,OAAOH,IAAI;IAC/B,OAAO,MAAM,IAAAU,uBAAM,EAACV,IAAI,EAAEG,aAAa,CAAC;EAC1C,CAAC,CAAC,OAAOQ,CAAC,EAAE;IACV,OAAOX,IAAI;EACb;AACF;;AAEA,eAAeI,YAAY,CAACL,MAAM,EAAEE,KAAK,EAAE;EACzC,IAAI;IACF,IAAI,EAAEW,OAAO,EAAEC,QAAQ,CAAC,CAAC,GAAG,
|
|
1
|
+
{"version":3,"file":"index.js","names":["convert","prefix","data","event","indexOf","mappConfEvent","config_event","mappConfType","config_type","type","Object","assign","mapper","e","default","mappConf","undefined"],"sources":["../../src/mapper/index.js"],"sourcesContent":["import mapper from 'json-mapper-json';\n\nexport async function convert(prefix, data, event) {\n try {\n data.event = event || data.event;\n event = data.event.indexOf('message') >= 0 ? 'message' : data.event;\n\n let mappConfEvent = await config_event(prefix, event);\n let mappConfType = await config_type(prefix, event, data.type);\n\n Object.assign(mappConfEvent, mappConfType);\n\n // console.log('mappConfEvent', mappConfEvent);\n\n if (!mappConfEvent) return data;\n return await mapper(data, mappConfEvent);\n } catch (e) {\n return data;\n }\n}\n\nasync function config_event(prefix, event) {\n try {\n let { default: mappConf } = await import(`./${prefix}${event}.js`);\n if (!mappConf) return undefined;\n return mappConf;\n } catch (e) {\n return undefined;\n }\n}\n\nasync function config_type(prefix, event, type) {\n try {\n let { default: mappConf } = await import(`./${prefix}${event}-${type}.js`);\n if (!mappConf) return undefined;\n return mappConf;\n } catch (e) {\n return undefined;\n }\n}\n"],"mappings":"0LAAA,0EAAsC;;AAE/B,eAAeA,OAAO,CAACC,MAAM,EAAEC,IAAI,EAAEC,KAAK,EAAE;EACjD,IAAI;IACFD,IAAI,CAACC,KAAK,GAAGA,KAAK,IAAID,IAAI,CAACC,KAAK;IAChCA,KAAK,GAAGD,IAAI,CAACC,KAAK,CAACC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,SAAS,GAAGF,IAAI,CAACC,KAAK;;IAEnE,IAAIE,aAAa,GAAG,MAAMC,YAAY,CAACL,MAAM,EAAEE,KAAK,CAAC;IACrD,IAAII,YAAY,GAAG,MAAMC,WAAW,CAACP,MAAM,EAAEE,KAAK,EAAED,IAAI,CAACO,IAAI,CAAC;;IAE9DC,MAAM,CAACC,MAAM,CAACN,aAAa,EAAEE,YAAY,CAAC;;IAE1C;;IAEA,IAAI,CAACF,aAAa,EAAE,OAAOH,IAAI;IAC/B,OAAO,MAAM,IAAAU,uBAAM,EAACV,IAAI,EAAEG,aAAa,CAAC;EAC1C,CAAC,CAAC,OAAOQ,CAAC,EAAE;IACV,OAAOX,IAAI;EACb;AACF;;AAEA,eAAeI,YAAY,CAACL,MAAM,EAAEE,KAAK,EAAE;EACzC,IAAI;IACF,IAAI,EAAEW,OAAO,EAAEC,QAAQ,CAAC,CAAC,GAAG,yGAAc,KAAId,MAAO,GAAEE,KAAM,KAAI,CAAC;IAClE,IAAI,CAACY,QAAQ,EAAE,OAAOC,SAAS;IAC/B,OAAOD,QAAQ;EACjB,CAAC,CAAC,OAAOF,CAAC,EAAE;IACV,OAAOG,SAAS;EAClB;AACF;;AAEA,eAAeR,WAAW,CAACP,MAAM,EAAEE,KAAK,EAAEM,IAAI,EAAE;EAC9C,IAAI;IACF,IAAI,EAAEK,OAAO,EAAEC,QAAQ,CAAC,CAAC,GAAG,yGAAc,KAAId,MAAO,GAAEE,KAAM,IAAGM,IAAK,KAAI,CAAC;IAC1E,IAAI,CAACM,QAAQ,EAAE,OAAOC,SAAS;IAC/B,OAAOD,QAAQ;EACjB,CAAC,CAAC,OAAOF,CAAC,EAAE;IACV,OAAOG,SAAS;EAClB;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wppconnect/server",
|
|
3
|
-
"version": "1.8.
|
|
3
|
+
"version": "1.8.4",
|
|
4
4
|
"description": "Projeto feito para autenticar a automomacao do WhatsappWeb com multi-clientes de forma dinamica. Backend feito em Nodejs(express, socketio), FrontEnd (ReactJS)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"author": "kingaspx",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
}
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@wppconnect-team/wppconnect": "^1.
|
|
33
|
-
"axios": "^1.3.
|
|
32
|
+
"@wppconnect-team/wppconnect": "^1.22.0",
|
|
33
|
+
"axios": "^1.3.3",
|
|
34
34
|
"bcrypt": "^5.1.0",
|
|
35
35
|
"buffer-to-stream": "1.0.0",
|
|
36
36
|
"cors": "^2.8.5",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"moment": "^2.29.4",
|
|
44
44
|
"multer": "^1.4.4",
|
|
45
45
|
"qrcode": "^1.5.1",
|
|
46
|
-
"socket.io": "^4.
|
|
46
|
+
"socket.io": "^4.6.0",
|
|
47
47
|
"swagger-ui-express": "^4.6.0",
|
|
48
48
|
"winston": "^3.8.2"
|
|
49
49
|
},
|
|
@@ -55,21 +55,21 @@
|
|
|
55
55
|
"@babel/node": "^7.20.7",
|
|
56
56
|
"@babel/plugin-transform-runtime": "^7.19.6",
|
|
57
57
|
"@babel/preset-env": "^7.20.2",
|
|
58
|
-
"@commitlint/cli": "^17.4.
|
|
59
|
-
"@commitlint/config-conventional": "^17.4.
|
|
60
|
-
"@commitlint/cz-commitlint": "^17.4.
|
|
61
|
-
"aws-sdk": "^2.
|
|
58
|
+
"@commitlint/cli": "^17.4.4",
|
|
59
|
+
"@commitlint/config-conventional": "^17.4.4",
|
|
60
|
+
"@commitlint/cz-commitlint": "^17.4.4",
|
|
61
|
+
"aws-sdk": "^2.1318.0",
|
|
62
62
|
"commitizen": "^4.3.0",
|
|
63
63
|
"conventional-changelog-cli": "^2.2.2",
|
|
64
64
|
"crypto-js": "^4.1.1",
|
|
65
|
-
"eslint": "^8.
|
|
65
|
+
"eslint": "^8.34.0",
|
|
66
66
|
"eslint-config-prettier": "^8.6.0",
|
|
67
67
|
"eslint-plugin-prettier": "^4.2.1",
|
|
68
68
|
"husky": "^8.0.3",
|
|
69
69
|
"license-check-and-add": "^4.0.5",
|
|
70
|
-
"mongoose": "^6.9.
|
|
70
|
+
"mongoose": "^6.9.2",
|
|
71
71
|
"nodemon": "^2.0.20",
|
|
72
|
-
"prettier": "^2.8.
|
|
72
|
+
"prettier": "^2.8.4",
|
|
73
73
|
"pretty-quick": "^3.1.3",
|
|
74
74
|
"redis": "^4.6.4",
|
|
75
75
|
"release-it": "^15.6.0",
|
|
@@ -79,9 +79,9 @@
|
|
|
79
79
|
"webpack-cli": "^5.0.1"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
|
-
"aws-sdk": "^2.
|
|
82
|
+
"aws-sdk": "^2.1318.0",
|
|
83
83
|
"crypto-js": "^4.1.1",
|
|
84
|
-
"mongoose": "^6.9.
|
|
84
|
+
"mongoose": "^6.9.2",
|
|
85
85
|
"redis": "^4.6.4"
|
|
86
86
|
}
|
|
87
87
|
}
|