@fast-china/utils 1.0.28 → 1.0.29
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 +7 -7
- 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 +7 -7
- package/es/console/index.mjs.map +1 -1
- package/lib/console/index.js +1 -1
- package/lib/console/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.global.js
CHANGED
|
@@ -6368,17 +6368,17 @@ var FastUtils = function(exports, vue) {
|
|
|
6368
6368
|
if (typeof plus !== "undefined") {
|
|
6369
6369
|
args.forEach((item) => {
|
|
6370
6370
|
if (isNil(item)) return;
|
|
6371
|
-
console[level](isString(item) ? item : JSON.stringify(item, null, 2));
|
|
6371
|
+
console[level.toLowerCase()](isString(item) ? item : JSON.stringify(item, null, 2));
|
|
6372
6372
|
});
|
|
6373
6373
|
return;
|
|
6374
6374
|
}
|
|
6375
6375
|
}
|
|
6376
6376
|
}
|
|
6377
|
-
console[level](...args);
|
|
6377
|
+
console[level.toLowerCase()](...args);
|
|
6378
6378
|
};
|
|
6379
6379
|
const makeConsole = (level) => {
|
|
6380
6380
|
return (name, message, error) => {
|
|
6381
|
-
const prefix = `[Fast-${level
|
|
6381
|
+
const prefix = `[Fast-${level}-${name}]`;
|
|
6382
6382
|
if (error) {
|
|
6383
6383
|
vConsole(level, `${prefix}${message ?? ""}`, error);
|
|
6384
6384
|
} else {
|
|
@@ -6386,9 +6386,9 @@ var FastUtils = function(exports, vue) {
|
|
|
6386
6386
|
}
|
|
6387
6387
|
};
|
|
6388
6388
|
};
|
|
6389
|
-
const consoleLog = makeConsole("
|
|
6390
|
-
const consoleWarn = makeConsole("
|
|
6391
|
-
const consoleDebug = makeConsole("
|
|
6389
|
+
const consoleLog = makeConsole("Log");
|
|
6390
|
+
const consoleWarn = makeConsole("Warn");
|
|
6391
|
+
const consoleDebug = makeConsole("Debug");
|
|
6392
6392
|
const consoleError = (name, message) => {
|
|
6393
6393
|
if (isNil(message)) {
|
|
6394
6394
|
return;
|
|
@@ -6396,7 +6396,7 @@ var FastUtils = function(exports, vue) {
|
|
|
6396
6396
|
if (isString(message)) {
|
|
6397
6397
|
console.error(new FastError(`[Fast-${name}] ${message}`));
|
|
6398
6398
|
} else {
|
|
6399
|
-
vConsole("
|
|
6399
|
+
vConsole("Error", `[Fast-Error-${name}]`, message);
|
|
6400
6400
|
}
|
|
6401
6401
|
};
|
|
6402
6402
|
const throwError = (name, message) => {
|