@abtnode/constant 1.8.66 → 1.8.67-beta-f8b4c9ec

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.
Files changed (2) hide show
  1. package/index.js +10 -8
  2. 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 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);
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,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "1.8.66",
6
+ "version": "1.8.67-beta-f8b4c9ec",
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": "282247fd0ce6702e1d6920e90e2b3be0408cf879"
23
+ "gitHead": "ebf19fcbc6d99fff0d214dc0680c4df81aa94d6d"
24
24
  }