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

crumb

Package Overview
Dependencies
Maintainers
1
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 0.0.1 to 0.0.2

10

lib/index.js

@@ -48,4 +48,4 @@ // Load modules

request.api.crumb = crumb;
return request.api.crumb;
request.plugins.crumb = crumb;
return request.plugins.crumb;
};

@@ -74,3 +74,3 @@

var crumb = request[request.route.plugins._crumb.source][request.route.plugins._crumb.key];
if (crumb !== request.api.crumb) {
if (crumb !== request.plugins.crumb) {
return next(Boom.forbidden());

@@ -93,3 +93,3 @@ }

if (internals.config.addToViewContext &&
request.api.crumb &&
request.plugins.crumb &&
request.response &&

@@ -99,3 +99,3 @@ request.response.varieties.view) {

request.response.view.context = request.response.view.context || {};
request.response.view.context.crumb = request.api.crumb;
request.response.view.context.crumb = request.plugins.crumb;
}

@@ -102,0 +102,0 @@

{
"name": "crumb",
"description": "CSRF crumb generation plugin",
"version": "0.0.1",
"version": "0.0.2",
"author": "Eran Hammer <eran@hueniverse.com> (http://hueniverse.com)",

@@ -6,0 +6,0 @@ "contributors": [],

@@ -48,4 +48,4 @@ // Load modules

expect(this.api.crumb).to.exist;
expect(this.server.api.crumb.generate).to.exist;
expect(this.plugins.crumb).to.exist;
expect(this.server.plugins.crumb.generate).to.exist;

@@ -52,0 +52,0 @@ return this.reply.view('index', {

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