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

pino-tiny

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino-tiny - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

screen-shot-v1.1.png

23

lib/transformer.js

@@ -21,5 +21,14 @@ const debug = require('debug')('pino-tiny:transformer')

} else {
const web = result.res && result.req ? `${result.req.method} ${result.req.url} (${result.res.statusCode})` : ''
const icon = levels[result.level] ? levels[result.level].color(levels[result.level].icon) : '???'
const output = `${icon} ${Moment(result.time).format('HH:mm:ss.SSS')} ${result.msg} ${Chalk.dim(web)}\n`
const web =
result.res && result.req
? `${result.req.method} ${result.req.url} (${
result.res.statusCode
}${result.responseTime ? `/${result.responseTime}ms` : ''})`
: ''
const icon = levels[result.level]
? levels[result.level].color(levels[result.level].icon)
: '???'
const output = `${icon} ${Moment(result.time).format('HH:mm:ss.SSS')} ${
result.msg
} ${Chalk.dim(web)}\n`
cb(null, output)

@@ -29,3 +38,9 @@ }

result = false
cb(new Error(`Unable to filter log: "${JSON.stringify(data)}". error: ${err.message}`))
cb(
new Error(
`Unable to filter log: "${JSON.stringify(data)}". error: ${
err.message
}`
)
)
}

@@ -32,0 +47,0 @@ }

8

package.json
{
"name": "pino-tiny",
"version": "1.0.0",
"description": "a very minimalistic output for pino logger",
"version": "1.1.0",
"description": "a very minimalist output for pino logger",
"main": "lib/index.js",

@@ -22,3 +22,3 @@ "bin": {

"pino",
"minimalistic",
"minimalist",
"log",

@@ -52,2 +52,2 @@ "logger",

}
}
}

@@ -14,3 +14,3 @@ # pino-tiny

![screen-shot](./screen-shot.jpg)
![screen-shot](./screen-shot-v1.1.jpg)

@@ -81,2 +81,4 @@ ## using it

### New in v1.1
* timings added to web logs.
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