swico 1.7.2-beta.2 → 1.7.2-beta.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swico",
3
- "version": "1.7.2-beta.2",
3
+ "version": "1.7.2-beta.4",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -161,7 +161,7 @@ var getMockGetLogger = function (compiler) {
161
161
  var logger = compiler.getInfrastructureLogger('name');
162
162
  var log = logger.log, debug = logger.debug, error = logger.error, warn = logger.warn;
163
163
  return function (name) {
164
- return __assign(__assign({}, logger), { log: log, debug: debug, error: error, warn: warn, info: function () { } });
164
+ return __assign(__assign({}, logger), { log: log, debug: debug, error: function () { }, warn: warn, info: function () { } });
165
165
  };
166
166
  };
167
167
  var filterStyleFileList = [
@@ -219,14 +219,17 @@ exports.toast = {
219
219
  console.log("".concat(chalk_1.default.red.bold('error'), " - ").concat(message));
220
220
  }
221
221
  else {
222
- console.log("".concat(chalk_1.default.red.bold('error'), " - ").concat(title || 'There are some errors about Swico', "\uFF1A"));
223
222
  console.log('message', message);
224
223
  if (Array.isArray(message)) {
224
+ if (message.length > 0) {
225
+ console.log("".concat(chalk_1.default.red.bold('error'), " - ").concat(title || 'There are some errors about Swico', "\uFF1A"));
226
+ }
225
227
  message.forEach(function (item) {
226
228
  console.log("> ".concat(chalk_1.default.red.bold(item)));
227
229
  });
228
230
  }
229
231
  else if (message) {
232
+ console.log("".concat(chalk_1.default.red.bold('error'), " - ").concat(title || 'There are some errors about Swico', "\uFF1A"));
230
233
  console.log("> ".concat(chalk_1.default.red.bold(message)));
231
234
  }
232
235
  }