Comparing version 0.2.0 to 0.3.0
@@ -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
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
72453
+ Addedalce@1.0.0(transitive)
+ Addedboom@0.4.21.2.1(transitive)
+ Addedcatbox@1.2.0(transitive)
+ Addedconfidence@0.8.1(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedcryptiles@0.2.21.0.1(transitive)
+ Addedesprima@1.0.4(transitive)
+ Addedestraverse@1.3.2(transitive)
+ Addedhapi@1.20.0(transitive)
+ Addedhawk@1.1.2(transitive)
+ Addedhoek@0.8.50.9.11.5.22.16.3(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addediron@1.0.0(transitive)
+ Addedisarray@0.0.1(transitive)
+ Addedjoi@2.9.0(transitive)
+ Addedjoi-v1@1.2.5(transitive)
+ Addedlru-cache@2.3.1(transitive)
+ Addedminimist@0.0.10(transitive)
+ Addedmultiparty@3.0.0(transitive)
+ Addedoptimist@0.6.1(transitive)
+ Addedreadable-stream@1.1.14(transitive)
+ Addedsemver@2.0.11(transitive)
+ Addedshot@1.7.0(transitive)
+ Addedsntp@1.0.9(transitive)
+ Addedstream-counter@0.2.0(transitive)
+ Addedstring_decoder@0.10.31(transitive)
- Removedasync@0.1.22(transitive)
- Removedaws-sign@0.2.1(transitive)
- Removedboom@0.3.8(transitive)
- Removedcatbox@0.4.0(transitive)
- Removedcombined-stream@0.0.7(transitive)
- Removedcookie-jar@0.2.0(transitive)
- Removedcryptiles@0.1.3(transitive)
- Removeddelayed-stream@0.0.5(transitive)
- Removedforever-agent@0.2.0(transitive)
- Removedform-data@0.0.10(transitive)
- Removedformidable@1.0.17(transitive)
- Removedhapi@0.16.0(transitive)
- Removedhawk@0.10.20.11.1(transitive)
- Removedhoek@0.6.20.7.6(transitive)
- Removediron@0.2.4(transitive)
- Removedjoi@0.2.6(transitive)
- Removedjson-stringify-safe@3.0.0(transitive)
- Removedlru-cache@2.2.4(transitive)
- Removednode-uuid@1.4.8(transitive)
- Removedoauth-sign@0.2.0(transitive)
- Removedoptimist@0.3.7(transitive)
- Removedoz@0.1.2(transitive)
- Removedqs@0.5.6(transitive)
- Removedrequest@2.16.6(transitive)
- Removedshot@0.1.3(transitive)
- Removedsntp@0.1.4(transitive)
- Removedtunnel-agent@0.2.0(transitive)
Updatedboom@0.4.x
Updatedcryptiles@0.2.x
Updatedhoek@0.8.x