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

accesscontrol-re

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

accesscontrol-re - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

2

build/src/accesscontrol-re.js

@@ -27,3 +27,3 @@ "use strict";

const accessInfo = Object.assign({}, ai, { possession: actionPossession || ai.possession || 'any', action: actionToGrant, resource: resourceToGrant, role: rolesToGrant });
ac.grant(accessInfo);
accessInfo.denied ? ac.deny(accessInfo) : ac.grant(accessInfo);
}

@@ -30,0 +30,0 @@ }

{
"name": "accesscontrol-re",
"version": "0.2.0",
"version": "0.2.1",
"main": "./build/src/index.js",

@@ -5,0 +5,0 @@ "scripts": {

@@ -35,3 +35,7 @@ # Access Control Re

You can of course use any combination, even `'*'` for *permit all* :-)
You can of course use any combination, even `'*'` for *permit all* :-)
- Solving various smaller issues and bugs:
- Not respecting `denied: true` of `IAccessInfo` in `AccessControl.grant` - https://github.com/onury/accesscontrol/issues/67

@@ -52,3 +56,3 @@ ## How to use

addAccessInfo(accessInfos); // also accepts a single accessInfo
addAccessInfo(accessInfos); // also accepts a single IAccessInfo
const ac: AccessControl = build(); // @note: can call only `_.once`!

@@ -55,0 +59,0 @@

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