Socket
Socket
Sign inDemoInstall

cansecurity

Package Overview
Dependencies
65
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.7.0 to 0.7.1

2

lib/declarative.js

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

// first check verb, then check route regexp match, then check params
async.each(routes[req.method.toLowerCase()], function (entry, callback) {
async.each(routes[req.method.toLowerCase()] || [], function (entry, callback) {
var useRule = false, path = typeof(req.path) === "function" ? req.path() : req.path,

@@ -98,0 +98,0 @@ checkCondition = function (condition, req, user, item) {

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

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

@@ -13,2 +13,5 @@ /*jslint node:true, nomen:true, unused:vars */

});
it('should allow non-declared method', function(done){
r.post("/foo").type('json').send({a:1}).expect(200,done);
});
describe('user in condition', function(){

@@ -15,0 +18,0 @@ it('should deny if user is not logged in', function(done){

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc