@abtnode/constant 1.8.66 → 1.8.67-beta-794a8082
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 +11 -9
- 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 BLOCKLET_ROLES = [
|
|
34
|
+
SERVER_ROLES.BLOCKLET_OWNER,
|
|
35
|
+
SERVER_ROLES.BLOCKLET_ADMIN,
|
|
36
|
+
SERVER_ROLES.BLOCKLET_MEMBER,
|
|
37
|
+
SERVER_ROLES.BLOCKLET_SDK,
|
|
38
|
+
];
|
|
39
|
+
|
|
40
|
+
const isBlockletRole = (role) => role && BLOCKLET_ROLES.includes(role);
|
|
41
41
|
|
|
42
42
|
const AUTH_CERT_TYPE = {
|
|
43
43
|
USER: 'user',
|
|
@@ -286,6 +286,7 @@ module.exports = Object.freeze({
|
|
|
286
286
|
PRODUCTION: 'production',
|
|
287
287
|
DEBUG: 'debug',
|
|
288
288
|
MAINTENANCE: 'maintenance',
|
|
289
|
+
SERVERLESS: 'serverless',
|
|
289
290
|
}),
|
|
290
291
|
|
|
291
292
|
DEFAULT_DESCRIPTION: 'Web Interface to manage your Blocklet Server',
|
|
@@ -416,6 +417,7 @@ module.exports = Object.freeze({
|
|
|
416
417
|
// Team
|
|
417
418
|
ROLES,
|
|
418
419
|
SERVER_ROLES,
|
|
420
|
+
BLOCKLET_ROLES,
|
|
419
421
|
isBlockletRole,
|
|
420
422
|
AUTH_CERT_TYPE,
|
|
421
423
|
RBAC_CONFIG,
|
|
@@ -470,7 +472,7 @@ module.exports = Object.freeze({
|
|
|
470
472
|
// @link https://www.nginx.com/blog/nginx-caching-guide/
|
|
471
473
|
ROUTER_CACHE_GROUPS: {
|
|
472
474
|
blockletProxy: {
|
|
473
|
-
minSize: '
|
|
475
|
+
minSize: '8m',
|
|
474
476
|
maxSize: '2g',
|
|
475
477
|
period: '30d',
|
|
476
478
|
},
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.8.
|
|
6
|
+
"version": "1.8.67-beta-794a8082",
|
|
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": "f4ad32bea4d80b12971fb6bef941bdbe2af6a834"
|
|
24
24
|
}
|