Comparing version 1.8.1 to 1.9.0
@@ -20,3 +20,4 @@ 'use strict'; | ||
signals: false, | ||
stopTimeoutMsec: 15 * 1000 // 15 seconds | ||
stopTimeoutMsec: 15 * 1000, // 15 seconds | ||
tags: null | ||
} | ||
@@ -48,2 +49,9 @@ }; | ||
holder.forEach((update) => { | ||
if (settings.tags) { | ||
update.tags = (update.tags ? settings.tags.concat(update.tags) : settings.tags); | ||
} | ||
}); | ||
const payload = holder.map(FastSafeStringify).join('\n'); | ||
@@ -87,3 +95,2 @@ Wreck.post(uri, { payload, headers: { 'content-type': 'application/json' }, json: true }, callback); | ||
updates.push(end); | ||
server.root.stop({ timeout: settings.stopTimeoutMsec }, process.exit); | ||
@@ -93,4 +100,4 @@ }; | ||
process.on('SIGTERM', shutdown('SIGTERM')); | ||
process.on('SIGINT', shutdown('SIGINT')); | ||
process.once('SIGTERM', shutdown('SIGTERM')); | ||
process.once('SIGINT', shutdown('SIGINT')); | ||
} | ||
@@ -104,2 +111,7 @@ | ||
if (settings.signals) { | ||
process.removeAllListeners('SIGTERM'); | ||
process.removeAllListeners('SIGINT'); | ||
} | ||
const end = internals.update('server'); | ||
@@ -106,0 +118,0 @@ end.tags = ['bananas', 'stopped']; |
{ | ||
"name": "bananas", | ||
"description": "Minimal Loggly hapi plugin", | ||
"version": "1.8.1", | ||
"version": "1.9.0", | ||
"author": "Eran Hammer <eran@hammer.io> (http://hueniverse.com)", | ||
@@ -23,3 +23,3 @@ "repository": "git://github.com/hueniverse/bananas", | ||
"code": "3.x.x", | ||
"hapi": "13.x.x", | ||
"hapi": "14.x.x", | ||
"lab": "10.x.x" | ||
@@ -26,0 +26,0 @@ }, |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
7590
150
0