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

@casl/angular

Package Overview
Dependencies
Maintainers
1
Versions
53
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 0.3.0 to 0.3.1

dist/es5m/index.js

9

CHANGELOG.md
# Change Log
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
<a name="@casl/angular-v0.3.1"></a>
# [@casl/angular-v0.3.1](https://github.com/stalniy/casl/compare/@casl/angular@0.3.0...@casl/angular@0.3.1) (2018-07-02)
### Bug Fixes
* **package:** changes location of ES5M modules ([2b1ad4e](https://github.com/stalniy/casl/commit/2b1ad4e)), closes [#89](https://github.com/stalniy/casl/issues/89)
<a name="0.3.0"></a>

@@ -7,0 +14,0 @@ # 0.3.0 (2018-05-14)

2

dist/umd/index.js

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

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports,require("@angular/core"),require("@casl/ability")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@casl/ability"],n):n((e.casl=e.casl||{},e.casl.ng={}),e.ng.core,e.casl)}(this,function(e,n,i){"use strict";var t=function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")},r=function(){function e(e,n){for(var i=0;i<n.length;i++){var t=n[i];t.enumerable=t.enumerable||!1,t.configurable=!0,"value"in t&&(t.writable=!0),Object.defineProperty(e,t.key,t)}}return function(n,i,t){return i&&e(n.prototype,i),t&&e(n,t),n}}(),a=function(){},o=function(){function e(n,i){t(this,e),this.ability=n,this.cd=i,this.unsubscribeFromAbility=a}return r(e,[{key:"transform",value:function(e,n,i){var t=this;return this.unsubscribeFromAbility===a&&(this.unsubscribeFromAbility=this.ability.on("updated",function(){return t.cd.markForCheck()})),this.can(n,e,i)}},{key:"can",value:function(){var e;return(e=this.ability).can.apply(e,arguments)}},{key:"ngOnDestroy",value:function(){this.unsubscribeFromAbility()}}]),e}();o.parameters=[[i.Ability],[n.ChangeDetectorRef]],o.annotations=[new n.Pipe({name:"can",pure:!1})];var u=function e(){t(this,e)};u.annotations=[new n.NgModule({declarations:[o],exports:[o],providers:[{provide:i.Ability,useValue:new i.Ability([])}]})],e.CanPipe=o,e.AbilityModule=u,Object.defineProperty(e,"__esModule",{value:!0})});
!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?i(exports,require("@angular/core"),require("@casl/ability")):"function"==typeof define&&define.amd?define(["exports","@angular/core","@casl/ability"],i):i((t.casl=t.casl||{},t.casl.ng={}),t.ng.core,t.casl)}(this,function(t,i,n){"use strict";var e=function(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")},r=function(){},o=function(){function n(t,i){e(this,n),this.ability=t,this.cd=i,this.unsubscribeFromAbility=r}return n.prototype.transform=function(t,i,n){var e=this;return this.unsubscribeFromAbility===r&&(this.unsubscribeFromAbility=this.ability.on("updated",function(){return e.cd.markForCheck()})),this.can(i,t,n)},n.prototype.can=function(){var t;return(t=this.ability).can.apply(t,arguments)},n.prototype.ngOnDestroy=function(){this.unsubscribeFromAbility()},n}();o.parameters=[[n.Ability],[i.ChangeDetectorRef]],o.annotations=[new i.Pipe({name:"can",pure:!1})];var a=function t(){e(this,t)};a.annotations=[new i.NgModule({declarations:[o],exports:[o],providers:[{provide:n.Ability,useValue:new n.Ability([])}]})],t.CanPipe=o,t.AbilityModule=a,Object.defineProperty(t,"__esModule",{value:!0})});
{
"name": "@casl/angular",
"version": "0.3.0",
"version": "0.3.1",
"description": "Angular module for CASL which makes it easy to add permissions in any Angular application",
"main": "dist/umd/index.js",
"module": "index.js",
"module": "dist/es5m/index.js",
"es2015": "dist/es6/index.js",
"repository": {
"type": "git",
"url": "git@github.com:stalniy/casl.git"
"url": "https://github.com/stalniy/casl.git"
},

@@ -20,3 +20,6 @@ "publishConfig": {

"build.es5m": "npm run rollup -- -c ../../tools/rollup.es5m.js",
"build": "npm run build.es && npm run build.umd && npm run build.es5m"
"build": "npm run build.es && npm run build.umd && npm run build.es5m",
"test": "NODE_ENV=test jest --config ../../tools/jest.config.js",
"prerelease": "npm test && NODE_ENV=production npm run build",
"release": "semantic-release -e semantic-release-monorepo -e ../../tools/semantic-release"
},

@@ -36,3 +39,3 @@ "keywords": [

"engines": {
"npm": "^3.0.0"
"npm": "^6.0.0"
},

@@ -39,0 +42,0 @@ "peerDependencies": {

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