Comparing version 0.0.7 to 0.0.8
{ | ||
"name": "crumb", | ||
"description": "CSRF crumb generation plugin", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"author": "Eran Hammer <eran@hueniverse.com> (http://hueniverse.com)", | ||
@@ -6,0 +6,0 @@ "contributors": [], |
@@ -5,3 +5,3 @@ // Load modules | ||
var Hapi = require('hapi'); | ||
var Crumb = process.env.TEST_COV ? require('../lib-cov') : require('../lib'); | ||
var Crumb = require('../lib'); | ||
@@ -21,13 +21,2 @@ | ||
// Wrapper is required for coverage | ||
var plugin = { | ||
name: 'crumb', | ||
version: Hapi.utils.loadPackage().version, | ||
hapi: { | ||
plugin: '1.x.x' | ||
}, | ||
register: Crumb.register | ||
}; | ||
it('returns view with crumb', function (done) { | ||
@@ -68,3 +57,2 @@ | ||
var pluginOptions = { | ||
@@ -81,3 +69,3 @@ permissions: { | ||
server.plugin().register(plugin, pluginOptions, function (err) { | ||
server.plugin().require('../', pluginOptions, function (err) { | ||
@@ -84,0 +72,0 @@ expect(err).to.not.exist; |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
1
54660
135