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.2.0 to 0.3.0

10

lib/index.js

@@ -29,9 +29,9 @@ // Load modules

exports.register = function (pack, options, next) {
exports.register = function (plugin, options, next) {
var settings = Hoek.applyToDefaults(internals.defaults, options || {});
pack.state(settings.name, settings.cookieOptions);
plugin.state(settings.name, settings.cookieOptions);
pack.ext('onPostAuth', function (request, next) {
plugin.ext('onPostAuth', function (request, next) {

@@ -83,3 +83,3 @@ // Validate incoming crumb

pack.ext('onPreResponse', function (request, next) {
plugin.ext('onPreResponse', function (request, next) {

@@ -114,3 +114,3 @@ // Add to view context

pack.api({ generate: generate });
plugin.api({ generate: generate });

@@ -117,0 +117,0 @@ return next();

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

@@ -17,16 +17,16 @@ "contributors": [],

"engines": {
"node": "0.8.x"
"node": "0.10.x"
},
"dependencies": {
"boom": "0.3.x",
"hoek": "0.7.x",
"cryptiles": "0.1.x"
"boom": "0.4.x",
"hoek": "0.8.x",
"cryptiles": "0.2.x"
},
"peerDependencies": {
"hapi": "0.16.x"
"hapi": "1.x.x"
},
"devDependencies": {
"hapi": "0.16.x",
"hapi": "1.x.x",
"handlebars": "1.0.x",
"lab": "0.0.x",
"lab": "0.1.x",
"complexity-report": "0.x.x"

@@ -33,0 +33,0 @@ },

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

path: __dirname + '/templates',
engine: {
module: 'handlebars'
engines: {
html: 'handlebars'
}

@@ -48,3 +48,3 @@ }

message: 'hi'
}).send();
});
}

@@ -67,3 +67,3 @@ },

server.plugin.allow({ ext: true }).require('../', { cookieOptions: { isSecure: true } }, function (err) {
server.pack.allow({ ext: true }).require('../', { cookieOptions: { isSecure: true } }, function (err) {

@@ -70,0 +70,0 @@ expect(err).to.not.exist;

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