Comparing version 18.0.0 to 18.0.1
'use strict'; | ||
const Assert = require('assert'); | ||
const Boom = require('boom'); | ||
@@ -360,7 +361,13 @@ const Bounce = require('bounce'); | ||
if (this.method[0] === '_') { | ||
throw new Error(message); | ||
if (this.method[0] !== '_') { | ||
message = `${message}: ${this.method.toUpperCase()} ${this.path}`; | ||
} | ||
throw new Error(`${message}: ${this.method.toUpperCase()} ${this.path}`); | ||
throw new Assert.AssertionError({ | ||
message, | ||
actual: false, | ||
expected: true, | ||
operator: '==', | ||
stackStartFunction: this._assert | ||
}); | ||
} | ||
@@ -367,0 +374,0 @@ }; |
{ | ||
"version": "18.0.0", | ||
"version": "18.0.1", | ||
"name": "hapi", | ||
@@ -31,2 +31,7 @@ "lockfileVersion": 1, | ||
}, | ||
"bourne": { | ||
"version": "1.0.0", | ||
"resolved": "https://registry.npmjs.org/bourne/-/bourne-1.0.0.tgz", | ||
"integrity": "sha512-938G7p21n3x3FiGnZcoN8Spv7EHOgFRnUStCby2/2fYnkY+fFU5TobsN4xCo5kW/jniYJP8KWjBFTzM4oq+ewg==" | ||
}, | ||
"call": { | ||
@@ -113,10 +118,10 @@ "version": "5.0.3", | ||
"statehood": { | ||
"version": "6.0.8", | ||
"resolved": "https://registry.npmjs.org/statehood/-/statehood-6.0.8.tgz", | ||
"integrity": "sha512-/uk2Iq5VXCAGmYnRTjez6gDfU8fROm1Um5WH2C9aNCdG7DAqD94dqZgeuqXrvVFnfDqxAtorUBLUtD9El/uJ6w==" | ||
"version": "6.0.9", | ||
"resolved": "https://registry.npmjs.org/statehood/-/statehood-6.0.9.tgz", | ||
"integrity": "sha512-jbFg1+MYEqfC7ABAoWZoeF4cQUtp3LUvMDUGExL76cMmleBHG7I6xlZFsE8hRi7nEySIvutHmVlLmBe9+2R5LQ==" | ||
}, | ||
"subtext": { | ||
"version": "6.0.11", | ||
"resolved": "https://registry.npmjs.org/subtext/-/subtext-6.0.11.tgz", | ||
"integrity": "sha512-jap1ev33dbVTBPxpIyJ5OvD9/J4oWlx1qHQ8bBnKpiwItxXt3+7tvmNZqZeTEQVTjvkReHY1ZnP/7iltNdGnOA==" | ||
"version": "6.0.12", | ||
"resolved": "https://registry.npmjs.org/subtext/-/subtext-6.0.12.tgz", | ||
"integrity": "sha512-yT1wCDWVgqvL9BIkWzWqgj5spUSYo/Enu09iUV8t2ZvHcr2tKGTGg2kc9tUpVEsdhp1ihsZeTAiDqh0TQciTPQ==" | ||
}, | ||
@@ -123,0 +128,0 @@ "teamwork": { |
@@ -5,3 +5,3 @@ { | ||
"homepage": "https://hapijs.com", | ||
"version": "18.0.0", | ||
"version": "18.0.1", | ||
"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
180372
4455