@aiot-toolkit/shared-utils 2.0.3-beta.6 → 2.0.3-beta.7

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.
@@ -128,8 +128,7 @@ class ColorConsole {
128
128
  effectPrefix = prefix;
129
129
  }
130
130
  const style = this.styleDic[level] || this.defaultStyle;
131
- return [
132
- ...effectPrefix,
131
+ return ([...effectPrefix].join(' ') +
133
132
  this.createMessage(logs.map((item) => {
134
133
  if (typeof item === 'object') {
135
134
  return Object.assign(Object.assign({}, item), {
@@ -137,8 +136,7 @@ class ColorConsole {
137
136
  style: item.style || style });
138
137
  }
139
138
  return item;
140
- }))
141
- ].join(' ');
139
+ })));
142
140
  }
143
141
  /**
144
142
  * 创建默认消息前缀列表
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiot-toolkit/shared-utils",
3
- "version": "2.0.3-beta.6",
3
+ "version": "2.0.3-beta.7",
4
4
  "description": "The common method functions of the aiot-toolkit.",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -41,5 +41,5 @@
41
41
  "@types/minimatch": "^5.1.2",
42
42
  "@types/qrcode": "^1.5.5"
43
43
  },
44
- "gitHead": "586a0076bcee4555f957ee67ca8774ae19e616f6"
44
+ "gitHead": "9621c52866d7bb1dc23110c4c9cc772b6169b682"
45
45
  }