@live-change/user-service 0.2.12 → 0.2.16

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 CHANGED
@@ -16,7 +16,7 @@ definition.authenticator({
16
16
  let userObserver = null
17
17
  let oldCredentials = null
18
18
  await authenticatedTable.object(session).onChange(async (authData, oldAuthData) => {
19
- output.debug("NEW USER AUTH", authData, "FROM", oldAuthData)
19
+ //output.debug("NEW USER AUTH", authData, "FROM", oldAuthData)
20
20
  const newUser = authData ? authData.user : null
21
21
  if(newUser == user) return
22
22
  if(user) {
@@ -28,7 +28,7 @@ definition.authenticator({
28
28
  }
29
29
  if(newUser) {
30
30
  user = newUser
31
- output.debug("NEW USER", user)
31
+ //output.debug("NEW USER", user)
32
32
  userObject = userTable.object(user)
33
33
  const currentUserObject = userObject
34
34
  await userObject.onChange(async (userData, oldUserData) => {
@@ -37,7 +37,7 @@ definition.authenticator({
37
37
  user,
38
38
  roles: userData.roles
39
39
  } : null
40
- output.debug("NEW CREDENTIALS", newCredentials)
40
+ //output.debug("NEW CREDENTIALS", newCredentials)
41
41
  output.change(newCredentials, oldCredentials)
42
42
  oldCredentials = newCredentials
43
43
  }).then(observer => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/user-service",
3
- "version": "0.2.12",
3
+ "version": "0.2.16",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -24,5 +24,5 @@
24
24
  "@live-change/framework": "^0.5.7",
25
25
  "@live-change/relations-plugin": "^0.1.10"
26
26
  },
27
- "gitHead": "a0dce761d803684a74e4cf4d50c63a0dc80dd4cf"
27
+ "gitHead": "98a41ae61218a0ec58d4861b6409d8d9facde37f"
28
28
  }
package/userItem.js CHANGED
@@ -21,7 +21,7 @@ definition.processor(function(service, app) {
21
21
  const config = model.userItem
22
22
  const writeableProperties = modelProperties || config.writableProperties
23
23
 
24
- console.log("USER ITEM", model)
24
+ //console.log("USER ITEM", model)
25
25
 
26
26
  model.itemOf = {
27
27
  what: User,