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 1.6.0 to 2.0.0

47

example-hapi-pino.js
'use strict'
var Hapi = require('hapi')
const Hapi = require('@hapi/hapi')
// Create a server with a host and port
var server = new Hapi.Server()
server.connection({
host: 'localhost',
port: 8080
})
async function run () {
// Create a server with a host and port
const server = Hapi.Server({
port: 3000,
host: 'localhost'
})
// Add the route
server.route({
method: 'GET',
path: '/',
handler: function (request, reply) {
return reply('hello world')
}
})
await server.register(require('hapi-pino'))
server.register(require('hapi-pino'), function (err) {
if (err) {
console.error(err)
process.exit(1)
}
// Start the server
server.start(function (err) {
if (err) {
console.error(err)
process.exit(1)
// Add the route
server.route({
method: 'GET',
path: '/',
handler: function (request, reply) {
return 'hello world'
}
})
await server.start()
}
run().catch((err) => {
console.error(err)
process.exit(1)
})
{
"name": "pino-colada",
"version": "1.6.0",
"version": "2.0.0",
"description": "cute ndjson logger for pino",

@@ -25,10 +25,10 @@ "license": "MIT",

"devDependencies": {
"hapi": "^16.1.0",
"hapi-pino": "^1.3.0",
"merry": "^4.3.1",
"pino-http": "^2.4.2",
"standard": "^8.6.0"
"@hapi/hapi": "^18.0.0",
"hapi-pino": "^6.3.0",
"merry": "^4.0.0",
"pino-http": "^4.3.0",
"standard": "^14.0.0"
},
"dependencies": {
"chalk": "^2.0.1",
"chalk": "^3.0.0",
"fast-json-parse": "^1.0.2",

@@ -38,5 +38,5 @@ "pad-left": "^2.1.0",

"prettier-bytes": "^1.0.3",
"pretty-ms": "^2.1.0",
"split2": "^2.1.1"
"pretty-ms": "^5.0.0",
"split2": "^3.0.0"
}
}

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