Socket
Socket
Sign inDemoInstall

good

Package Overview
Dependencies
Maintainers
6
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

good - npm Package Compare versions

Comparing version 7.2.0 to 7.3.0

8

lib/monitor.js

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

this.push(() => new Utils.RequestLog(request, event));
this.push(() => new Utils.RequestLog(reqOptions, request, event));
};

@@ -56,3 +56,3 @@

this.push(() => new Utils.RequestError(request, error));
this.push(() => new Utils.RequestError(reqOptions, request, error));
};

@@ -219,3 +219,5 @@

reporter.write(value());
if (reporter.destroyed === false) {
reporter.write(value());
}
});

@@ -222,0 +224,0 @@ }

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

class RequestError {
constructor(request, error) {
constructor(reqOptions, request, error) {

@@ -43,2 +43,6 @@ this.event = 'error';

this.config = internals.extractConfig(request);
if (reqOptions.headers) {
this.headers = Hoek.reach(request, 'raw.req.headers');
}
}

@@ -137,3 +141,3 @@ toJSON() {

class RequestLog {
constructor(request, event) {
constructor(reqOptions, request, event) {

@@ -149,2 +153,6 @@ this.event = 'request';

this.config = internals.extractConfig(request);
if (reqOptions.headers) {
this.headers = Hoek.reach(request, 'raw.req.headers');
}
}

@@ -151,0 +159,0 @@ }

{
"name": "good",
"description": "Server and process monitoring plugin",
"version": "7.2.0",
"version": "7.3.0",
"repository": "git://github.com/hapijs/good",

@@ -28,7 +28,7 @@ "main": "lib/index.js",

"devDependencies": {
"async": "2.1.x",
"async": "2.5.x",
"code": "4.x.x",
"hapi": "16.x.x",
"lab": "11.x.x",
"wreck": "10.x.x"
"lab": "14.x.x",
"wreck": "12.x.x"
},

@@ -35,0 +35,0 @@ "scripts": {

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