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

pino-colada

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pino-colada - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

0

bin.js

@@ -0,0 +0,0 @@ #! /usr/bin/env node

@@ -0,0 +0,0 @@ 'use strict'

@@ -0,0 +0,0 @@ var pino = require('pino-http')()

@@ -0,0 +0,0 @@ var merry = require('merry')

6

index.js

@@ -71,3 +71,3 @@ var prettyBytes = require('prettier-bytes')

output.push(formatDate())
output.push(formatDate(obj.time || Date.now()))
output.push(formatLevel(obj.level))

@@ -107,4 +107,4 @@ output.push(formatNs(obj.ns))

function formatDate () {
var date = new Date()
function formatDate (instant) {
var date = new Date(instant)
var hours = padLeft(date.getHours().toString(), 2, '0')

@@ -111,0 +111,0 @@ var minutes = padLeft(date.getMinutes().toString(), 2, '0')

{
"name": "pino-colada",
"version": "2.1.0",
"version": "2.2.0",
"description": "cute ndjson logger for pino",

@@ -40,2 +40,2 @@ "license": "MIT",

}
}
}

@@ -26,2 +26,3 @@ # pino-colada 🍹

const logger = pino({
prettyPrint: {},
prettifier: require('pino-colada')

@@ -28,0 +29,0 @@ })

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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