pino-colada
Advanced tools
Comparing version 1.6.0 to 2.0.0
'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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
57106
218
+ Addedansi-styles@4.3.0(transitive)
+ Addedchalk@3.0.0(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedhas-flag@4.0.0(transitive)
+ Addedparse-ms@2.1.0(transitive)
+ Addedpretty-ms@5.1.0(transitive)
+ Addedreadable-stream@3.6.2(transitive)
+ Addedsafe-buffer@5.2.1(transitive)
+ Addedsplit2@3.2.2(transitive)
+ Addedstring_decoder@1.3.0(transitive)
+ Addedsupports-color@7.2.0(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedcore-util-is@1.0.3(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedis-finite@1.1.0(transitive)
- Removedisarray@1.0.0(transitive)
- Removedparse-ms@1.0.1(transitive)
- Removedplur@1.0.0(transitive)
- Removedpretty-ms@2.1.0(transitive)
- Removedprocess-nextick-args@2.0.1(transitive)
- Removedreadable-stream@2.3.8(transitive)
- Removedsafe-buffer@5.1.2(transitive)
- Removedsplit2@2.2.0(transitive)
- Removedstring_decoder@1.1.1(transitive)
- Removedsupports-color@5.5.0(transitive)
- Removedthrough2@2.0.5(transitive)
- Removedxtend@4.0.2(transitive)
Updatedchalk@^3.0.0
Updatedpretty-ms@^5.0.0
Updatedsplit2@^3.0.0