node-easywechat 2.12.2 → 2.12.3

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,6 +1,8 @@
1
1
  # CHANGELOG
2
2
 
3
3
 
4
+ ## v2.12.3 (2023-04-11)
5
+
4
6
  ## v2.12.2 (2023-03-27)
5
7
 
6
8
  - Fix: 2.x版本调整为npm的second标签
@@ -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.2",
3
+ "version": "2.12.3",
4
4
  "description": "EasyWechat SDK for Node.js (NOT OFFICIAL)",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -32,6 +32,6 @@
32
32
  "node-socialite": "^1.3.0",
33
33
  "qs": "^6.10.3",
34
34
  "raw-body": "^2.5.1",
35
- "xml2js": "^0.4.23"
35
+ "xml2js": "^0.5.0"
36
36
  }
37
37
  }