@casl/angular
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -5,2 +5,9 @@ # Change Log | ||
# [@casl/angular-v2.1.1](https://github.com/stalniy/casl/compare/@casl/angular@2.1.0...@casl/angular@2.1.1) (2019-12-09) | ||
### Performance Improvements | ||
* **angular:** makes casl-angular much smaller by utilizing tslib.es6 ([093cefa](https://github.com/stalniy/casl/commit/093cefa2e26aa4b2cd9e733b0e77aaff1664dbcf)) | ||
# [@casl/angular-v2.1.0](https://github.com/stalniy/casl/compare/@casl/angular@2.0.0...@casl/angular@2.1.0) (2019-07-01) | ||
@@ -7,0 +14,0 @@ |
@@ -31,2 +31,5 @@ import { Pipe, ChangeDetectorRef, NgModule } from '@angular/core'; | ||
var __decorate$1 = __decorate; | ||
var __metadata$1 = __metadata; | ||
var noop = function noop() {}; | ||
@@ -70,8 +73,9 @@ | ||
CanPipe = __decorate([Pipe({ | ||
CanPipe = __decorate$1([Pipe({ | ||
name: 'can', | ||
pure: false | ||
}), __metadata("design:paramtypes", [Ability, ChangeDetectorRef])], CanPipe); | ||
}), __metadata$1("design:paramtypes", [Ability, ChangeDetectorRef])], CanPipe); | ||
var AbilityModule_1; | ||
var __decorate$2 = __decorate; | ||
function createAbility() { | ||
@@ -99,3 +103,3 @@ return new Ability([]); | ||
AbilityModule = AbilityModule_1 = __decorate([NgModule({ | ||
AbilityModule = AbilityModule_1 = __decorate$2([NgModule({ | ||
declarations: [CanPipe], | ||
@@ -102,0 +106,0 @@ exports: [CanPipe] |
@@ -29,2 +29,5 @@ import { Pipe, ChangeDetectorRef, NgModule } from '@angular/core'; | ||
const __decorate$1 = __decorate; | ||
const __metadata$1 = __metadata; | ||
const noop = () => {}; | ||
@@ -58,8 +61,9 @@ | ||
}; | ||
CanPipe = __decorate([Pipe({ | ||
CanPipe = __decorate$1([Pipe({ | ||
name: 'can', | ||
pure: false | ||
}), __metadata("design:paramtypes", [Ability, ChangeDetectorRef])], CanPipe); | ||
}), __metadata$1("design:paramtypes", [Ability, ChangeDetectorRef])], CanPipe); | ||
var AbilityModule_1; | ||
const __decorate$2 = __decorate; | ||
function createAbility() { | ||
@@ -80,3 +84,3 @@ return new Ability([]); | ||
}; | ||
AbilityModule = AbilityModule_1 = __decorate([NgModule({ | ||
AbilityModule = AbilityModule_1 = __decorate$2([NgModule({ | ||
declarations: [CanPipe], | ||
@@ -83,0 +87,0 @@ exports: [CanPipe] |
@@ -1,1 +0,1 @@ | ||
{"__symbolic":"module","version":4,"metadata":{"CanPipe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":6,"character":1},"arguments":[{"name":"can","pure":false}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@casl/ability","name":"Ability","line":10,"character":33},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":10,"character":56}]}],"transform":[{"__symbolic":"method"}],"can":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"createAbility":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@casl/ability","name":"Ability","line":5,"character":13},"arguments":[[]]}},"AbilityModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"CanPipe"}],"exports":[{"__symbolic":"reference","name":"CanPipe"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"AbilityModule"},"providers":[{"provide":{"__symbolic":"reference","module":"@casl/ability","name":"Ability","line":21,"character":19},"useFactory":{"__symbolic":"reference","name":"createAbility"}}]}}}}},"origins":{"CanPipe":"./can","createAbility":"./module","AbilityModule":"./module"},"importAs":"@casl/angular"} | ||
{"__symbolic":"module","version":4,"metadata":{"CanPipe":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Pipe","line":9,"character":1},"arguments":[{"name":"can","pure":false}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@casl/ability","name":"Ability","line":13,"character":33},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":13,"character":56}]}],"transform":[{"__symbolic":"method"}],"can":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}]}},"createAbility":{"__symbolic":"function","parameters":[],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@casl/ability","name":"Ability","line":9,"character":13},"arguments":[[]]}},"AbilityModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":12,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"CanPipe"}],"exports":[{"__symbolic":"reference","name":"CanPipe"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"AbilityModule"},"providers":[{"provide":{"__symbolic":"reference","module":"@casl/ability","name":"Ability","line":25,"character":19},"useFactory":{"__symbolic":"reference","name":"createAbility"}}]}}}}},"origins":{"CanPipe":"./can","createAbility":"./module","AbilityModule":"./module"},"importAs":"@casl/angular"} |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@casl/ability")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@casl/ability"],t):t(((e=e||self).casl=e.casl||{},e.casl.ng={}),e.ng.core,e.casl)}(this,function(e,t,i){"use strict";function n(e,t,i,n){var r,o=arguments.length,c=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,i,n);else for(var u=e.length-1;0<=u;u--)(r=e[u])&&(c=(o<3?r(c):3<o?r(t,i,c):r(t,i))||c);return 3<o&&c&&Object.defineProperty(t,i,c),c}function r(){}var o,c=r;function u(){return new i.Ability([])}e.CanPipe=function(){function e(e,t){this.ability=e,this.cd=t,this.unsubscribeFromAbility=r}var t=e.prototype;return t.transform=function(e,t,i){var n=this;return this.unsubscribeFromAbility===r&&(this.unsubscribeFromAbility=this.ability.on("updated",function(){return n.cd.markForCheck()})),this.can(t,e,i)},t.can=function(e,t,i){return this.ability.can(e,t,i)},t.ngOnDestroy=function(){this.unsubscribeFromAbility()},e}(),e.CanPipe=n([t.Pipe({name:"can",pure:!1}),function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}("design:paramtypes",[i.Ability,t.ChangeDetectorRef])],e.CanPipe),e.AbilityModule=o=function(){function e(){}return e.forRoot=function(){return{ngModule:o,providers:[{provide:i.Ability,useFactory:u}]}},e}(),e.AbilityModule=o=n([t.NgModule({declarations:[e.CanPipe],exports:[e.CanPipe]})],e.AbilityModule),e.createAbility=u,e.ɵ0=c,Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@casl/ability")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@casl/ability"],t):t(((e=e||self).casl=e.casl||{},e.casl.ng={}),e.ng.core,e.casl)}(this,function(e,t,i){"use strict";function n(e,t,i,n){var r,o=arguments.length,c=o<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,i):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,i,n);else for(var u=e.length-1;0<=u;u--)(r=e[u])&&(c=(o<3?r(c):3<o?r(t,i,c):r(t,i))||c);return 3<o&&c&&Object.defineProperty(t,i,c),c}function r(){}var o,c=n,u=function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=r;e.CanPipe=function(){function e(e,t){this.ability=e,this.cd=t,this.unsubscribeFromAbility=r}var t=e.prototype;return t.transform=function(e,t,i){var n=this;return this.unsubscribeFromAbility===r&&(this.unsubscribeFromAbility=this.ability.on("updated",function(){return n.cd.markForCheck()})),this.can(t,e,i)},t.can=function(e,t,i){return this.ability.can(e,t,i)},t.ngOnDestroy=function(){this.unsubscribeFromAbility()},e}(),e.CanPipe=c([t.Pipe({name:"can",pure:!1}),u("design:paramtypes",[i.Ability,t.ChangeDetectorRef])],e.CanPipe);var l=n;function f(){return new i.Ability([])}e.AbilityModule=o=function(){function e(){}return e.forRoot=function(){return{ngModule:o,providers:[{provide:i.Ability,useFactory:f}]}},e}(),e.AbilityModule=o=l([t.NgModule({declarations:[e.CanPipe],exports:[e.CanPipe]})],e.AbilityModule),e.createAbility=f,e.ɵ0=a,Object.defineProperty(e,"__esModule",{value:!0})}); |
{ | ||
"name": "@casl/angular", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Angular module for CASL which makes it easy to add permissions in any Angular application", | ||
@@ -49,3 +49,3 @@ "main": "dist/umd/index.js", | ||
"devDependencies": { | ||
"@abraham/reflection": "^0.5.1", | ||
"@abraham/reflection": "^0.7.0", | ||
"@angular/common": "^8.0.0", | ||
@@ -61,4 +61,4 @@ "@angular/compiler": "^8.0.0", | ||
"rxjs-compat": "^6.0.0", | ||
"zone.js": "^0.9.0" | ||
"zone.js": "^0.10.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23535
188