@live-change/peer-connection-frontend 0.9.58 → 0.9.60

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.
@@ -247,13 +247,14 @@
247
247
  model[deviceType] = null
248
248
  return
249
249
  }
250
+ let savedDevice = null
250
251
  if(saved) {
251
252
  const parsed = JSON.parse(saved)
252
- const exists = devices.find(device => device.deviceId === parsed.deviceId)
253
- || devices.find(device => device.label === parsed.label)
254
- if(exists) {
255
- model[deviceType] = exists
256
- }
253
+ savedDevice = devices.find(device => device.deviceId === parsed.deviceId)
254
+ || devices.find(device => device.label === parsed.label)
255
+ }
256
+ if(savedDevice) {
257
+ model[deviceType] = savedDevice
257
258
  } else {
258
259
  if(model[deviceType]) {
259
260
  const exists = devices.find(device => device.deviceId === model[deviceType].deviceId)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/peer-connection-frontend",
3
- "version": "0.9.58",
3
+ "version": "0.9.60",
4
4
  "scripts": {
5
5
  "memDev": "dotenvx run -- node server/start.js memDev --enableSessions --initScript ./init.js --dbAccess",
6
6
  "localDevInit": "rm tmp.db; dotenvx run -- node server/start.js localDev --enableSessions --initScript ./init.js",
@@ -22,19 +22,19 @@
22
22
  },
23
23
  "type": "module",
24
24
  "dependencies": {
25
- "@live-change/cli": "^0.9.58",
26
- "@live-change/dao": "^0.9.58",
27
- "@live-change/dao-vue3": "^0.9.58",
28
- "@live-change/dao-websocket": "^0.9.58",
29
- "@live-change/framework": "^0.9.58",
30
- "@live-change/password-authentication-service": "^0.9.58",
31
- "@live-change/secret-code-service": "^0.9.58",
32
- "@live-change/secret-link-service": "^0.9.58",
33
- "@live-change/session-service": "^0.9.58",
34
- "@live-change/user-frontend": "^0.9.58",
35
- "@live-change/user-service": "^0.9.58",
36
- "@live-change/vue3-components": "^0.9.58",
37
- "@live-change/vue3-ssr": "^0.9.58",
25
+ "@live-change/cli": "^0.9.60",
26
+ "@live-change/dao": "^0.9.60",
27
+ "@live-change/dao-vue3": "^0.9.60",
28
+ "@live-change/dao-websocket": "^0.9.60",
29
+ "@live-change/framework": "^0.9.60",
30
+ "@live-change/password-authentication-service": "^0.9.60",
31
+ "@live-change/secret-code-service": "^0.9.60",
32
+ "@live-change/secret-link-service": "^0.9.60",
33
+ "@live-change/session-service": "^0.9.60",
34
+ "@live-change/user-frontend": "^0.9.60",
35
+ "@live-change/user-service": "^0.9.60",
36
+ "@live-change/vue3-components": "^0.9.60",
37
+ "@live-change/vue3-ssr": "^0.9.60",
38
38
  "@vueuse/core": "^12.3.0",
39
39
  "boxicons": "^2.1.4",
40
40
  "codeceptjs-assert": "^0.0.5",
@@ -54,7 +54,7 @@
54
54
  "vue3-scroll-border": "0.1.6"
55
55
  },
56
56
  "devDependencies": {
57
- "@live-change/codeceptjs-helper": "^0.9.58",
57
+ "@live-change/codeceptjs-helper": "^0.9.60",
58
58
  "codeceptjs": "^3.6.10",
59
59
  "generate-password": "1.7.1",
60
60
  "playwright": "1.49.1",
@@ -65,5 +65,5 @@
65
65
  "author": "Michał Łaszczewski <michal@laszczewski.pl>",
66
66
  "license": "BSD-3-Clause",
67
67
  "description": "",
68
- "gitHead": "526ab5f7c70f16a84df11518cfb9e54cd960d3fc"
68
+ "gitHead": "8420ad3852216027b648c31f3c908a7b5e6f4292"
69
69
  }