@live-change/user-service 0.9.215 → 0.9.217
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/authenticator.js +2 -1
- package/contactOrUserItem.js +1 -1
- package/contactOrUserProperty.js +1 -1
- package/package.json +4 -4
- package/sessionOrUserItem.js +1 -1
- package/sessionOrUserProperty.js +2 -2
- package/userItem.js +1 -1
- package/userProperty.js +1 -1
package/authenticator.js
CHANGED
|
@@ -13,8 +13,9 @@ definition.authenticator({
|
|
|
13
13
|
return app.dao.observable(
|
|
14
14
|
['database', 'queryObject', app.databaseName, `(${
|
|
15
15
|
async (input, output, { session, authenticatedTableName, userTableName, slowQueryMs }) => {
|
|
16
|
-
const queryId = (Math.random()*10000).toFixed(0)
|
|
16
|
+
//const queryId = (Math.random()*10000).toFixed(0)
|
|
17
17
|
const ts = () => new Date().toISOString()
|
|
18
|
+
const startedAt = Date.now()
|
|
18
19
|
//output.debug(ts(), queryId, 'STARTING USER AUTH QUERY', { session })
|
|
19
20
|
const authenticatedTable = input.table(authenticatedTableName)
|
|
20
21
|
const userTable = input.table(userTableName)
|
package/contactOrUserItem.js
CHANGED
|
@@ -27,7 +27,7 @@ definition.processor(function(service, app) {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
const config = model.contactOrUserItem
|
|
30
|
-
const writeableProperties =
|
|
30
|
+
const writeableProperties = config.writableProperties ?? modelProperties
|
|
31
31
|
const objectType = service.name + '_' + modelName
|
|
32
32
|
|
|
33
33
|
//console.log("USER ITEM", model)
|
package/contactOrUserProperty.js
CHANGED
|
@@ -33,7 +33,7 @@ definition.processor(function(service, app) {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
const config = model.contactOrUserProperty
|
|
36
|
-
const writeableProperties =
|
|
36
|
+
const writeableProperties = config.writableProperties ?? modelProperties
|
|
37
37
|
const objectType = service.name + '_' + modelName
|
|
38
38
|
|
|
39
39
|
if(model.propertyOf) throw new Error("model " + modelName + " already have owner")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/user-service",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.217",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
},
|
|
23
23
|
"type": "module",
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@live-change/framework": "^0.9.
|
|
26
|
-
"@live-change/relations-plugin": "^0.9.
|
|
25
|
+
"@live-change/framework": "^0.9.217",
|
|
26
|
+
"@live-change/relations-plugin": "^0.9.217",
|
|
27
27
|
"pluralize": "^8.0.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "a9dd340e7ca1c8ea51e84fa38e6e38b9c4e3ff36"
|
|
30
30
|
}
|
package/sessionOrUserItem.js
CHANGED
|
@@ -26,7 +26,7 @@ definition.processor(function(service, app) {
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
const config = model.sessionOrUserItem
|
|
29
|
-
const writeableProperties =
|
|
29
|
+
const writeableProperties = config.writableProperties ?? modelProperties
|
|
30
30
|
const objectType = service.name + '_' + modelName
|
|
31
31
|
|
|
32
32
|
//console.log("USER ITEM", model)
|
package/sessionOrUserProperty.js
CHANGED
|
@@ -34,7 +34,7 @@ definition.processor(function(service, app) {
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
const config = model.sessionOrUserProperty
|
|
37
|
-
const writeableProperties =
|
|
37
|
+
const writeableProperties = config.writeableProperties ?? modelProperties
|
|
38
38
|
const objectType = service.name + '_' + modelName
|
|
39
39
|
|
|
40
40
|
if(model.propertyOf) throw new Error("model " + modelName + " already have owner")
|
|
@@ -74,7 +74,7 @@ definition.processor(function(service, app) {
|
|
|
74
74
|
}
|
|
75
75
|
const sessionProperties = await modelRuntime().rangeGet(range)
|
|
76
76
|
for(const sessionProperty of sessionProperties) {
|
|
77
|
-
console.log("SESSION PROPERTY FOUND!", sessionProperty, "MERGE =", config.merge)
|
|
77
|
+
//console.log("SESSION PROPERTY FOUND!", sessionProperty, "MERGE =", config.merge)
|
|
78
78
|
|
|
79
79
|
const extendedIdentifiers = {}
|
|
80
80
|
for(const key of extendedWith) {
|
package/userItem.js
CHANGED
|
@@ -23,7 +23,7 @@ definition.processor(function(service, app) {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
const config = model.userItem
|
|
26
|
-
const writeableProperties =
|
|
26
|
+
const writeableProperties = config.writableProperties ?? modelProperties
|
|
27
27
|
const objectType = service.name + '_' + modelName
|
|
28
28
|
|
|
29
29
|
//console.log("USER ITEM", model)
|
package/userProperty.js
CHANGED
|
@@ -23,7 +23,7 @@ definition.processor(function(service, app) {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
const config = model.userProperty
|
|
26
|
-
const writeableProperties =
|
|
26
|
+
const writeableProperties = config.writableProperties ?? modelProperties
|
|
27
27
|
const objectType = service.name + '_' + modelName
|
|
28
28
|
|
|
29
29
|
if(model.propertyOf) throw new Error("model " + modelName + " already have owner")
|