@live-change/framework
Advanced tools
Comparing version 0.3.0 to 0.3.1
@@ -47,3 +47,4 @@ const utils = require("../utils.js") | ||
if(utils.typeName(this.type) != utils.typeName(oldProperty.type)) typeChanged = true | ||
if(this.of && utils.typeName(this.of.type) != utils.typeName(oldProperty.of.type)) typeChanged = true | ||
if((this.of && utils.typeName(this.of.type)) != (oldProperty.of && utils.typeName(oldProperty.of.type))) | ||
typeChanged = true | ||
if(typeChanged) { | ||
@@ -50,0 +51,0 @@ changes.push({ |
@@ -45,2 +45,3 @@ const { prepareParameters, processReturn, preFilterParameters } = require("./params.js") | ||
if(parameters._commandId) command.id = parameters._commandId | ||
console.log("CALL COMMAND", JSON.stringify(command, null, " ")) | ||
return this.service.app.command(command) | ||
@@ -47,0 +48,0 @@ } |
@@ -34,2 +34,3 @@ const ReactiveDao = require("@live-change/dao") | ||
this.reactiveServer = new ReactiveDao.ReactiveServer( async (sessionId, connection) => { | ||
const cuid = (Math.random()*10000)|0 | ||
let ip = getIp(connection) | ||
@@ -52,5 +53,8 @@ | ||
/// User or roles changed, rebuilding dao | ||
console.log("CUID", cuid) | ||
console.log("session", sessionId, " old data roles:", credentials.roles, | ||
"user:", credentials.user, "rebuilding dao!") | ||
credentials.roles = newSess.roles || [] | ||
credentials.user = newSess.user || null | ||
console.log("session", sessionId, " new roles", newSess.roles, "or user", newSess.user, "rebuilding dao!") | ||
console.log("session", sessionId, " new roles", newSess.roles, "or user", newSess.user, "rebuilding dao!") | ||
const oldDao = currentDao | ||
@@ -57,0 +61,0 @@ currentDao = new Dao(config, {...credentials}) |
{ | ||
"name": "@live-change/framework", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"description": "Live Change Framework - ultimate solution for real time mobile/web apps", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
109536
3045