@fast-china/utils 1.0.29 → 1.0.31
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/dist/index.global.js +17 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.global.min.js +5 -5
- package/dist/index.global.min.js.map +1 -1
- package/es/console/index.mjs +2 -2
- package/es/console/index.mjs.map +1 -1
- package/es/string/index.d.ts +4 -0
- package/es/string/index.mjs +15 -0
- package/es/string/index.mjs.map +1 -1
- package/lib/console/index.js +1 -1
- package/lib/console/index.js.map +1 -1
- package/lib/string/index.d.ts +4 -0
- package/lib/string/index.js +1 -1
- package/lib/string/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.global.js
CHANGED
|
@@ -6380,9 +6380,9 @@ var FastUtils = function(exports, vue) {
|
|
|
6380
6380
|
return (name, message, error) => {
|
|
6381
6381
|
const prefix = `[Fast-${level}-${name}]`;
|
|
6382
6382
|
if (error) {
|
|
6383
|
-
vConsole(level, `${prefix}${message
|
|
6383
|
+
vConsole(level, `${prefix}${message ? ` ${message}` : ""}`, error);
|
|
6384
6384
|
} else {
|
|
6385
|
-
vConsole(level, `${prefix}${message
|
|
6385
|
+
vConsole(level, `${prefix}${message ? ` ${message}` : ""}`);
|
|
6386
6386
|
}
|
|
6387
6387
|
};
|
|
6388
6388
|
};
|
|
@@ -13923,6 +13923,21 @@ var FastUtils = function(exports, vue) {
|
|
|
13923
13923
|
zh_TW: "zh-TW"
|
|
13924
13924
|
};
|
|
13925
13925
|
const stringUtil = {
|
|
13926
|
+
/**
|
|
13927
|
+
* 深度解码
|
|
13928
|
+
*/
|
|
13929
|
+
deepDecodeURIComponent(str, maxDepth = 10) {
|
|
13930
|
+
if (!str) return str;
|
|
13931
|
+
let decoded = str;
|
|
13932
|
+
for (let i = 0; i < maxDepth; i++) {
|
|
13933
|
+
const next = decodeURIComponent(decoded);
|
|
13934
|
+
if (next === decoded) {
|
|
13935
|
+
break;
|
|
13936
|
+
}
|
|
13937
|
+
decoded = next;
|
|
13938
|
+
}
|
|
13939
|
+
return decoded;
|
|
13940
|
+
},
|
|
13926
13941
|
/**
|
|
13927
13942
|
* 获取Url参数
|
|
13928
13943
|
*/
|