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

crumb

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crumb - npm Package Compare versions

Comparing version 6.0.1 to 6.0.2

7

lib/index.js

@@ -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

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