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

captains-log

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

captains-log - npm Package Compare versions

Comparing version 1.0.3 to 2.0.0

10

lib/write.js

@@ -7,5 +7,6 @@ /**

var _ = require('@sailshq/lodash');
var semver = require('semver');
var IS_NODE_8_OR_NEWER = semver.satisfies(semver.clean(process.version), '8');
/**

@@ -62,4 +63,7 @@ * Build a log function which combines arguments into a string,

// > as explained in: https://github.com/balderdashy/captains-log/issues/17
if (_.isError(arg) && arg.stack && !arg.inspect && !options._dontAccessErrorStacks) {
pieces.push(arg.stack);
if (!options._dontAccessErrorStacks && _.isError(arg) && !arg.inspect) {
// In Node 8, the behavior of util.inspect-ing Errors changed to include
// their stack traces, plus additional information. So if supported,
// we take advange of that.
pieces.push(IS_NODE_8_OR_NEWER ? util.inspect(arg) : arg.stack);
}

@@ -66,0 +70,0 @@ // Non-strings

{
"name": "captains-log",
"version": "1.0.3",
"version": "2.0.0",
"description": "Lightweight logger with a simple pass-through configuration for use with fancier logging libraries",

@@ -28,3 +28,4 @@ "main": "index.js",

"@sailshq/lodash": "^3.10.2",
"rc": "1.0.1"
"rc": "1.0.1",
"semver": "5.4.1"
},

@@ -31,0 +32,0 @@ "devDependencies": {

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