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

frameguard

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

frameguard - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

2

index.js

@@ -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

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