@abtnode/constant 1.8.68-beta-500af7e5 → 1.8.68
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 -13
- 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',
|
|
@@ -279,7 +279,6 @@ 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/';
|
|
283
282
|
|
|
284
283
|
module.exports = Object.freeze({
|
|
285
284
|
// Blocklet Server
|
|
@@ -287,7 +286,6 @@ module.exports = Object.freeze({
|
|
|
287
286
|
PRODUCTION: 'production',
|
|
288
287
|
DEBUG: 'debug',
|
|
289
288
|
MAINTENANCE: 'maintenance',
|
|
290
|
-
SERVERLESS: 'serverless',
|
|
291
289
|
}),
|
|
292
290
|
|
|
293
291
|
DEFAULT_DESCRIPTION: 'Web Interface to manage your Blocklet Server',
|
|
@@ -418,7 +416,6 @@ module.exports = Object.freeze({
|
|
|
418
416
|
// Team
|
|
419
417
|
ROLES,
|
|
420
418
|
SERVER_ROLES,
|
|
421
|
-
BLOCKLET_ROLES,
|
|
422
419
|
isBlockletRole,
|
|
423
420
|
AUTH_CERT_TYPE,
|
|
424
421
|
RBAC_CONFIG,
|
|
@@ -484,6 +481,4 @@ module.exports = Object.freeze({
|
|
|
484
481
|
// period: '5m',
|
|
485
482
|
// },
|
|
486
483
|
},
|
|
487
|
-
|
|
488
|
-
MAIN_CHAIN_ENDPOINT,
|
|
489
484
|
});
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.8.68
|
|
6
|
+
"version": "1.8.68",
|
|
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": "1392044ac5677bde567797adeb9a6d3f0b9264b8"
|
|
24
24
|
}
|