Socket
Socket
Sign inDemoInstall

@nebular/security

Package Overview
Dependencies
Maintainers
1
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nebular/security - npm Package Compare versions

Comparing version 2.0.0-rc.9 to 2.0.0-rc.10

4

bundles/security.umd.js

@@ -217,4 +217,4 @@ (function (global, factory) {

return this.roleProvider.getRole()
.pipe(rxjs_operators.map(function (role) {
return _this.acl.can(role, permission, resource);
.pipe(rxjs_operators.map(function (role) { return Array.isArray(role) ? role : [role]; }), rxjs_operators.map(function (roles) {
return roles.some(function (role) { return _this.acl.can(role, permission, resource); });
}));

@@ -221,0 +221,0 @@ };

{
"name": "@nebular/security",
"version": "2.0.0-rc.9",
"version": "2.0.0-rc.10",
"description": "@nebular/security",

@@ -35,4 +35,4 @@ "main": "./bundles/security.umd.js",

"@angular/router": "^6.0.0",
"rxjs": "~5.5.5"
"rxjs": "^6.1.0"
}
}

@@ -39,4 +39,4 @@ import { Injectable } from '@angular/core';

return this.roleProvider.getRole()
.pipe(map(function (role) {
return _this.acl.can(role, permission, resource);
.pipe(map(function (role) { return Array.isArray(role) ? role : [role]; }), map(function (roles) {
return roles.some(function (role) { return _this.acl.can(role, permission, resource); });
}));

@@ -43,0 +43,0 @@ };

@@ -8,3 +8,7 @@ /**

export declare abstract class NbRoleProvider {
abstract getRole(): Observable<string>;
/**
* Returns current user role
* @returns {Observable<string | string[]>}
*/
abstract getRole(): Observable<string | string[]>;
}

Sorry, the diff of this file is not supported yet

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