Comparing version 1.0.0 to 1.0.1
@@ -51,4 +51,3 @@ // Load modules | ||
var error = internals.schema.validate(options).error; | ||
Hoek.assert(!error, 'Invalid proxy handler options (' + route.path + ')', error && error.annotate()); | ||
Joi.assert(options, internals.schema, 'Invalid proxy handler options (' + route.path + ')'); | ||
Hoek.assert(!route.settings.payload || ((route.settings.payload.output === 'data' || route.settings.payload.output === 'stream') && !route.settings.payload.parse), 'Cannot proxy if payload is parsed or if output is not stream or data'); | ||
@@ -55,0 +54,0 @@ var settings = Hoek.applyToDefaultsWithShallow(internals.defaults, options, ['agent']); |
{ | ||
"name": "h2o2", | ||
"description": "Proxy handler for hapi.js", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"repository": "git://github.com/hapijs/h2o2", | ||
@@ -17,7 +17,7 @@ "main": "index", | ||
"dependencies": { | ||
"boom": "2.x.x", | ||
"hoek": "2.x.x", | ||
"joi": "^4.6.x", | ||
"statehood": "^1.2.x", | ||
"wreck": "5.x.x" | ||
"boom": "2.x.x", | ||
"hoek": "2.x.x", | ||
"joi": "^4.7.x", | ||
"statehood": "^1.2.x", | ||
"wreck": "5.x.x" | ||
}, | ||
@@ -24,0 +24,0 @@ "devDependencies": { |
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
73507
1279
Updatedjoi@^4.7.x