rbac-express-auth 1.0.2 → 1.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +18 -1
  2. package/package.json +10 -2
package/README.md CHANGED
@@ -20,7 +20,7 @@ npm install rbac-express-auth
20
20
  ```js
21
21
 
22
22
  import express from "express";
23
- import authorize from "rbac-express-auth";
23
+ import { authorize } from "rbac-express-auth";
24
24
 
25
25
  const app = express();
26
26
 
@@ -79,3 +79,20 @@ app.get("/vendor", authorize(["VENDOR"]), handler);
79
79
  - Always run authentication middleware before `authorize()`
80
80
  - Use constants or enums for role names
81
81
  - Avoid hardcoding roles inside controllers
82
+
83
+
84
+ ## Links
85
+
86
+ Github Repository
87
+
88
+ ```
89
+ https://github.com/akshaypunia0/RBAC-auth-npm-package
90
+
91
+ ```
92
+
93
+ npm Package
94
+
95
+ ```
96
+ https://www.npmjs.com/package/rbac-express-auth
97
+
98
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rbac-express-auth",
3
- "version": "1.0.2",
3
+ "version": "1.0.4",
4
4
  "description": "Lightweight RBAC middleware for Express.js",
5
5
  "main": "src/index.js",
6
6
  "keywords": [
@@ -15,5 +15,13 @@
15
15
  },
16
16
  "author": "Akshay Chaudhary",
17
17
  "license": "ISC",
18
- "type": "module"
18
+ "type": "module",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/akshaypunia0/RBAC-auth-npm-package"
22
+ },
23
+ "homepage": "https://github.com/akshaypunia0/RBAC-auth-npm-package#readme",
24
+ "bugs": {
25
+ "url": "https://github.com/akshaypunia0/RBAC-auth-npm-package/issues"
26
+ }
19
27
  }