New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

log-segment

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

log-segment - npm Package Compare versions

Comparing version 1.0.7 to 1.0.8

12

main.js

@@ -100,3 +100,7 @@ 'use strict'

if (typeof value === 'object') {
return `[${label}=${JSON.stringify(value)}]`
try {
return `[${label}=${JSON.stringify(value)}]`
} catch (e) {
return `[${label}=INVALID-JSON]`
}
} else {

@@ -171,3 +175,7 @@ return `[${label}=${value}]`

if (typeof message === 'object') {
message = JSON.stringify(message)
try {
message = JSON.stringify(message)
} catch (e) {
message = 'INVALID-JSON'
}
} else if (typeof message === 'function') {

@@ -174,0 +182,0 @@ message = message()

2

package.json
{
"name": "log-segment",
"version": "1.0.7",
"version": "1.0.8",
"description": "logger with partition",

@@ -5,0 +5,0 @@ "main": "main.js",

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