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.5 to 0.10.6

11

dist/logger.js

@@ -18,5 +18,10 @@ "use strict";

log(...strings) {
var _a;
const logger = (_a = configuration_1.default.customLogger) !== null && _a !== void 0 ? _a : console;
progressBar_1.default.isRunning && logger.log();
let logger;
if (configuration_1.default.customLogger) {
logger = configuration_1.default.customLogger;
}
else {
logger = console;
progressBar_1.default.isRunning && logger.log();
}
if (configuration_1.default.ansiLogging) {

@@ -23,0 +28,0 @@ logger.log(strings.join(' '));

@@ -11,3 +11,35 @@ "use strict";

constructor(tasksNumber) {
this.total = null;
this.curr = 0;
ProgressBar.isRunning = true;
if (configuration_1.default.customLogger) {
this.total = tasksNumber;
this.progressBar = {
get complete() {
return this.curr >= this.total;
},
get total() {
return this.total;
},
get curr() {
return this.curr;
},
interrupt(msg) {
var _a;
(_a = configuration_1.default.customLogger) === null || _a === void 0 ? void 0 : _a.log(msg);
},
render(tokens) {
var _a;
(_a = configuration_1.default.customLogger) === null || _a === void 0 ? void 0 : _a.log(`INFO ${tokens === null || tokens === void 0 ? void 0 : tokens.prefix} ${tokens === null || tokens === void 0 ? void 0 : tokens.postfix}`);
},
terminate: () => undefined,
update: () => undefined,
tick: (tokens) => {
var _a;
this.curr++;
(_a = configuration_1.default.customLogger) === null || _a === void 0 ? void 0 : _a.log(`INFO ${tokens === null || tokens === void 0 ? void 0 : tokens.prefix} ${tokens === null || tokens === void 0 ? void 0 : tokens.postfix}`);
},
};
return;
}
this.progressBar = new progress_1.default((configuration_1.default.ansiLogging ? chalk_1.default.greenBright('INFO ') : 'INFO ') + ':prefix :bar :postfix', {

@@ -14,0 +46,0 @@ total: tasksNumber,

{
"name": "symply",
"version": "0.10.5",
"version": "0.10.6",
"description": "A simple static site generator.",

@@ -18,3 +18,3 @@ "author": "Oleg Legun <oleg.legun@gmail.com>",

"compile": "npm run dist:clear && npx tsc",
"publish-and-push": "npm run compile && npm publish && git tag \"v$npm_package_version\" && git push && git push --tags",
"publish-and-push": "npm run compile && npm test && npm publish && git tag \"v$npm_package_version\" && git push && git push --tags",
"dist:clear": "rm -rf dist",

@@ -24,4 +24,5 @@ "start": "node index.js",

"cloc": "cloc --exclude-dir=node_modules,dist --exclude-ext=json .",
"test:unit": "npm run compile && tape test/unit/**/*.js | tap-spec",
"test:e2e": "npm run compile && tape test/e2e/**/*.test.js | tap-spec"
"test": "npm run test:unit && npm run test:e2e",
"test:unit": "tape test/unit/**/*.js | tap-spec",
"test:e2e": "tape test/e2e/**/*.test.js | tap-spec"
},

@@ -57,2 +58,3 @@ "dependencies": {

"@typescript-eslint/parser": "5.14.0",
"dir-compare": "4.0.0",
"eslint": "8.11.0",

@@ -59,0 +61,0 @@ "eslint-config-google": "0.14.0",

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