@fast-china/utils 1.0.26 → 1.0.27

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.
@@ -6352,8 +6352,8 @@ var FastUtils = function(exports, vue) {
6352
6352
  if (error) {
6353
6353
  if (typeof uni !== "undefined") {
6354
6354
  if (typeof plus !== "undefined") {
6355
- console.log(`[Fast-Log-${name}]${message ? ` ${message}` : ""}`, error);
6356
- console.log(error);
6355
+ console.log(`[Fast-Log-${name}]${message ? ` ${message}` : ""}`);
6356
+ console.log(isString(error) ? error : JSON.stringify(error, null, 2));
6357
6357
  } else {
6358
6358
  console.log(`[Fast-Log-${name}]${message ? ` ${message}` : ""}`, error);
6359
6359
  }
@@ -6368,8 +6368,8 @@ var FastUtils = function(exports, vue) {
6368
6368
  if (error) {
6369
6369
  if (typeof uni !== "undefined") {
6370
6370
  if (typeof plus !== "undefined") {
6371
- console.warn(`[Fast-Log-${name}]${message ? ` ${message}` : ""}`, error);
6372
- console.warn(error);
6371
+ console.warn(`[Fast-Log-${name}]${message ? ` ${message}` : ""}`);
6372
+ console.warn(isString(error) ? error : JSON.stringify(error, null, 2));
6373
6373
  } else {
6374
6374
  console.warn(`[Fast-Log-${name}]${message ? ` ${message}` : ""}`, error);
6375
6375
  }
@@ -6384,8 +6384,8 @@ var FastUtils = function(exports, vue) {
6384
6384
  if (error) {
6385
6385
  if (typeof uni !== "undefined") {
6386
6386
  if (typeof plus !== "undefined") {
6387
- console.debug(`[Fast-Log-${name}]${message ? ` ${message}` : ""}`, error);
6388
- console.debug(error);
6387
+ console.debug(`[Fast-Log-${name}]${message ? ` ${message}` : ""}`);
6388
+ console.debug(isString(error) ? error : JSON.stringify(error, null, 2));
6389
6389
  } else {
6390
6390
  console.debug(`[Fast-Log-${name}]${message ? ` ${message}` : ""}`, error);
6391
6391
  }
@@ -6406,7 +6406,7 @@ var FastUtils = function(exports, vue) {
6406
6406
  if (typeof uni !== "undefined") {
6407
6407
  if (typeof plus !== "undefined") {
6408
6408
  console.error(`[Fast-Error-${name}]`);
6409
- console.error(message);
6409
+ console.error(JSON.stringify(message, null, 2));
6410
6410
  } else {
6411
6411
  console.error(`[Fast-Error-${name}]`, message);
6412
6412
  }