@live-change/user-frontend 0.8.149 → 0.9.1

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.
@@ -57,7 +57,7 @@
57
57
  ? ['user_User', api.client.value.user]
58
58
  : ['session_Session', api.client.value.session]
59
59
 
60
- const dataPromise = live(path().userIdentification.sessionOrUserOwnedIdentification({
60
+ const dataPromise = live(path().userIdentification.identification({
61
61
  sessionOrUserType: ownerType, sessionOrUser: owner
62
62
  }))
63
63
 
@@ -75,7 +75,7 @@
75
75
 
76
76
  const path = usePath()
77
77
  const userIdentificationPath = computed(() => ownerType.value && owner.value &&
78
- path.userIdentification.sessionOrUserOwnedIdentification({
78
+ path.userIdentification.identification({
79
79
  sessionOrUserType: ownerType.value, sessionOrUser: owner.value
80
80
  }) || null
81
81
  )
@@ -92,7 +92,7 @@
92
92
  const settingSource = computed(() => contact.settings.find(s => s.notificationType === notificationType))
93
93
  const setting = synchronized({
94
94
  source: settingSource,
95
- update: notificationApi.setOrUpdateContactAndNotificationOwnedNotificationSetting,
95
+ update: notificationApi.setOrUpdateNotificationSetting,
96
96
  identifiers: {
97
97
  contact: contact[contactType], contactType: contactsData.contactTypeLong,
98
98
  notificationType, notification: notificationType
@@ -84,7 +84,7 @@
84
84
  form.value.addValidator('passwordHash', () => {
85
85
  const value = form.value.getFieldValue('passwordHash')
86
86
  console.log("PASSWORDS MATCH?", secondPassword.value, value)
87
- if(value != secondPassword.value) return "passwordsNotMatch"
87
+ if(value !== secondPassword.value) return "passwordsNotMatch"
88
88
  })
89
89
  })
90
90
 
@@ -96,13 +96,13 @@
96
96
 
97
97
  import { live, path } from '@live-change/vue3-ssr'
98
98
  const [ authentication ] = await Promise.all([
99
- live( path().passwordAuthentication.resetPasswordAuthentication({ key: resetKey }) )
99
+ live( path().passwordAuthentication.resetPasswordAuthenticationByKey({ key: resetKey }) )
100
100
  ])
101
101
 
102
102
  const isUnknown = computed(() => authentication.value === null)
103
103
  const isExpired = computed(() =>
104
104
  authentication.value ? (now.value.toISOString() > authentication.value.expire) : false )
105
- const isUsed = computed(() => authentication.value && authentication.value.state == 'used')
105
+ const isUsed = computed(() => authentication.value && authentication.value.state === 'used')
106
106
  const isReady = computed(() => !(isUnknown.value || isExpired.value || isUsed.value))
107
107
 
108
108
  function handleDone({ parameters, result }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/user-frontend",
3
- "version": "0.8.149",
3
+ "version": "0.9.1",
4
4
  "scripts": {
5
5
  "memDev": "node --inspect --expose-gc server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
6
6
  "localDevInit": "rm tmp.db; node server/start.js localDev --enableSessions --initScript ./init.js",
@@ -22,29 +22,29 @@
22
22
  },
23
23
  "type": "module",
24
24
  "dependencies": {
25
- "@live-change/cli": "^0.8.149",
26
- "@live-change/dao": "^0.8.149",
27
- "@live-change/dao-vue3": "^0.8.149",
28
- "@live-change/dao-websocket": "^0.8.149",
29
- "@live-change/email-service": "^0.8.149",
30
- "@live-change/framework": "^0.8.149",
31
- "@live-change/identicon-service": "^0.8.149",
32
- "@live-change/image-frontend": "^0.8.149",
33
- "@live-change/message-authentication-service": "^0.8.149",
34
- "@live-change/notification-service": "^0.8.149",
35
- "@live-change/password-authentication-service": "^0.8.149",
36
- "@live-change/pattern": "^0.8.149",
37
- "@live-change/secret-code-service": "^0.8.149",
38
- "@live-change/secret-link-service": "^0.8.149",
39
- "@live-change/security-frontend": "^0.8.149",
40
- "@live-change/security-service": "^0.8.149",
41
- "@live-change/session-service": "^0.8.149",
42
- "@live-change/timer-service": "^0.8.149",
43
- "@live-change/upload-service": "^0.8.149",
44
- "@live-change/user-identification-service": "^0.8.149",
45
- "@live-change/user-service": "^0.8.149",
46
- "@live-change/vue3-components": "^0.8.149",
47
- "@live-change/vue3-ssr": "^0.8.149",
25
+ "@live-change/cli": "^0.9.1",
26
+ "@live-change/dao": "^0.9.1",
27
+ "@live-change/dao-vue3": "^0.9.1",
28
+ "@live-change/dao-websocket": "^0.9.1",
29
+ "@live-change/email-service": "^0.9.1",
30
+ "@live-change/framework": "^0.9.1",
31
+ "@live-change/identicon-service": "^0.9.1",
32
+ "@live-change/image-frontend": "^0.9.1",
33
+ "@live-change/message-authentication-service": "^0.9.1",
34
+ "@live-change/notification-service": "^0.9.1",
35
+ "@live-change/password-authentication-service": "^0.9.1",
36
+ "@live-change/pattern": "^0.9.1",
37
+ "@live-change/secret-code-service": "^0.9.1",
38
+ "@live-change/secret-link-service": "^0.9.1",
39
+ "@live-change/security-frontend": "^0.9.1",
40
+ "@live-change/security-service": "^0.9.1",
41
+ "@live-change/session-service": "^0.9.1",
42
+ "@live-change/timer-service": "^0.9.1",
43
+ "@live-change/upload-service": "^0.9.1",
44
+ "@live-change/user-identification-service": "^0.9.1",
45
+ "@live-change/user-service": "^0.9.1",
46
+ "@live-change/vue3-components": "^0.9.1",
47
+ "@live-change/vue3-ssr": "^0.9.1",
48
48
  "@vueuse/core": "^10.11.0",
49
49
  "codeceptjs-assert": "^0.0.5",
50
50
  "codeceptjs-video-helper": "0.1.3",
@@ -65,7 +65,7 @@
65
65
  "wtfnode": "^0.9.1"
66
66
  },
67
67
  "devDependencies": {
68
- "@live-change/codeceptjs-helper": "^0.8.149",
68
+ "@live-change/codeceptjs-helper": "^0.9.1",
69
69
  "codeceptjs": "^3.6.5",
70
70
  "generate-password": "1.7.1",
71
71
  "playwright": "^1.41.2",
@@ -76,5 +76,5 @@
76
76
  "author": "Michał Łaszczewski <michal@laszczewski.pl>",
77
77
  "license": "BSD-3-Clause",
78
78
  "description": "",
79
- "gitHead": "0854ef672e27b8f3ea70ffeb788a33638844121e"
79
+ "gitHead": "d00e08ee081d6993421e4573fc25588345aaabca"
80
80
  }