@abtnode/constant 1.8.67-beta-794a8082 → 1.8.67
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.
- package/index.js +8 -10
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -30,14 +30,14 @@ const SERVER_ROLES = Object.freeze({
|
|
|
30
30
|
EXTERNAL_BLOCKLETS_MANAGER: 'external-blocklets-manager',
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
const
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
33
|
+
const isBlockletRole = (role) =>
|
|
34
|
+
role &&
|
|
35
|
+
[
|
|
36
|
+
SERVER_ROLES.BLOCKLET_OWNER,
|
|
37
|
+
SERVER_ROLES.BLOCKLET_ADMIN,
|
|
38
|
+
SERVER_ROLES.BLOCKLET_MEMBER,
|
|
39
|
+
SERVER_ROLES.BLOCKLET_SDK,
|
|
40
|
+
].includes(role);
|
|
41
41
|
|
|
42
42
|
const AUTH_CERT_TYPE = {
|
|
43
43
|
USER: 'user',
|
|
@@ -286,7 +286,6 @@ module.exports = Object.freeze({
|
|
|
286
286
|
PRODUCTION: 'production',
|
|
287
287
|
DEBUG: 'debug',
|
|
288
288
|
MAINTENANCE: 'maintenance',
|
|
289
|
-
SERVERLESS: 'serverless',
|
|
290
289
|
}),
|
|
291
290
|
|
|
292
291
|
DEFAULT_DESCRIPTION: 'Web Interface to manage your Blocklet Server',
|
|
@@ -417,7 +416,6 @@ module.exports = Object.freeze({
|
|
|
417
416
|
// Team
|
|
418
417
|
ROLES,
|
|
419
418
|
SERVER_ROLES,
|
|
420
|
-
BLOCKLET_ROLES,
|
|
421
419
|
isBlockletRole,
|
|
422
420
|
AUTH_CERT_TYPE,
|
|
423
421
|
RBAC_CONFIG,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.8.67
|
|
6
|
+
"version": "1.8.67",
|
|
7
7
|
"description": "ABT Node constants",
|
|
8
8
|
"main": "index.js",
|
|
9
9
|
"files": [
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"jest": "^27.5.1"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "543dbadffd29dc4f096261e136a2a306885d6508"
|
|
24
24
|
}
|