| | |
| | | Object.defineProperty(exports, '__esModule', { |
| | | value: true |
| | | }); |
| | | exports.default = void 0; |
| | | exports.default = getConsoleOutput; |
| | | |
| | | function _chalk() { |
| | | const data = _interopRequireDefault(require('chalk')); |
| | |
| | | * This source code is licensed under the MIT license found in the |
| | | * LICENSE file in the root directory of this source tree. |
| | | */ |
| | | var _default = (buffer, config, globalConfig) => { |
| | | function getConsoleOutput(buffer, config, globalConfig) { |
| | | const TITLE_INDENT = globalConfig.verbose ? ' ' : ' '; |
| | | const CONSOLE_INDENT = TITLE_INDENT + ' '; |
| | | const logEntries = buffer.reduce((output, {type, message, origin}) => { |
| | |
| | | ); |
| | | }, ''); |
| | | return logEntries.trimRight() + '\n'; |
| | | }; |
| | | |
| | | exports.default = _default; |
| | | } |