New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@casl/angular

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@casl/angular - npm Package Compare versions

Comparing version 4.1.5 to 4.1.6

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Change Log

## [4.1.6](https://github.com/stalniy/casl/compare/@casl/angular@4.1.5...@casl/angular@4.1.6) (2020-10-21)
### Bug Fixes
* **README:** adds semi-colon ([cad1daa](https://github.com/stalniy/casl/commit/cad1daaabf8a7ad45d5736394d3ba3dc42207614))
## [4.1.5](https://github.com/stalniy/casl/compare/@casl/angular@4.1.4...@casl/angular@4.1.5) (2020-09-03)

@@ -7,0 +14,0 @@

64

dist/es5m/index.js

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

import { __decorate, __param, __metadata } from 'tslib';
import { Pipe, Inject, ChangeDetectorRef, NgModule } from '@angular/core';

@@ -40,7 +39,9 @@ import { PureAbility } from '@casl/ability';

};
CanPipe = __decorate([
Pipe({ name: 'can', pure: false }),
__param(0, Inject(PureAbility)),
__metadata("design:paramtypes", [Object, ChangeDetectorRef])
], CanPipe);
CanPipe.decorators = [
{ type: Pipe, args: [{ name: 'can', pure: false },] }
];
CanPipe.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: Inject, args: [PureAbility,] }] },
{ type: ChangeDetectorRef }
]; };
return CanPipe;

@@ -63,7 +64,9 @@ }());

};
AblePipe = __decorate([
Pipe({ name: 'able', pure: false }),
__param(0, Inject(PureAbility)),
__metadata("design:paramtypes", [Object, ChangeDetectorRef])
], AblePipe);
AblePipe.decorators = [
{ type: Pipe, args: [{ name: 'able', pure: false },] }
];
AblePipe.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: Inject, args: [PureAbility,] }] },
{ type: ChangeDetectorRef }
]; };
return AblePipe;

@@ -91,7 +94,8 @@ }());

};
AblePurePipe = __decorate([
Pipe({ name: 'ablePure' }),
__param(0, Inject(PureAbility)),
__metadata("design:paramtypes", [Object])
], AblePurePipe);
AblePurePipe.decorators = [
{ type: Pipe, args: [{ name: 'ablePure' },] }
];
AblePurePipe.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: Inject, args: [PureAbility,] }] }
]; };
return AblePurePipe;

@@ -103,16 +107,16 @@ }());

}
AbilityModule = __decorate([
NgModule({
declarations: [
CanPipe,
AblePipe,
AblePurePipe,
],
exports: [
CanPipe,
AblePipe,
AblePurePipe,
],
})
], AbilityModule);
AbilityModule.decorators = [
{ type: NgModule, args: [{
declarations: [
CanPipe,
AblePipe,
AblePurePipe,
],
exports: [
CanPipe,
AblePipe,
AblePurePipe,
],
},] }
];
return AbilityModule;

@@ -119,0 +123,0 @@ }());

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

import { __decorate, __param, __metadata } from 'tslib';
import { Pipe, Inject, ChangeDetectorRef, NgModule } from '@angular/core';

@@ -23,3 +22,3 @@ import { PureAbility } from '@casl/ability';

}
let CanPipe = class CanPipe {
class CanPipe {
constructor(ability, cd) {

@@ -34,9 +33,11 @@ this.pipe = new AbilityPipe(ability, cd);

}
};
CanPipe = __decorate([
Pipe({ name: 'can', pure: false }),
__param(0, Inject(PureAbility)),
__metadata("design:paramtypes", [Object, ChangeDetectorRef])
], CanPipe);
let AblePipe = class AblePipe {
}
CanPipe.decorators = [
{ type: Pipe, args: [{ name: 'can', pure: false },] }
];
CanPipe.ctorParameters = () => [
{ type: undefined, decorators: [{ type: Inject, args: [PureAbility,] }] },
{ type: ChangeDetectorRef }
];
class AblePipe {
constructor(ability, cd) {

@@ -51,9 +52,11 @@ this.pipe = new AbilityPipe(ability, cd);

}
};
AblePipe = __decorate([
Pipe({ name: 'able', pure: false }),
__param(0, Inject(PureAbility)),
__metadata("design:paramtypes", [Object, ChangeDetectorRef])
], AblePipe);
let AblePurePipe = class AblePurePipe {
}
AblePipe.decorators = [
{ type: Pipe, args: [{ name: 'able', pure: false },] }
];
AblePipe.ctorParameters = () => [
{ type: undefined, decorators: [{ type: Inject, args: [PureAbility,] }] },
{ type: ChangeDetectorRef }
];
class AblePurePipe {
constructor(ability) {

@@ -70,27 +73,28 @@ this._ability = ability;

}
};
AblePurePipe = __decorate([
Pipe({ name: 'ablePure' }),
__param(0, Inject(PureAbility)),
__metadata("design:paramtypes", [Object])
], AblePurePipe);
}
AblePurePipe.decorators = [
{ type: Pipe, args: [{ name: 'ablePure' },] }
];
AblePurePipe.ctorParameters = () => [
{ type: undefined, decorators: [{ type: Inject, args: [PureAbility,] }] }
];
let AbilityModule = class AbilityModule {
};
AbilityModule = __decorate([
NgModule({
declarations: [
CanPipe,
AblePipe,
AblePurePipe,
],
exports: [
CanPipe,
AblePipe,
AblePurePipe,
],
})
], AbilityModule);
class AbilityModule {
}
AbilityModule.decorators = [
{ type: NgModule, args: [{
declarations: [
CanPipe,
AblePipe,
AblePurePipe,
],
exports: [
CanPipe,
AblePipe,
AblePurePipe,
],
},] }
];
export { AbilityModule, AblePipe, AblePurePipe, CanPipe };
//# sourceMappingURL=index.js.map
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('tslib'), require('@angular/core'), require('@casl/ability'), require('rxjs')) :
typeof define === 'function' && define.amd ? define(['exports', 'tslib', '@angular/core', '@casl/ability', 'rxjs'], factory) :
(global = global || self, factory((global.casl = global.casl || {}, global.casl.ng = {}), global.tslib, global.ng.core, global.casl, global.rxjs));
}(this, (function (exports, tslib, core, ability, rxjs) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@casl/ability'), require('rxjs')) :
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', '@casl/ability', 'rxjs'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.casl = global.casl || {}, global.casl.ng = {}), global.ng.core, global.casl, global.rxjs));
}(this, (function (exports, core, ability, rxjs) { 'use strict';

@@ -41,7 +41,9 @@ var AbilityPipe = /** @class */ (function () {

};
CanPipe = tslib.__decorate([
core.Pipe({ name: 'can', pure: false }),
tslib.__param(0, core.Inject(ability.PureAbility)),
tslib.__metadata("design:paramtypes", [Object, core.ChangeDetectorRef])
], CanPipe);
CanPipe.decorators = [
{ type: core.Pipe, args: [{ name: 'can', pure: false },] }
];
CanPipe.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: core.Inject, args: [ability.PureAbility,] }] },
{ type: core.ChangeDetectorRef }
]; };
return CanPipe;

