Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

symply

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

symply - npm Package Compare versions

Comparing version 0.10.4 to 0.10.5

6

dist/entities/globals.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc