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

@live-change/user-service

Package Overview
Dependencies
Maintainers
1
Versions
225
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.16 to 0.2.19

sessionOrUserItem.js

2

index.js

@@ -8,2 +8,4 @@ const app = require("@live-change/framework").app()

require('./userItem.js')
require('./sessionOrUserProperty.js')
require('./sessionOrUserItem.js')

@@ -10,0 +12,0 @@ const Session = definition.foreignModel('session', 'Session')

6

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

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

"dependencies": {
"@live-change/framework": "^0.5.7",
"@live-change/framework": "^0.5.10",
"@live-change/relations-plugin": "^0.1.10"
},
"gitHead": "98a41ae61218a0ec58d4861b6409d8d9facde37f"
"gitHead": "c2833a9660374ee17dd3def99fd1cdf47f6b1531"
}

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

},
//queuedBy: (command) => command.client.user,
queuedBy: (command) => command.client.user,
waitForEvents: true,

@@ -78,0 +78,0 @@ async execute(properties, { client, service }, emit) {

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

const eventName = 'userOwned' + modelName + 'Updated'
const actionName = 'updateMyuser' + modelName
const actionName = 'updateMyUser' + modelName
service.actions[actionName] = new ActionDefinition({

@@ -136,3 +136,3 @@ name: actionName,

const eventName = 'userOwned' + modelName + 'Reset'
const actionName = 'resetMyuser' + modelName
const actionName = 'resetMyUser' + modelName
service.actions[actionName] = new ActionDefinition({

@@ -144,3 +144,3 @@ name: actionName,

async execute(properties, {client, service}, emit) {
const entity = await modelRuntime().indexObjectGet('byuser', client.user)
const entity = await modelRuntime().indexObjectGet('byUser', client.user)
if (!entity) throw 'not_found'

@@ -147,0 +147,0 @@ emit({

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