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
1
Versions
219
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.2.22 to 0.2.23

73

model.js

@@ -18,5 +18,12 @@ const definition = require('./definition.js')

properties: {
role: {
type: String,
validation: ['nonEmpty']
roles: {
type: Array,
of: {
type: String,
validation: ['nonEmpty']
},
validation: ['elementsNonEmpty']
},
lastUpdate: {
type: Date
}

@@ -36,10 +43,21 @@ }

properties: {
userRole: {
type: String,
validation: ['nonEmpty']
userRoles: {
type: Array,
of: {
type: String,
validation: ['nonEmpty']
},
validation: ['elementsNonEmpty']
},
sessionRole: {
type: String,
validation: ['nonEmpty']
sessionRoles: {
type: Array,
of: {
type: String,
validation: ['nonEmpty']
},
validation: ['elementsNonEmpty']
},
lastUpdate: {
type: Date
}
},

@@ -60,5 +78,36 @@ indexes: {

properties: {
role: {
roles: {
type: Array,
of: {
type: String,
validation: ['nonEmpty']
},
validation: ['elementsNonEmpty']
},
message: {
type: String,
validation: ['nonEmpty']
validation: []
}
},
indexes: {
}
})
/*
const AccessInvite = definition.model({
name: 'AccessInvite',
userOrContactItem: {},
relatedToAny: {
to: 'object',
readAccess: (params, {client, context, visibilityTest}) =>
visibilityTest || access.clientHasAdminAccess(client, params.ownerType, params.owner)
},
properties: {
roles: {
type: Array,
of: {
type: String,
validation: ['nonEmpty']
},
validation: ['elementsNonEmpty']
},

@@ -71,5 +120,7 @@ message: {

indexes: {
}
})
*/
module.exports = { Access, PublicAccess, AccessRequest }

6

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

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

"dependencies": {
"@live-change/framework": "0.5.20"
"@live-change/framework": "0.5.27"
},
"gitHead": "1bf2012299025806e7d7c0c74af8f29e28094d16"
"gitHead": "c22bdb7af06561f1dc64b9d9c8cb90154dcd3618"
}
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