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.7 to 2.0.0-rc.8

directives/is-granted.directive.ngfactory.js.map

14

bundles/security.umd.js
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('rxjs/operators/map'), require('rxjs/operators/takeWhile')) :
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common', 'rxjs/operators/map', 'rxjs/operators/takeWhile'], factory) :
(factory((global.nb = global.nb || {}, global.nb.security = global.nb.security || {}),global.ng.core,global.ng.common,global.Rx.operators,global.Rx.operators));
}(this, (function (exports,_angular_core,_angular_common,rxjs_operators_map,rxjs_operators_takeWhile) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('rxjs/operators')) :
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@angular/common', 'rxjs/operators'], factory) :
(factory((global.nb = global.nb || {}, global.nb.security = global.nb.security || {}),global.ng.core,global.ng.common,global.Rx.operators));
}(this, (function (exports,_angular_core,_angular_common,rxjs_operators) { 'use strict';

@@ -217,3 +217,3 @@ var NB_SECURITY_OPTIONS_TOKEN = new _angular_core.InjectionToken('Nebular Security Options');

return this.roleProvider.getRole()
.pipe(rxjs_operators_map.map(function (role) {
.pipe(rxjs_operators.map(function (role) {
return _this.acl.can(role, permission, resource);

@@ -246,3 +246,3 @@ }));

this.accessChecker.isGranted(permission, resource)
.pipe(rxjs_operators_takeWhile.takeWhile(function () { return _this.alive; }))
.pipe(rxjs_operators.takeWhile(function () { return _this.alive; }))
.subscribe(function (can) {

@@ -309,4 +309,2 @@ if (can && !_this.hasView) {

];
/** @nocollapse */
NbSecurityModule.ctorParameters = function () { return []; };
return NbSecurityModule;

@@ -313,0 +311,0 @@ }());

import { Directive, Input, TemplateRef, ViewContainerRef } from '@angular/core';
import { takeWhile } from 'rxjs/operators/takeWhile';
import { takeWhile } from 'rxjs/operators';
import { NbAccessChecker } from '../services/access-checker.service';

@@ -4,0 +4,0 @@ var NbIsGrantedDirective = /** @class */ (function () {

{
"name": "@nebular/security",
"version": "2.0.0-rc.7",
"version": "2.0.0-rc.8",
"description": "@nebular/security",

@@ -32,7 +32,7 @@ "main": "./bundles/security.umd.js",

"peerDependencies": {
"@angular/common": "^5.1.0",
"@angular/core": "^5.1.0",
"@angular/router": "^5.1.0",
"@angular/common": "^6.0.0",
"@angular/core": "^6.0.0",
"@angular/router": "^6.0.0",
"rxjs": "~5.5.5"
}
}

@@ -36,4 +36,2 @@ import { NgModule } from '@angular/core';

];
/** @nocollapse */
NbSecurityModule.ctorParameters = function () { return []; };
return NbSecurityModule;

@@ -40,0 +38,0 @@ }());

import { NbRoleProvider } from './role.provider';
import { NbAclService } from './acl.service';
import { Observable } from 'rxjs/Observable';
import { Observable } from 'rxjs';
/**

@@ -5,0 +5,0 @@ * Access checker service.

import { Injectable } from '@angular/core';
import { NbRoleProvider } from './role.provider';
import { NbAclService } from './acl.service';
import { map } from 'rxjs/operators/map';
import { map } from 'rxjs/operators';
/**

@@ -6,0 +6,0 @@ * Access checker service.

@@ -6,5 +6,5 @@ /**

*/
import { Observable } from 'rxjs/Observable';
import { Observable } from 'rxjs';
export declare abstract class NbRoleProvider {
abstract getRole(): Observable<string>;
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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