1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
| "use strict";
| Object.defineProperty(exports, "__esModule", { value: true });
| exports.output = exports.formatWarnMsg = exports.formatInfoMsg = exports.formatErrMsg = void 0;
| var format_1 = require("./format");
| Object.defineProperty(exports, "formatErrMsg", { enumerable: true, get: function () { return format_1.formatErrMsg; } });
| Object.defineProperty(exports, "formatInfoMsg", { enumerable: true, get: function () { return format_1.formatInfoMsg; } });
| Object.defineProperty(exports, "formatWarnMsg", { enumerable: true, get: function () { return format_1.formatWarnMsg; } });
| let lastType;
| let lastMsg;
| function output(type, msg) {
| if (type === lastType && msg === lastMsg) {
| return;
| }
| lastMsg = msg;
| lastType = type;
| const method = type === 'info' ? 'log' : type;
| console[method](msg);
| }
| exports.output = output;
|
|