Comparing version 1.0.0-rc-04 to 1.0.0
{ | ||
"name": "logiks", | ||
"version": "1.0.0rc-04", | ||
"version": "1.0.0", | ||
"description": "Nodejs logger", | ||
"keywords": [ | ||
"logging", | ||
"semantic", | ||
"logger", | ||
"log", | ||
"nodejs" | ||
], | ||
"homepage": "https://jazzpool.github.io/logx", | ||
@@ -10,9 +17,7 @@ "repository": { | ||
}, | ||
"author": [ | ||
"Trdat Mkrtchyan <womtromb@gmail.com>" | ||
], | ||
"author": "Trdat Mkrtchyan <womtromb@gmail.com>", | ||
"main": "./src/index.js", | ||
"scripts": { | ||
"test": "jest", | ||
"eslint-check": "node node_modules/eslint-pre-commit-diff" | ||
"eslint-check": "node node_modules/eslint-pre-commit-diff" | ||
}, | ||
@@ -19,0 +24,0 @@ "pre-commit": [ |
@@ -8,3 +8,3 @@ # Logiks 📝 [![Build Status](https://travis-ci.org/jazzpool/logx.svg?branch=master)](https://travis-ci.org/jazzpool/logx) | ||
level: 'debug', | ||
color: true, | ||
colors: true, | ||
}); | ||
@@ -11,0 +11,0 @@ |
@@ -9,3 +9,3 @@ 'use strict'; | ||
const LEVELS = [ | ||
['silly', chalk.white], | ||
['silly', chalk.dim], | ||
['debug', chalk.green], | ||
@@ -12,0 +12,0 @@ ['info', chalk.magenta], |
@@ -55,2 +55,16 @@ const LogX = require('../src'); | ||
}); | ||
describe('errors logging', () => { | ||
const log = new LogX({colors: false, level: 'info', date: false}); | ||
let error = null; | ||
try { | ||
const t = a + 10; // eslint-disable-line | ||
} catch (e) { | ||
error = e; | ||
} | ||
const errMsg = '[Syntax error] ReferenceError: a is not defined.'; | ||
expect(log.error('Syntax error', error).startsWith(errMsg)).toBe(true); | ||
}); | ||
}); |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
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
19219
327
2
1
0