swico 1.7.2-beta.3 → 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.3",
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 = [
@@ -180,7 +180,6 @@ 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);
184
183
  var warnings = info.warnings;
185
184
  warnings.some(function (item) {
186
185
  var msg = item.message || item.stack;
@@ -250,7 +249,6 @@ function start() {
250
249
  case 9:
251
250
  e_1 = _h.sent();
252
251
  strErr_1 = e_1.toString();
253
- console.log('2222222', strErr_1);
254
252
  if (!filterStyleFileList.find(function (item) { return strErr_1.includes(item); })) {
255
253
  tools_1.toast.error(strErr_1);
256
254
  }
@@ -220,8 +220,10 @@ exports.toast = {
220
220
  }
221
221
  else {
222
222
  console.log('message', 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"));
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
  });