swico 1.7.2-beta.2 → 1.7.2-beta.3

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.3",
4
4
  "description": "Simple, efficient, and practical front-end framework",
5
5
  "main": "./src/index.js",
6
6
  "types": "./src/index.d.ts",
@@ -180,6 +180,7 @@ var createCompileListener = function (compiler) {
180
180
  return;
181
181
  }
182
182
  if (stats === null || stats === void 0 ? void 0 : stats.hasWarnings()) {
183
+ console.log('111111', info);
183
184
  var warnings = info.warnings;
184
185
  warnings.some(function (item) {
185
186
  var msg = item.message || item.stack;
@@ -249,6 +250,7 @@ function start() {
249
250
  case 9:
250
251
  e_1 = _h.sent();
251
252
  strErr_1 = e_1.toString();
253
+ console.log('2222222', strErr_1);
252
254
  if (!filterStyleFileList.find(function (item) { return strErr_1.includes(item); })) {
253
255
  tools_1.toast.error(strErr_1);
254
256
  }
@@ -219,14 +219,15 @@ 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
- if (Array.isArray(message)) {
223
+ if (Array.isArray(message) && message.length > 0) {
224
+ console.log("".concat(chalk_1.default.red.bold('error'), " - ").concat(title || 'There are some errors about Swico', "\uFF1A"));
225
225
  message.forEach(function (item) {
226
226
  console.log("> ".concat(chalk_1.default.red.bold(item)));
227
227
  });
228
228
  }
229
229
  else if (message) {
230
+ console.log("".concat(chalk_1.default.red.bold('error'), " - ").concat(title || 'There are some errors about Swico', "\uFF1A"));
230
231
  console.log("> ".concat(chalk_1.default.red.bold(message)));
231
232
  }
232
233
  }