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

@live-change/user-service

Package Overview
Dependencies
Maintainers
1
Versions
274
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@live-change/user-service - npm Package Compare versions

Comparing version 0.2.11 to 0.2.12

4

package.json
{
"name": "@live-change/user-service",
"version": "0.2.11",
"version": "0.2.12",
"description": "",

@@ -27,3 +27,3 @@ "main": "index.js",

},
"gitHead": "2b95c89678f276d6b3a039652169c5fc819df8df"
"gitHead": "a0dce761d803684a74e4cf4d50c63a0dc80dd4cf"
}

@@ -35,3 +35,6 @@ const definition = require("./definition.js")

name: viewName,
access: config.userReadAccess,
access(params, context) {
if(!context.client.user) return false
return config.userReadAccess ? config.userReadAccess(params, context) : true
},
properties: App.rangeProperties,

@@ -48,3 +51,6 @@ daoPath(range, { client, context }) {

name: viewName,
access: config.readAccess,
access(params, context) {
if(!context.client.user) return false
return config.userReadAccess ? config.userReadAccess(params, context) : true
},
properties: App.rangeProperties,

@@ -51,0 +57,0 @@ daoPath(range, { client, context }) {

@@ -35,3 +35,6 @@ const definition = require("./definition.js")

name: viewName,
access: config.userReadAccess,
access(params, context) {
if(!context.client.user) return false
return config.userReadAccess ? config.userReadAccess(params, context) : true
},
daoPath(params, { client, context }) {

@@ -43,2 +46,20 @@ return modelRuntime().path(client.user)

if(config.userViews) {
for(const view of config.userViews) {
const viewName = view.name || ('myUser' + (view.prefix || '') + modelName + (view.suffix || ''))
service.views[viewName] = new ViewDefinition({
name: viewName,
access(params, context) {
if(!context.client.user) return false
return view.access ? view.access(params, context) : true
},
daoPath(params, { client, context }) {
return view.fields
? modelRuntime().limitedPath(client.user, view.fields)
: modelRuntime().path(client.user)
}
})
}
}
if(config.userSetAccess || config.userWriteAccess) {

@@ -45,0 +66,0 @@ const eventName = 'userOwned' + modelName + 'Set'

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