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

logiks

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logiks - npm Package Compare versions

Comparing version 1.0.0-rc-04 to 1.0.0

15

package.json
{
"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);
});
});
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