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

bananas

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bananas - npm Package Compare versions

Comparing version 1.10.1 to 1.11.0

28

lib/index.js

@@ -72,3 +72,3 @@ 'use strict';

const uncaught = internals.update('error');
const uncaught = internals.update('error', null, settings);
uncaught.error = {

@@ -91,3 +91,3 @@ message: err.message,

const uncaught = internals.update('error');
const uncaught = internals.update('error', null, settings);
uncaught.error = {

@@ -109,3 +109,3 @@ message: err.message,

const end = internals.update('server');
const end = internals.update('server', null, settings);
end.tags = ['bananas', 'signal', signal];

@@ -132,3 +132,3 @@ updates.push(end);

const end = internals.update('server');
const end = internals.update('server', null, settings);
end.tags = ['bananas', 'stopped'];

@@ -145,3 +145,3 @@ updates.push(end);

const update = internals.update('server');
const update = internals.update('server', null, settings);
update.tags = event.tags;

@@ -157,7 +157,9 @@ update.data = internals.error(event.data);

if (settings.exclude.indexOf(request.path) !== -1 || routeSettings.exclude) {
if (settings.exclude.indexOf(request.path) !== -1 ||
routeSettings.exclude) {
return;
}
const update = internals.update('response', request);
const update = internals.update('response', request, settings);
update.code = request.raw.res.statusCode;

@@ -174,3 +176,3 @@

const update = internals.update('error', request);
const update = internals.update('error', request, settings);
update.error = internals.error(err);

@@ -182,3 +184,3 @@ updates.push(update);

const init = internals.update('server');
const init = internals.update('server', null, settings);
init.tags = ['bananas', 'initialized'];

@@ -196,3 +198,3 @@ init.env = process.env;

internals.update = function (event, request) {
internals.update = function (event, request, options) {

@@ -219,2 +221,8 @@ const now = Date.now();

};
if (request.auth.credentials &&
options.credentials) {
update.auth = options.credentials(request);
}
}

@@ -221,0 +229,0 @@

{
"name": "bananas",
"description": "Minimal Loggly hapi plugin",
"version": "1.10.1",
"version": "1.11.0",
"author": "Eran Hammer <eran@hammer.io> (http://hueniverse.com)",

@@ -18,8 +18,8 @@ "repository": "git://github.com/hueniverse/bananas",

"hoek": "4.x.x",
"wreck": "9.x.x",
"wreck": "10.x.x",
"fast-safe-stringify": "1.x.x"
},
"devDependencies": {
"code": "3.x.x",
"hapi": "15.x.x",
"code": "4.x.x",
"hapi": "16.x.x",
"lab": "11.x.x"

@@ -26,0 +26,0 @@ },

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