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

@live-change/access-control-service

Package Overview
Dependencies
Maintainers
0
Versions
223
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@live-change/access-control-service - npm Package Compare versions

Comparing version 0.8.83 to 0.8.84

5

model.js

@@ -119,3 +119,6 @@ import App from '@live-change/framework'

indexes: {
byOwnerRoleAndObject: {
property: ['contactOrUserType', 'contactOrUser', 'roles', 'objectType', 'object'],
multi: true
}
}

@@ -122,0 +125,0 @@ })

6

package.json
{
"name": "@live-change/access-control-service",
"version": "0.8.83",
"version": "0.8.84",
"description": "",

@@ -24,6 +24,6 @@ "main": "index.js",

"dependencies": {
"@live-change/framework": "^0.8.83"
"@live-change/framework": "^0.8.84"
},
"gitHead": "a3c85f0869b4c65c2bdd6f181bdfcbe2d6f2bde5",
"gitHead": "53f9ddc7529c28f12cb77c4a2758b553461e46b6",
"type": "module"
}

@@ -8,3 +8,3 @@ import definition from './definition.js'

import { Access } from './model.js'
import { Access, AccessInvitation } from './model.js'

@@ -125,1 +125,49 @@ definition.view({

})
definition.view({
name: 'myAccessInvitationsByObjectType',
properties: {
objectType: {
type: String
},
...App.rangeProperties
},
returns: {
type: Array,
of: {
type: Access
}
},
async daoPath(properties, { client, service }, method) {
const [ sessionOrUserType, sessionOrUser ] =
client.user ? ['user_User', client.user] : ['session_Session', client.session]
const { objectType } = properties
return AccessInvitation.rangePath([sessionOrUserType, sessionOrUser, objectType], App.extractRange(properties))
}
})
definition.view({
name: 'myAccessInvitationsByObjectTypeAndRole',
properties: {
objectType: {
type: String
},
role: {
type: String
},
...App.rangeProperties
},
returns: {
type: Array,
of: {
type: Access
}
},
async daoPath(properties, { client, service }, method) {
const [ sessionOrUserType, sessionOrUser ] =
client.user ? ['user_User', client.user] : ['session_Session', client.session]
const { objectType, role } = properties
return AccessInvitation.indexRangePath('byOwnerRoleAndObject',
[sessionOrUserType, sessionOrUser, role, objectType], App.extractRange(properties))
}
})
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