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.
- package/index.js +8 -1
- package/package.json +1 -1
- 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
|
-
|
|
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
package/test.json
CHANGED