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

lambda-monitor-logger

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lambda-monitor-logger - npm Package Compare versions

Comparing version 3.2.2 to 3.3.0

33

lib/logic/abbrev.js

@@ -5,15 +5,24 @@ "use strict";

const maxStringLength = 512;
const callback = (match, idx, str) => {
const prevChar = str[idx - 1];
return prevChar === ',' || prevChar === ':' ? '' : ' ';
};
module.exports = value => util.inspect(value, {
compact: true,
maxArrayLength: 14,
depth: 16,
stylize: (str, type) => {
if (type === 'string' && str.length > maxStringLength) {
return `${str.slice(0, maxStringLength + 1)}...`;
module.exports = (value, {
stripLineBreaks = true,
maxLength = 512
} = {}) => {
const r = util.inspect(value, {
compact: true,
maxArrayLength: 14,
depth: 16,
stylize: (str, type) => {
if (type === 'string' && str.length > maxLength) {
return `${str.slice(0, maxLength + 1)}...`;
}
return str;
}
return str;
}
}).replace(/\s*\n\s*/g, '');
});
return stripLineBreaks ? r.replace(/\s*\n\s*/g, callback) : r;
};
{
"name": "lambda-monitor-logger",
"version": "3.2.2",
"version": "3.3.0",
"description": "Logging designed to be used with lambda-monitor",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -44,1 +44,18 @@ # lambda-monitor-logger

Log messages below the currently set log level are completely ignored.
## Abbrev Options
### stripLineBreaks
Type: `boolean`<br>
Default: `true`
When set to true, line breaks are stripped.
### maxLength
Type: `integer`<br>
Default: `512`
The maximum output length.
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