Comparing version 0.10.4 to 0.10.5
@@ -31,6 +31,6 @@ "use strict"; | ||
const chalk_1 = __importDefault(require("chalk")); | ||
const flat_1 = __importDefault(require("flat")); | ||
const js_yaml_1 = __importDefault(require("js-yaml")); | ||
const lodash_1 = __importDefault(require("lodash")); | ||
const path_1 = __importDefault(require("path")); | ||
const util_1 = __importDefault(require("util")); | ||
const configuration_1 = __importDefault(require("../configuration")); | ||
@@ -95,3 +95,5 @@ const filesystem = __importStar(require("../filesystem")); | ||
logger_1.default.debug('Registered globals:'); | ||
logger_1.default.log(flat_1.default.flatten(result, { maxDepth: 1 })); | ||
Object.keys(result).forEach((globalsKey) => { | ||
logger_1.default.logWithPadding(chalk_1.default.yellowBright(globalsKey) + ':', util_1.default.inspect(result[globalsKey], { depth: 1, colors: true })); | ||
}); | ||
} | ||
@@ -98,0 +100,0 @@ return result; |
@@ -10,2 +10,8 @@ "use strict"; | ||
const progressBar_1 = __importDefault(require("./progressBar")); | ||
const LOG_LEVEL_CHAR_LENGTH = 5; | ||
const LOG_LEVEL_WARNING = 'WARN'.padEnd(LOG_LEVEL_CHAR_LENGTH); | ||
const LOG_LEVEL_INFO = 'INFO'.padEnd(LOG_LEVEL_CHAR_LENGTH); | ||
const LOG_LEVEL_ERROR = 'ERR'.padEnd(LOG_LEVEL_CHAR_LENGTH); | ||
const LOG_LEVEL_DEBUG = 'DEBUG'.padEnd(LOG_LEVEL_CHAR_LENGTH); | ||
const LOG_LEVEL_PADDING = ''.padEnd(LOG_LEVEL_CHAR_LENGTH); | ||
exports.default = { | ||
@@ -24,3 +30,6 @@ log(...strings) { | ||
logWithPadding(...strings) { | ||
this.log(' ', ...strings); | ||
strings | ||
.join(' ') | ||
.split('\n') | ||
.forEach((string) => this.log(LOG_LEVEL_PADDING, string)); | ||
}, | ||
@@ -31,13 +40,13 @@ warning(...strings) { | ||
} | ||
this.log(chalk_1.default.yellowBright('WARN '), ...strings); | ||
this.log(chalk_1.default.yellowBright(LOG_LEVEL_WARNING), ...strings); | ||
}, | ||
info(...strings) { | ||
this.log(chalk_1.default.greenBright('INFO '), ...strings); | ||
this.log(chalk_1.default.greenBright(LOG_LEVEL_INFO), ...strings); | ||
}, | ||
error(...strings) { | ||
this.log(chalk_1.default.redBright('ERR '), ...strings); | ||
this.log(chalk_1.default.redBright(LOG_LEVEL_ERROR), ...strings); | ||
}, | ||
debug(...strings) { | ||
this.log(chalk_1.default.yellowBright('DEBUG'), ...strings); | ||
this.log(chalk_1.default.yellowBright(LOG_LEVEL_DEBUG), ...strings); | ||
}, | ||
}; |
{ | ||
"name": "symply", | ||
"version": "0.10.4", | ||
"version": "0.10.5", | ||
"description": "A simple static site generator.", | ||
@@ -28,3 +28,2 @@ "author": "Oleg Legun <oleg.legun@gmail.com>", | ||
"chalk": "4.1.2", | ||
"flat": "5.0.2", | ||
"fs-extra": "10.0.1", | ||
@@ -31,0 +30,0 @@ "handlebars": "4.7.7", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
228948
13
2394
- Removedflat@5.0.2
- Removedflat@5.0.2(transitive)