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

hapi

Package Overview
Dependencies
Maintainers
1
Versions
295
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi - npm Package Compare versions

Comparing version 17.2.1 to 17.2.2

2

lib/core.js

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

],
badRequestResponse: new Buffer('HTTP/1.1 400 Bad Request\r\n\r\n', 'ascii')
badRequestResponse: Buffer.from('HTTP/1.1 400 Bad Request\r\n\r\n', 'ascii')
};

@@ -50,0 +50,0 @@

@@ -458,5 +458,5 @@ 'use strict';

let event = { request: this.info.id, timestamp, tags, [field]: data, channel };
let event = [this, { request: this.info.id, timestamp, tags, [field]: data, channel }];
if (typeof data === 'function') {
event = () => ({ request: this.info.id, timestamp, tags, data: data(), channel });
event = () => [this, { request: this.info.id, timestamp, tags, data: data(), channel }];
}

@@ -469,6 +469,6 @@

this.logs.push(event);
this.logs.push(event[1]);
}
this._core.events.emit({ name: 'request', channel, tags }, [this, event]);
this._core.events.emit({ name: 'request', channel, tags }, event);
}

@@ -475,0 +475,0 @@

@@ -5,3 +5,3 @@ {

"homepage": "http://hapijs.com",
"version": "17.2.1",
"version": "17.2.2",
"repository": {

@@ -8,0 +8,0 @@ "type": "git",

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