Comparing version 3.0.0-alpha.4 to 3.0.0
@@ -42,3 +42,3 @@ 'use strict'; | ||
// Returns: <Object> | ||
const logTypes = types => { | ||
const logTypes = (types) => { | ||
types = types || LOG_TYPES; | ||
@@ -74,3 +74,3 @@ const flags = {}; | ||
const nameToDays = fileName => { | ||
const nameToDays = (fileName) => { | ||
const fileTime = new Date(fileName.substring(0, 10)).getTime(); | ||
@@ -236,5 +236,5 @@ return Math.floor(fileTime / DAY_MILLISECONDS); | ||
return new Promise((resolve, reject) => { | ||
fs.access(this.path, err => { | ||
fs.access(this.path, (err) => { | ||
if (!err) resolve(); | ||
fs.mkdir(this.path, err => { | ||
fs.mkdir(this.path, (err) => { | ||
if (!err || err.code === 'EEXIST') { | ||
@@ -296,3 +296,3 @@ resolve(); | ||
return new Promise((resolve, reject) => { | ||
this.flush(err => { | ||
this.flush((err) => { | ||
if (err) { | ||
@@ -400,4 +400,4 @@ process.stdout.write(`${err.stack}\n`); | ||
const openLog = async args => new Logger(args); | ||
const openLog = async (args) => new Logger(args); | ||
module.exports = { Logger, openLog }; |
{ | ||
"name": "metalog", | ||
"version": "3.0.0-alpha.4", | ||
"version": "3.0.0", | ||
"author": "Timur Shemsedinov <timur.shemsedinov@gmail.com>", | ||
@@ -42,3 +42,3 @@ "description": "Logger for Metarhia", | ||
"@metarhia/common": "^2.1.0", | ||
"concolor": "^0.1.16", | ||
"concolor": "^1.0.0", | ||
"metastreams": "^0.1.2" | ||
@@ -51,3 +51,3 @@ }, | ||
"eslint-plugin-import": "^2.22.1", | ||
"eslint-plugin-prettier": "^3.2.0", | ||
"eslint-plugin-prettier": "^3.3.0", | ||
"metatests": "^0.7.2", | ||
@@ -54,0 +54,0 @@ "prettier": "^2.2.1" |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
15204
1
+ Addedconcolor@1.1.0(transitive)
- Removedconcolor@0.1.16(transitive)
Updatedconcolor@^1.0.0