Comparing version 6.0.1 to 6.0.2
@@ -90,4 +90,7 @@ 'use strict'; | ||
const routeIsRestful = (request.route.settings.plugins._crumb && request.route.settings.plugins._crumb.restful === true); | ||
if (!routeIsRestful && settings.restful === false ) { | ||
let routeIsRestful; | ||
if (request.route.settings.plugins._crumb && request.route.settings.plugins._crumb.restful !== undefined) { | ||
routeIsRestful = request.route.settings.plugins._crumb.restful; | ||
} | ||
if (routeIsRestful === false || !routeIsRestful && settings.restful === false) { | ||
@@ -94,0 +97,0 @@ if (request.method !== 'post' || |
{ | ||
"name": "crumb", | ||
"description": "CSRF crumb generation and validation plugin", | ||
"version": "6.0.1", | ||
"version": "6.0.2", | ||
"repository": "git://github.com/hapijs/crumb", | ||
@@ -23,4 +23,4 @@ "bugs": { | ||
"cryptiles": "3.x.x", | ||
"hoek": "3.x.x", | ||
"joi": "7.x.x" | ||
"hoek": "4.x.x", | ||
"joi": "8.x.x" | ||
}, | ||
@@ -33,4 +33,4 @@ "peerDependencies": { | ||
"handlebars": "^4.0.5", | ||
"hapi": "12.x.x", | ||
"lab": "8.x.x", | ||
"hapi": "13.x.x", | ||
"lab": "10.x.x", | ||
"vision": "^4.0.0" | ||
@@ -37,0 +37,0 @@ }, |
@@ -659,3 +659,3 @@ 'use strict'; | ||
expect(res12.statusCode).to.equal(403); | ||
expect(res12.statusCode).to.equal(200); | ||
done(); | ||
@@ -662,0 +662,0 @@ }); |
Sorry, the diff of this file is not supported yet
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
105572
685
+ Addedjoi@8.4.2(transitive)
- Removedhoek@3.0.4(transitive)
- Removedjoi@7.3.0(transitive)
Updatedhoek@4.x.x
Updatedjoi@8.x.x