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 +1 -1
- package/src/command/start.js +1 -1
- package/src/utils/tools.js +4 -1
package/package.json
CHANGED
package/src/command/start.js
CHANGED
|
@@ -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:
|
|
164
|
+
return __assign(__assign({}, logger), { log: log, debug: debug, error: function () { }, warn: warn, info: function () { } });
|
|
165
165
|
};
|
|
166
166
|
};
|
|
167
167
|
var filterStyleFileList = [
|
package/src/utils/tools.js
CHANGED
|
@@ -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
|
}
|