Comparing version 17.2.1 to 17.2.2
@@ -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", |
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
168409