@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.
@@ -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.toUpperCase()}-${name}]`;
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("log");
6390
- const consoleWarn = makeConsole("warn");
6391
- const consoleDebug = makeConsole("debug");
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("error", `[Fast-Error-${name}]`, message);
6399
+ vConsole("Error", `[Fast-Error-${name}]`, message);
6400
6400
  }
6401
6401
  };
6402
6402
  const throwError = (name, message) => {