@lazy-sol/access-control-upgradeable 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +4 -0
- package/package.json +6 -6
- package/test/include/rbac.behaviour.js +2 -1
package/index.js
CHANGED
@@ -9,6 +9,9 @@ const {
|
|
9
9
|
not,
|
10
10
|
} = require("./scripts/include/features_roles");
|
11
11
|
|
12
|
+
// RBAC behaviours
|
13
|
+
const {behavesLikeRBAC} = require("./test/include/rbac.behaviour");
|
14
|
+
|
12
15
|
// Re-export the functions
|
13
16
|
module.exports = {
|
14
17
|
ROLE_ACCESS_MANAGER,
|
@@ -16,4 +19,5 @@ module.exports = {
|
|
16
19
|
FULL_PRIVILEGES_MASK,
|
17
20
|
or,
|
18
21
|
not,
|
22
|
+
behavesLikeRBAC,
|
19
23
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@lazy-sol/access-control-upgradeable",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.7",
|
4
4
|
"description": "Enable the modular plug and play (PnP) architecture for your dapp by incorporating the role-based access control (RBAC) into the smart contracts",
|
5
5
|
"main": "index.js",
|
6
6
|
"scripts": {
|
@@ -11,7 +11,7 @@
|
|
11
11
|
"deploy": "hardhat deploy"
|
12
12
|
},
|
13
13
|
"engines": {
|
14
|
-
"node": ">=
|
14
|
+
"node": ">=18.0.0"
|
15
15
|
},
|
16
16
|
"keywords": [
|
17
17
|
"RBAC",
|
@@ -25,12 +25,11 @@
|
|
25
25
|
"@lazy-sol/a-missing-gem": "^1.0.9",
|
26
26
|
"@nomiclabs/hardhat-truffle5": "^2.0.7",
|
27
27
|
"@openzeppelin/contracts-upgradeable": "^4.9.6",
|
28
|
-
"
|
29
|
-
"hardhat": "^2.22.6",
|
28
|
+
"hardhat": "^2.22.7",
|
30
29
|
"hardhat-deploy": "^0.11.45"
|
31
30
|
},
|
32
31
|
"devDependencies": {
|
33
|
-
"@lazy-sol/zeppelin-test-helpers": "^1.0.
|
32
|
+
"@lazy-sol/zeppelin-test-helpers": "^1.0.5",
|
34
33
|
"@openzeppelin/contracts": "^4.9.6",
|
35
34
|
"hardhat-dependency-injector": "^1.0.1",
|
36
35
|
"hardhat-gas-reporter": "^1.0.10",
|
@@ -38,6 +37,7 @@
|
|
38
37
|
},
|
39
38
|
"overrides": {
|
40
39
|
"tough-cookie": "^4.1.3",
|
41
|
-
"yargs-parser": "^5.0.1"
|
40
|
+
"yargs-parser": "^5.0.1",
|
41
|
+
"ws": "^8.0.0"
|
42
42
|
}
|
43
43
|
}
|