@live-change/user-service 0.9.31 → 0.9.33
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 +3 -3
- package/package.json +4 -4
package/authenticator.js
CHANGED
|
@@ -17,10 +17,10 @@ definition.authenticator({
|
|
|
17
17
|
let userObserver = null
|
|
18
18
|
let oldCredentials = null
|
|
19
19
|
await authenticatedTable.object(session).onChange(async (authData, oldAuthData) => {
|
|
20
|
-
output.debug("NEW USER AUTH", authData, "FROM", oldAuthData)
|
|
20
|
+
//output.debug("NEW USER AUTH", authData, "FROM", oldAuthData)
|
|
21
21
|
const newUser = authData ? authData.user : null
|
|
22
22
|
if(newUser === user) return
|
|
23
|
-
output.debug("USER CHANGE", user, '=>', newUser)
|
|
23
|
+
//output.debug("USER CHANGE", user, '=>', newUser)
|
|
24
24
|
if(user) {
|
|
25
25
|
if(userObject) {
|
|
26
26
|
await userObject.unobserve(userObserver)
|
|
@@ -38,7 +38,7 @@ definition.authenticator({
|
|
|
38
38
|
user,
|
|
39
39
|
roles: userData.roles
|
|
40
40
|
} : null
|
|
41
|
-
output.debug("NEW CREDENTIALS", newCredentials)
|
|
41
|
+
//output.debug("NEW CREDENTIALS", newCredentials)
|
|
42
42
|
output.change(newCredentials, oldCredentials)
|
|
43
43
|
oldCredentials = newCredentials
|
|
44
44
|
}).then(observer => {
|
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.33",
|
|
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.33",
|
|
26
|
+
"@live-change/relations-plugin": "^0.9.33",
|
|
27
27
|
"pluralize": "^8.0.0"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "c6eaa7764dc12b9489b74386b1227b71d0640e09"
|
|
30
30
|
}
|