frameguard
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -30,3 +30,3 @@ var isString = require('lodash.isstring'); | ||
return function frameguard(req, res, next) { | ||
return function frameguard(req, res, next) { | ||
res.setHeader('X-Frame-Options', header); | ||
@@ -33,0 +33,0 @@ next(); |
@@ -8,3 +8,3 @@ { | ||
"description": "Middleware to set X-Frame-Options headers", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"keywords": [ | ||
@@ -33,4 +33,4 @@ "helmet", | ||
"dependencies": { | ||
"lodash.isstring": "3.0.0" | ||
"lodash.isstring": "3.0.1" | ||
} | ||
} |
@@ -7,15 +7,15 @@ var frameguard = require('..'); | ||
var hello = function (req, res) { | ||
res.end('Hello world!'); | ||
}; | ||
describe('frameguard', function () { | ||
var app; | ||
beforeEach(function () { | ||
app = connect(); | ||
}); | ||
describe('with proper input', function () { | ||
function hello(req, res) { | ||
res.end('Hello world!'); | ||
}; | ||
var app; | ||
beforeEach(function () { | ||
app = connect(); | ||
}); | ||
it('sets header to SAMEORIGIN with no arguments', function (done) { | ||
@@ -22,0 +22,0 @@ app.use(frameguard()).use(hello); |
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
9180
+ Addedlodash.isstring@3.0.1(transitive)
- Removedlodash.isstring@3.0.0(transitive)
Updatedlodash.isstring@3.0.1