New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tipe/roles

Package Overview
Dependencies
Maintainers
4
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tipe/roles - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

package.json
{
"name": "@tipe/roles",
"version": "0.3.0",
"version": "0.3.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -9,3 +9,3 @@ const { policies } = require('./policies')

'org:subscription': policies.Org.actions['subscription'],
'org:invites': policies.Org.actions['invites'],
'org:invite': policies.Org.actions['invite'],
'org:removeUser': policies.Org.actions['removeUser'],

@@ -32,4 +32,38 @@

const actionsMap = {
org: {
create: 'org:create',
read: 'org:read',
update: 'org:update',
delete: 'org:delete',
subscription: 'org:subscription',
invite: 'org:invite',
removeUser: 'org:removeUser'
},
project: {
create: 'project:create',
read: 'project:read',
update: 'project:update',
delete: 'project:delete',
removeUser: 'project:removeUser',
invite: 'project:invite'
},
model: {
create: 'model:create',
read: 'model:read',
update: 'model:update',
delete: 'model:delete'
},
content: {
create: 'content:create',
read: 'content:read',
update: 'content:update',
delete: 'content:delete',
publish: 'content:publish'
}
}
module.exports = {
actions
actions,
actionsMap
}
const { policies } = require('./policies')
const { roles } = require('./roles')
const { actions } = require('./actions')
const { actions, actionsMap } = require('./actions')
const { isAllowed } = require('./checks')

@@ -9,4 +9,5 @@

actions,
allActions: actionsMap
roles,
policies
}

@@ -66,3 +66,3 @@ const { orgRoles, projectRoles } = require('./roles')

...setPolicies('Model', ['read']),
...setPolicies('Content', ['create', 'read', 'update', 'delete'])
...setPolicies('Content', ['create', 'read', 'update'])
]

@@ -69,0 +69,0 @@ })

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