@live-change/user-service 0.8.47 → 0.8.49

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
@@ -1,3 +1,4 @@
1
+
1
2
  import App from '@live-change/framework'
2
3
  const app = App.app()
3
4
  import definition from './definition.js'
package/model.js CHANGED
@@ -85,4 +85,19 @@ definition.event({
85
85
  }
86
86
  })
87
87
 
88
+ definition.view({
89
+ name: 'sessionUser',
90
+ properties: {
91
+ session: {
92
+ type: Session
93
+ }
94
+ },
95
+ returns: {
96
+ type: User
97
+ },
98
+ daoPath({ session }) {
99
+ return AuthenticatedUser.path(session)
100
+ }
101
+ })
102
+
88
103
  export { User, Session, AuthenticatedUser }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/user-service",
3
- "version": "0.8.47",
3
+ "version": "0.8.49",
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.8.47",
26
- "@live-change/relations-plugin": "^0.8.47",
25
+ "@live-change/framework": "^0.8.49",
26
+ "@live-change/relations-plugin": "^0.8.49",
27
27
  "pluralize": "^8.0.0"
28
28
  },
29
- "gitHead": "3c89e50f21b7bbf2f16d7f566045eeead7bb0a25"
29
+ "gitHead": "568f730f1c8a6ce0247d1d8e49fcea110604800c"
30
30
  }