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

@nebular/security

Package Overview
Dependencies
Maintainers
1
Versions
90
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 4.5.0 to 4.6.0

15

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

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

this.accessChecker = accessChecker;
this.alive = true;
this.destroy$ = new rxjs.Subject();
this.hasView = false;

@@ -222,3 +222,3 @@ }

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

@@ -239,3 +239,4 @@ if (can && !_this.hasView) {

NbIsGrantedDirective.prototype.ngOnDestroy = function () {
this.alive = false;
this.destroy$.next();
this.destroy$.complete();
};

@@ -242,0 +243,0 @@ __decorate$3([

@@ -7,3 +7,3 @@ import { OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';

private accessChecker;
private alive;
private destroy$;
private hasView;

@@ -10,0 +10,0 @@ constructor(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef, accessChecker: NbAccessChecker);

@@ -11,3 +11,4 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

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

@@ -19,3 +20,3 @@ let NbIsGrantedDirective = class NbIsGrantedDirective {

this.accessChecker = accessChecker;
this.alive = true;
this.destroy$ = new Subject();
this.hasView = false;

@@ -25,3 +26,3 @@ }

this.accessChecker.isGranted(permission, resource)
.pipe(takeWhile(() => this.alive))
.pipe(takeUntil(this.destroy$))
.subscribe((can) => {

@@ -39,3 +40,4 @@ if (can && !this.hasView) {

ngOnDestroy() {
this.alive = false;
this.destroy$.next();
this.destroy$.complete();
}

@@ -42,0 +44,0 @@ };

@@ -11,3 +11,4 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

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

@@ -19,3 +20,3 @@ var NbIsGrantedDirective = /** @class */ (function () {

this.accessChecker = accessChecker;
this.alive = true;
this.destroy$ = new Subject();
this.hasView = false;

@@ -28,3 +29,3 @@ }

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

@@ -45,3 +46,4 @@ if (can && !_this.hasView) {

NbIsGrantedDirective.prototype.ngOnDestroy = function () {
this.alive = false;
this.destroy$.next();
this.destroy$.complete();
};

@@ -48,0 +50,0 @@ __decorate([

import { Directive, Inject, Injectable, InjectionToken, Input, NgModule, Optional, TemplateRef, ViewContainerRef } from '@angular/core';
import { CommonModule } from '@angular/common';
import { map, takeWhile } from 'rxjs/operators';
import { map, takeUntil } from 'rxjs/operators';
import { Subject } from 'rxjs';

@@ -199,3 +200,3 @@ const NB_SECURITY_OPTIONS_TOKEN = new InjectionToken('Nebular Security Options');

this.accessChecker = accessChecker;
this.alive = true;
this.destroy$ = new Subject();
this.hasView = false;

@@ -205,3 +206,3 @@ }

this.accessChecker.isGranted(permission, resource)
.pipe(takeWhile(() => this.alive))
.pipe(takeUntil(this.destroy$))
.subscribe((can) => {

@@ -219,3 +220,4 @@ if (can && !this.hasView) {

ngOnDestroy() {
this.alive = false;
this.destroy$.next();
this.destroy$.complete();
}

@@ -222,0 +224,0 @@ };

import { Directive, Inject, Injectable, InjectionToken, Input, NgModule, Optional, TemplateRef, ViewContainerRef } from '@angular/core';
import { CommonModule } from '@angular/common';
import { map, takeWhile } from 'rxjs/operators';
import { map, takeUntil } from 'rxjs/operators';
import { Subject } from 'rxjs';

@@ -211,3 +212,3 @@ var NB_SECURITY_OPTIONS_TOKEN = new InjectionToken('Nebular Security Options');

this.accessChecker = accessChecker;
this.alive = true;
this.destroy$ = new Subject();
this.hasView = false;

@@ -220,3 +221,3 @@ }

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

@@ -237,3 +238,4 @@ if (can && !_this.hasView) {

NbIsGrantedDirective.prototype.ngOnDestroy = function () {
this.alive = false;
this.destroy$.next();
this.destroy$.complete();
};

@@ -240,0 +242,0 @@ __decorate$3([

@@ -1,1 +0,1 @@

{"__symbolic":"module","version":4,"metadata":{"NbAclRole":{"__symbolic":"interface"},"NbAccessControl":{"__symbolic":"interface"},"NbAclOptions":{"__symbolic":"interface"},"NB_SECURITY_OPTIONS_TOKEN":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":15,"character":45},"arguments":["Nebular Security Options"]},"NbSecurityModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":10,"character":4}],"declarations":[{"__symbolic":"reference","name":"NbIsGrantedDirective"}],"exports":[{"__symbolic":"reference","name":"NbIsGrantedDirective"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["nbSecurityOptions"],"value":{"ngModule":{"__symbolic":"reference","name":"NbSecurityModule"},"providers":[{"provide":{"__symbolic":"reference","name":"NB_SECURITY_OPTIONS_TOKEN"},"useValue":{"__symbolic":"reference","name":"nbSecurityOptions"}},{"__symbolic":"reference","name":"NbAclService"},{"__symbolic":"reference","name":"NbAccessChecker"}],"exports":[{"__symbolic":"reference","name":"NbIsGrantedDirective"}]}}}},"NbAclService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":19,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":26,"character":15}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":26,"character":27},"arguments":[{"__symbolic":"reference","name":"NB_SECURITY_OPTIONS_TOKEN"}]}]],"parameters":[{"__symbolic":"reference","name":"NbAclOptions"}]}],"setAccessControl":[{"__symbolic":"method"}],"register":[{"__symbolic":"method"}],"allow":[{"__symbolic":"method"}],"can":[{"__symbolic":"method"}],"getRole":[{"__symbolic":"method"}],"validateRole":[{"__symbolic":"method"}],"validateResource":[{"__symbolic":"method"}],"exactCan":[{"__symbolic":"method"}],"getRoleResources":[{"__symbolic":"method"}],"getRoleAbilities":[{"__symbolic":"method"}],"getRoleParent":[{"__symbolic":"method"}]},"statics":{"ANY_RESOURCE":"*"}},"NbAccessChecker":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":16,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"NbRoleProvider"},{"__symbolic":"reference","name":"NbAclService"}]}],"isGranted":[{"__symbolic":"method"}]}},"NbRoleProvider":{"__symbolic":"class","members":{"getRole":[{"__symbolic":"method"}]}},"NbIsGrantedDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":5,"character":1},"arguments":[{"selector":"[nbIsGranted]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":12,"character":37},{"__symbolic":"reference","name":"NbAccessChecker"}]}],"nbIsGranted":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":3}}]}],"ngOnDestroy":[{"__symbolic":"method"}]}}},"origins":{"NbAclRole":"./security.options","NbAccessControl":"./security.options","NbAclOptions":"./security.options","NB_SECURITY_OPTIONS_TOKEN":"./security.options","NbSecurityModule":"./security.module","NbAclService":"./services/acl.service","NbAccessChecker":"./services/access-checker.service","NbRoleProvider":"./services/role.provider","NbIsGrantedDirective":"./directives/is-granted.directive"},"importAs":"@nebular/security"}
{"__symbolic":"module","version":4,"metadata":{"NbAclRole":{"__symbolic":"interface"},"NbAccessControl":{"__symbolic":"interface"},"NbAclOptions":{"__symbolic":"interface"},"NB_SECURITY_OPTIONS_TOKEN":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken","line":15,"character":45},"arguments":["Nebular Security Options"]},"NbSecurityModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":10,"character":4}],"declarations":[{"__symbolic":"reference","name":"NbIsGrantedDirective"}],"exports":[{"__symbolic":"reference","name":"NbIsGrantedDirective"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["nbSecurityOptions"],"value":{"ngModule":{"__symbolic":"reference","name":"NbSecurityModule"},"providers":[{"provide":{"__symbolic":"reference","name":"NB_SECURITY_OPTIONS_TOKEN"},"useValue":{"__symbolic":"reference","name":"nbSecurityOptions"}},{"__symbolic":"reference","name":"NbAclService"},{"__symbolic":"reference","name":"NbAccessChecker"}],"exports":[{"__symbolic":"reference","name":"NbIsGrantedDirective"}]}}}},"NbAclService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":19,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":26,"character":15}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject","line":26,"character":27},"arguments":[{"__symbolic":"reference","name":"NB_SECURITY_OPTIONS_TOKEN"}]}]],"parameters":[{"__symbolic":"reference","name":"NbAclOptions"}]}],"setAccessControl":[{"__symbolic":"method"}],"register":[{"__symbolic":"method"}],"allow":[{"__symbolic":"method"}],"can":[{"__symbolic":"method"}],"getRole":[{"__symbolic":"method"}],"validateRole":[{"__symbolic":"method"}],"validateResource":[{"__symbolic":"method"}],"exactCan":[{"__symbolic":"method"}],"getRoleResources":[{"__symbolic":"method"}],"getRoleAbilities":[{"__symbolic":"method"}],"getRoleParent":[{"__symbolic":"method"}]},"statics":{"ANY_RESOURCE":"*"}},"NbAccessChecker":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":16,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"NbRoleProvider"},{"__symbolic":"reference","name":"NbAclService"}]}],"isGranted":[{"__symbolic":"method"}]}},"NbRoleProvider":{"__symbolic":"class","members":{"getRole":[{"__symbolic":"method"}]}},"NbIsGrantedDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":6,"character":1},"arguments":[{"selector":"[nbIsGranted]"}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"TemplateRef","module":"@angular/core","arguments":[{"__symbolic":"reference","name":"any"}]},{"__symbolic":"reference","module":"@angular/core","name":"ViewContainerRef","line":14,"character":37},{"__symbolic":"reference","name":"NbAccessChecker"}]}],"nbIsGranted":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":3}}]}],"ngOnDestroy":[{"__symbolic":"method"}]}}},"origins":{"NbAclRole":"./security.options","NbAccessControl":"./security.options","NbAclOptions":"./security.options","NB_SECURITY_OPTIONS_TOKEN":"./security.options","NbSecurityModule":"./security.module","NbAclService":"./services/acl.service","NbAccessChecker":"./services/access-checker.service","NbRoleProvider":"./services/role.provider","NbIsGrantedDirective":"./directives/is-granted.directive"},"importAs":"@nebular/security"}
{
"name": "@nebular/security",
"version": "4.5.0",
"version": "4.6.0",
"description": "@nebular/security",

@@ -5,0 +5,0 @@ "author": "akveo",

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