You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

sails-hook-winston2

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sails-hook-winston2 - npm Package Compare versions

Comparing version

to
3.0.0

yarn.lock

33

lib/index.js

@@ -17,23 +17,17 @@ 'use strict';

level: sails.config.log.level,
formatter: sails.config.log.formatter || undefined,
colorize: sails.config.log.colorize || false,
prettyPrint: sails.config.log.prettyPrint || false,
timestamp: sails.config.log.timestamp || false,
json: sails.config.log.json || false,
stringify: sails.config.log.stringify || false,
depth: sails.config.log.depth || null,
humanReadableUnhandledException: sails.config.log.humanReadableUnhandledException || false,
showLevel: sails.config.log.showLevel !== undefined ? sails.config.log.showLevel : true
format: sails.config.log.formatter || simple(),
// stringify: sails.config.log.stringify || false,
humanReadableUnhandledException: sails.config.log.humanReadableUnhandledException !== undefined ? sails.config.log.humanReadableUnhandledException : true
};
// Console Transport
logger = new _winston2.default.Logger({
transports: [new _winston2.default.transports.Console(consoleOptions)],
logger = (0, _winston.createLogger)({
transports: [new _winston.transports.Console(consoleOptions)],
levels: {
error: 1,
warn: 2,
debug: 3,
info: 4,
verbose: 5,
silly: 6
error: 0,
warn: 1,
debug: 2,
info: 3,
verbose: 4,
silly: 5
}

@@ -64,4 +58,2 @@ });

var _winston2 = _interopRequireDefault(_winston);
var _captainsLog = require('captains-log');

@@ -81,2 +73,3 @@

module.exports = exports['default'];
var simple = _winston.format.simple;
module.exports = exports.default;
{
"name": "sails-hook-winston2",
"description": "Integrates winston logging system with your Sails application based in sails-hook-winston",
"version": "1.2.0",
"version": "3.0.0",
"license": "MIT",
"main": "lib/index.js",
"repository": "elesdoar/sails-hook-winston2",
"homepage": "elesdoar/sails-hook-winston2",
"homepage": "https://github.com/elesdoar/sails-hook-winston2",
"keywords": [

@@ -35,3 +35,3 @@ "sails",

"bugs": {
"url": "elesdoar/sails-hook-winston2/issues"
"url": "https://github.com/elesdoar/sails-hook-winston2/issues"
},

@@ -45,20 +45,20 @@ "scripts": {

"dependencies": {
"moment": "2.11.2",
"winston": "2.1.1"
"moment": "2.22.2",
"winston": "3.1.0"
},
"devDependencies": {
"babel-cli": "6.5.1",
"babel-plugin-add-module-exports": "0.1.2",
"babel-preset-es2015": "6.5.0",
"chai": "3.5.0",
"coveralls": "2.11.6",
"cz-conventional-changelog": "1.1.5",
"isparta": "4.0.0",
"mocha": "2.4.5",
"sails": "0.12.1",
"sinon": "1.17.3"
"babel-cli": "6.26.0",
"babel-plugin-add-module-exports": "1.0.0",
"babel-preset-es2015": "6.24.1",
"chai": "4.2.0",
"coveralls": "3.0.2",
"cz-conventional-changelog": "2.1.0",
"isparta": "4.1.0",
"mocha": "5.2.0",
"sails": "1.0.2",
"sinon": "7.1.0"
},
"engines": {
"node": ">= 4.0.0",
"npm": ">= 3.0.0"
"node": ">= 6.0.0",
"npm": ">= 5.0.0"
},

@@ -65,0 +65,0 @@ "sails": {