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

resource-access-list

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

resource-access-list - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

7

dist/index.js

@@ -36,2 +36,3 @@ 'use strict';

this.memberField = opts.memberField || 'teamId';
this.notAllowStatusCode = opts.notAllowStatusCode || 401;
acl = this;

@@ -116,3 +117,3 @@ }

if (Object.keys(acl.rules).length === 0) {
return next((0, _httpErrors2.default)(401));
return next((0, _httpErrors2.default)(acl.notAllowStatusCode));
}

@@ -186,3 +187,3 @@ if (req && req.user && req.user.roles) {

} else {
return next((0, _httpErrors2.default)(401));
return next((0, _httpErrors2.default)(acl.notAllowStatusCode));
}

@@ -193,3 +194,3 @@ }).catch(function (err) {

} else {
return next((0, _httpErrors2.default)(401));
return next((0, _httpErrors2.default)(acl.notAllowStatusCode));
}

@@ -196,0 +197,0 @@ }

{
"name": "resource-access-list",
"version": "0.1.1",
"version": "0.1.2",
"description": "This is a awesome project",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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