node-easywechat 2.12.2 → 2.12.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/Core/Utils.js +2 -0
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/dist/Core/Utils.js
CHANGED
|
@@ -248,6 +248,8 @@ exports.singleItem = singleItem;
|
|
|
248
248
|
const parseXml = function (xml) {
|
|
249
249
|
return __awaiter(this, void 0, void 0, function* () {
|
|
250
250
|
let res = yield xml2js_1.default.parseStringPromise(xml);
|
|
251
|
+
// fix [Object: null prototype]
|
|
252
|
+
res = JSON.parse(JSON.stringify(res));
|
|
251
253
|
res = (0, exports.singleItem)(res);
|
|
252
254
|
if (res['xml'])
|
|
253
255
|
res = res['xml'];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-easywechat",
|
|
3
|
-
"version": "2.12.
|
|
3
|
+
"version": "2.12.4",
|
|
4
4
|
"description": "EasyWechat SDK for Node.js (NOT OFFICIAL)",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"axios": "^0.26.1",
|
|
31
31
|
"form-data": "^4.0.0",
|
|
32
|
-
"node-socialite": "^1.3.
|
|
32
|
+
"node-socialite": "^1.3.2",
|
|
33
33
|
"qs": "^6.10.3",
|
|
34
34
|
"raw-body": "^2.5.1",
|
|
35
|
-
"xml2js": "^0.
|
|
35
|
+
"xml2js": "^0.5.0"
|
|
36
36
|
}
|
|
37
37
|
}
|