@abtnode/constant 1.8.68 → 1.8.69-beta-54faead3
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 +13 -8
- 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',
|
|
@@ -279,6 +279,7 @@ const WHO_CAN_ACCESS = {
|
|
|
279
279
|
|
|
280
280
|
const BLOCKLET_STORE_URL = 'https://store.blocklet.dev';
|
|
281
281
|
const BLOCKLET_STORE_URL_DEV = 'https://dev.store.blocklet.dev';
|
|
282
|
+
const MAIN_CHAIN_ENDPOINT = 'https://main.abtnetwork.io/api/';
|
|
282
283
|
|
|
283
284
|
module.exports = Object.freeze({
|
|
284
285
|
// Blocklet Server
|
|
@@ -286,6 +287,7 @@ module.exports = Object.freeze({
|
|
|
286
287
|
PRODUCTION: 'production',
|
|
287
288
|
DEBUG: 'debug',
|
|
288
289
|
MAINTENANCE: 'maintenance',
|
|
290
|
+
SERVERLESS: 'serverless',
|
|
289
291
|
}),
|
|
290
292
|
|
|
291
293
|
DEFAULT_DESCRIPTION: 'Web Interface to manage your Blocklet Server',
|
|
@@ -416,6 +418,7 @@ module.exports = Object.freeze({
|
|
|
416
418
|
// Team
|
|
417
419
|
ROLES,
|
|
418
420
|
SERVER_ROLES,
|
|
421
|
+
BLOCKLET_ROLES,
|
|
419
422
|
isBlockletRole,
|
|
420
423
|
AUTH_CERT_TYPE,
|
|
421
424
|
RBAC_CONFIG,
|
|
@@ -481,4 +484,6 @@ module.exports = Object.freeze({
|
|
|
481
484
|
// period: '5m',
|
|
482
485
|
// },
|
|
483
486
|
},
|
|
487
|
+
|
|
488
|
+
MAIN_CHAIN_ENDPOINT,
|
|
484
489
|
});
|
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.69-beta-54faead3",
|
|
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": "3dec0c85a77de5ba2d37c19ac769b126bfaafc86"
|
|
24
24
|
}
|