@vladmandic/pilogger
Advanced tools
Comparing version 0.3.3 to 0.3.5
{ | ||
"name": "@vladmandic/pilogger", | ||
"version": "0.3.3", | ||
"version": "0.3.5", | ||
"description": "Simple Logger for NodeJS", | ||
@@ -32,4 +32,4 @@ "main": "dist/pilogger.js", | ||
"dayjs": "^1.10.7", | ||
"esbuild": "^0.12.26" | ||
"esbuild": "^0.13.12" | ||
} | ||
} |
@@ -16,2 +16,3 @@ const os = require('os'); | ||
console: true, | ||
timeStamp: true, | ||
// logFile: null, | ||
@@ -85,3 +86,6 @@ // accessFile: null, | ||
const time = dayjs(Date.now()).format(options.dateFormat); | ||
if (options.console) logger.log(time, ...messages); | ||
if (options.console) { | ||
if (options.timeStamp) logger.log(time, ...messages); | ||
else logger.log(...messages); | ||
} | ||
} | ||
@@ -234,3 +238,3 @@ | ||
exports.assert = assert; // log if assertion failed | ||
exports.blank = (...message) => log(...message); | ||
exports.blank = (...message) => log('', ...message); | ||
exports.info = (...message) => log('info', ...message); | ||
@@ -237,0 +241,0 @@ exports.state = (...message) => log('state', ...message); |
Sorry, the diff of this file is too big to display
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
84484
2236
0
3