Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@abtnode/util

Package Overview
Dependencies
Maintainers
3
Versions
786
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abtnode/util - npm Package Compare versions

Comparing version 1.2.1 to 1.2.2

37

lib/constants.js

@@ -0,1 +1,5 @@

const NODE_SERVICES = Object.freeze({
AUTH_SERVICE: '@abtnode/auth-service',
});
const ROLES = Object.freeze({

@@ -11,17 +15,21 @@ OWNER: 'owner',

{
name: 'owner',
name: ROLES.OWNER,
title: 'Owner',
},
{
name: 'admin',
name: ROLES.ADMIN,
title: 'Admin',
},
{
name: 'member',
name: ROLES.MEMBER,
title: 'Member',
},
{
name: 'guest',
name: ROLES.GUEST,
title: 'Guest',
},
{
name: NODE_SERVICES.AUTH_SERVICE,
title: 'Auth Service',
},
]),

@@ -38,8 +46,16 @@ permissions: Object.freeze([

{
name: 'query_accessKey',
description: 'View access keys for ABT Node',
},
{
name: 'mutate_accessKey',
description: 'Manage access keys for ABT Node, such as create/update/delete',
},
{
name: 'query_team',
description: 'View team data(members/roles/permissions/accessKey) for ABT Node and blocklets',
description: 'View team data(members/roles/permissions) for ABT Node and blocklets',
},
{
name: 'mutate_team',
description: 'Manage team data(members/roles/permissions/accessKey) for ABT Node and blocklets',
description: 'Manage team data(members/roles/permissions) for ABT Node and blocklets',
},

@@ -86,7 +102,9 @@ {

'query_team',
'query_accessKey',
'query_node',
],
[ROLES.MEMBER]: [ROLES.GUEST, 'mutate_blocklet', 'mutate_router', 'mutate_webhook', 'mutate_notification'],
[ROLES.ADMIN]: [ROLES.MEMBER, 'mutate_team', 'mutate_node'],
[ROLES.ADMIN]: [ROLES.MEMBER, 'mutate_team', 'mutate_accessKey', 'mutate_node'],
[ROLES.OWNER]: [ROLES.ADMIN],
'@abtnode/auth-service': ['query_team', 'mutate_team'],
}),

@@ -128,2 +146,3 @@ };

BLOCKLET_REGISTRY_URL: 'https://booster.registry.arcblock.io',
BLOCKLET_REGISTRY_URL_DEV: 'https://booster.dev.registry.arcblock.io',
BLOCKLET_REGISTRY_API_PREFIX: '/api',

@@ -185,5 +204,3 @@

// Service
NODE_SERVICES: Object.freeze({
AUTH_SERVICE: '@abtnode/auth-service',
}),
NODE_SERVICES,
});

@@ -6,3 +6,3 @@ {

},
"version": "1.2.1",
"version": "1.2.2",
"description": "ArcBlock's JavaScript utility",

@@ -47,3 +47,3 @@ "main": "lib/index.js",

},
"gitHead": "f41fd927f843251b719c80d5a94d1718336d6a73"
"gitHead": "a406c4607cb0eabbfd50b8ae49abf0446b867756"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc