12.0.0 • Published 1 day ago

@edular/permissions v12.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 day ago

@edular/permissions

current npm version

Shared constants and utils for permissions handling in Edular project.

How to use the library

yarn add @edular/permissions

or

npm install --save @edular/permissions

Use it in the code:

import { Permissions } from '@edular/permissions'

// ...

const doesProfileHavePermissions = profilePermissions.includes(Permissions.Admissions.Students.View)

if (doesProfileHavePermissions){
    // do something
}

Permissions

The repository contains the permissions.ts file that exports Permissions object — all available permissions. The file is generated based on the permissions list from the main Edular database.

Scripts

  • build — building the library artifacts (lib/ directory)
  • build:clean — clean the build directory lib/
  • generate-permissions — generate permissions.ts with the Permissions object exported

How to publish new version

  1. Start the edular-core and run yarn generate-permissions to generate new permissions.ts.
  2. Commit the change and run npm version major|minor|patch -m "bump %s" to bump new version.
  3. Publish to npm registry by running yarn publish.
  4. Update the version in package.json manually or use npm for that:
npm version <major|minor|patch>
  1. Commit the changes and push them to the remote repository

  2. Publish new version to npm registry

npm publish
12.0.0

1 day ago

11.2.0

2 months ago

9.4.0

8 months ago

9.2.1

9 months ago

10.0.0

8 months ago

9.1.0

10 months ago

11.0.0

7 months ago

9.3.0

9 months ago

10.1.0

8 months ago

9.2.0

9 months ago

9.0.1

10 months ago

11.1.0

7 months ago

8.11.0

11 months ago

8.8.0

1 year ago

8.6.0

1 year ago

8.10.0

12 months ago

8.12.0

11 months ago

8.9.0

1 year ago

8.7.0

1 year ago

9.0.0

11 months ago

8.4.0

1 year ago

8.2.2

1 year ago

8.3.0

1 year ago

8.1.2

1 year ago

8.5.0

1 year ago

8.2.1

1 year ago

8.2.0

1 year ago

7.3.0

2 years ago

7.1.1

2 years ago

7.1.0

2 years ago

7.4.1

1 year ago

8.1.0

1 year ago

8.1.1

1 year ago

7.4.0

1 year ago

7.2.0

2 years ago

8.0.0

1 year ago

5.0.0

2 years ago

6.1.0

2 years ago

6.0.0

2 years ago

6.2.0

2 years ago

7.0.0

2 years ago

4.4.1

2 years ago

4.5.0

2 years ago

4.5.1

2 years ago

4.4.0

2 years ago

4.3.1

2 years ago

4.3.0

2 years ago

4.2.1

2 years ago

4.2.0

2 years ago

4.1.0

2 years ago

4.0.0

2 years ago

3.2.7

2 years ago

3.2.6

2 years ago

3.2.5

2 years ago

3.2.2

2 years ago

3.2.1

2 years ago

3.0.3

2 years ago

3.2.0

2 years ago

3.0.2

2 years ago

3.1.0

2 years ago

3.0.1

2 years ago

3.2.4

2 years ago

3.2.3

2 years ago

3.0.0

2 years ago

2.5.0

2 years ago

2.4.0

2 years ago

2.3.0

3 years ago

2.2.0

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago