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

access-right

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

access-right - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

2

package.json

@@ -45,3 +45,3 @@ {

},
"version": "2.0.1"
"version": "2.0.2"
}

@@ -91,3 +91,10 @@ var uut = require('../');

});
it('test #3: work with multiple required rights and subrights', () => {
const has = ['a.b'];
const needs = ['a.a', 'a.b'];
const result = uut.isAllowed(has, needs);
expect(result).toBe(true);
});
});
});

@@ -35,5 +35,5 @@ var _CONST = {

has.forEach(function(right) {
right = escapeRegExp(right);
var regExp = new RegExp('^' + right + '(\\.[a-zA-Z0-9_\\.]*)*$');
requires.forEach(function(required) {
right = escapeRegExp(right);
var regExp = new RegExp('^' + right + '(\\.[a-zA-Z0-9_\\.]*)*$');
found = found || regExp.test(required);

@@ -40,0 +40,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