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

cansecurity

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

cansecurity - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

1

lib/declarative.js

@@ -120,3 +120,2 @@ /*jslint node:true, nomen:true */

}
return(false);
}

@@ -123,0 +122,0 @@ }

2

package.json
{
"name": "cansecurity",
"description": "cansecurity is your all-in-one security library for user authentication, authorization and management in node expressjs apps",
"version": "0.6.1",
"version": "0.6.2",
"url": "http://github.com/deitch/cansecurity",

@@ -6,0 +6,0 @@ "author": "Avi Deitcher <avi@deitcher.net>",

@@ -11,6 +11,7 @@ {

["GET","/secure/parameter","deny","true === true"],
["GET","/secure/parameter",{"private":"true"},"deny","false === true"],
["GET","/secure/chainedParameter","deny","req.param('abc') === 'abc'"],
["GET","/secure/chainedParameter",{"private":"true"},"deny","false === true"],
["GET","/secure/chainedParameter","deny","req.param('abc') === 'abc'"],

@@ -17,0 +18,0 @@ ["GET","/secure/login",true,"deny","req.param('abc') === 'abc'"],

@@ -75,3 +75,3 @@ /*jslint node:true, nomen:true */

});
it('should implement rule if parameter is set', function(done){
it('should implement rule if parameter is set even if pass first rule', function(done){
r.get('/secure/parameter').query({"private":"true"}).expect(403,done);

@@ -78,0 +78,0 @@ });

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