@@ -64,7 +66,9 @@ }());

};
AblePipe = tslib.__decorate([
core.Pipe({ name: 'able', pure: false }),
tslib.__param(0, core.Inject(ability.PureAbility)),
tslib.__metadata("design:paramtypes", [Object, core.ChangeDetectorRef])
], AblePipe);
AblePipe.decorators = [
{ type: core.Pipe, args: [{ name: 'able', pure: false },] }
];
AblePipe.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: core.Inject, args: [ability.PureAbility,] }] },
{ type: core.ChangeDetectorRef }
]; };
return AblePipe;

@@ -92,7 +96,8 @@ }());

};
AblePurePipe = tslib.__decorate([
core.Pipe({ name: 'ablePure' }),
tslib.__param(0, core.Inject(ability.PureAbility)),
tslib.__metadata("design:paramtypes", [Object])
], AblePurePipe);
AblePurePipe.decorators = [
{ type: core.Pipe, args: [{ name: 'ablePure' },] }
];
AblePurePipe.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: core.Inject, args: [ability.PureAbility,] }] }
]; };
return AblePurePipe;

@@ -104,16 +109,16 @@ }());

}
AbilityModule = tslib.__decorate([
core.NgModule({
declarations: [
CanPipe,
AblePipe,
AblePurePipe,
],
exports: [
CanPipe,
AblePipe,
AblePurePipe,
],
})
], AbilityModule);
AbilityModule.decorators = [
{ type: core.NgModule, args: [{
declarations: [
CanPipe,
AblePipe,
AblePurePipe,
],
exports: [
CanPipe,
AblePipe,
AblePurePipe,
],
},] }
];
return AbilityModule;

@@ -120,0 +125,0 @@ }());

{
"name": "@casl/angular",
"version": "4.1.5",
"version": "4.1.6",
"description": "Angular module for CASL which makes it easy to add permissions in any Angular app",

@@ -46,3 +46,3 @@ "main": "dist/umd/index.js",

"peerDependencies": {
"@angular/core": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0",
"@angular/core": "^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0",
"@casl/ability": "^2.0.0 || ^3.0.0 || ^4.0.0",

@@ -54,8 +54,8 @@ "rxjs": "^6.0.0",

"@abraham/reflection": "^0.7.0",
"@angular/common": "^9.0.0",
"@angular/compiler": "^9.0.0",
"@angular/compiler-cli": "^9.0.0",
"@angular/core": "^9.0.0",
"@angular/platform-browser": "^9.0.0",
"@angular/platform-browser-dynamic": "^9.0.0",
"@angular/common": "^10.0.0",
"@angular/compiler": "^10.0.0",
"@angular/compiler-cli": "^10.0.0",
"@angular/core": "^10.0.0",
"@angular/platform-browser": "^10.0.0",
"@angular/platform-browser-dynamic": "^10.0.0",
"@babel/core": "^7.8.4",

@@ -73,3 +73,3 @@ "@babel/plugin-proposal-class-properties": "^7.8.3",

"@semantic-release/npm": "^7.0.5",
"@typescript-eslint/eslint-plugin": "3.10.1",
"@typescript-eslint/eslint-plugin": "4.5.0",
"babel-jest": "^26.0.0",

@@ -80,3 +80,3 @@ "chai": "^4.1.0",

"eslint-config-airbnb-base": "^14.1.0",
"eslint-config-airbnb-typescript": "^9.0.0",
"eslint-config-airbnb-typescript": "^12.0.0",
"eslint-plugin-import": "^2.20.2",

@@ -91,3 +91,3 @@ "jest": "^26.0.0",

"tslib": "^2.0.0",
"typescript": "~3.8.0",
"typescript": "~4.0.3",
"zone.js": "^0.10.2"

@@ -94,0 +94,0 @@ },

@@ -208,3 +208,3 @@ # CASL Angular

type Actions = 'create' | 'read' | 'update' | 'delete';
type Subjects = 'Article' | 'User'
type Subjects = 'Article' | 'User';

@@ -211,0 +211,0 @@ export type AppAbility = Ability<[Actions, Subjects]>;

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