mm_expand 1.7.8 → 1.7.9

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 (3) hide show
  1. package/index.js +8 -1
  2. package/package.json +1 -1
  3. package/test.json +1 -1
package/index.js CHANGED
@@ -882,6 +882,7 @@ if (typeof($) === "undefined") {
882
882
  try {
883
883
  return JSON5.parse(this);
884
884
  } catch (e) {
885
+ console.log('json反序列化错误:', this);
885
886
  console.error('json反序列化错误', e);
886
887
  return null;
887
888
  }
@@ -894,7 +895,13 @@ if (typeof($) === "undefined") {
894
895
  try {
895
896
  return parse(this);
896
897
  } catch (e) {
897
- console.error('xml反序列化错误', e);
898
+ // var text = this;
899
+ // if(text.length > 1000) {
900
+ // text = text.substring(0, 1000);
901
+ // }
902
+ // console.error('xml反序列化错误', text);
903
+ console.log('xml反序列化错误:', this);
904
+ console.error('xml反序列化错误!', e);
898
905
  return null;
899
906
  }
900
907
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_expand",
3
- "version": "1.7.8",
3
+ "version": "1.7.9",
4
4
  "description": "这是超级美眉原型函数拓展模块,更有利于对string、array、object的操作,避免出错,简化业务逻辑。",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/test.json CHANGED
@@ -19,7 +19,7 @@
19
19
  "cardType": 0,
20
20
  "picURI": "https://www.aieliantong.com/file/image/avatar_1724122773932.jpeg",
21
21
  "cardValidBegin": "2024-02-29 00:00:00",
22
- "cardValidEnd": "2024-11-29 00:00:00"
22
+ "cardValidEnd": "2024-11-29 00:00:00",
23
23
  "tempCardType": 1
24
24
  },
25
25
  {