@live-change/peer-connection-frontend 0.8.61 → 0.8.63

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.
@@ -27,25 +27,24 @@ const createPeer = async ({
27
27
 
28
28
  if(!instance) instance = window.__WINDOW_ID__ + '.' + (++lastInstanceId)
29
29
 
30
- console.error("APP CONTEXT", appContext)
31
30
  const api = useApi(appContext)
32
31
 
33
32
  const peerId = [channelType, channel, api.client.value.session, instance].join(':')
34
33
 
35
34
  console.log("CREATE PEER!")
36
35
 
37
- const path = usePath()
36
+ const path = usePath(appContext)
38
37
  const [
39
38
  peers,
40
39
  peerOnline,
41
40
  turnConfiguration
42
41
  ] = await Promise.all([
43
- live(path.peerConnection.peers({ channelType, channel }, appContext)
42
+ live(path.peerConnection.peers({ channelType, channel })
44
43
  .with(peer => path.peerConnection.peerState({ peer: peer.id }).bind('peerState'))
45
44
  .with(peer => path.user.sessionUser({ session: peer.session }).bind('user'))
46
- ),
47
- live(path.online.session({ group: 'peer', peer: peerId }), appContext),
48
- live(path.peerConnection.turnConfiguration({ peer: peerId }), appContext)
45
+ , appContext, onUnmountedCb),
46
+ live(path.online.session({ group: 'peer', peer: peerId }), appContext, onUnmountedCb),
47
+ live(path.peerConnection.turnConfiguration({ peer: peerId }), appContext, onUnmountedCb)
49
48
  ])
50
49
 
51
50
  const localPeerState = ref(null)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/peer-connection-frontend",
3
- "version": "0.8.61",
3
+ "version": "0.8.63",
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.8.61",
26
- "@live-change/dao": "^0.8.61",
27
- "@live-change/dao-vue3": "^0.8.61",
28
- "@live-change/dao-websocket": "^0.8.61",
29
- "@live-change/framework": "^0.8.61",
30
- "@live-change/password-authentication-service": "^0.8.61",
31
- "@live-change/secret-code-service": "^0.8.61",
32
- "@live-change/secret-link-service": "^0.8.61",
33
- "@live-change/session-service": "^0.8.61",
34
- "@live-change/user-frontend": "^0.8.61",
35
- "@live-change/user-service": "^0.8.61",
36
- "@live-change/vue3-components": "^0.8.61",
37
- "@live-change/vue3-ssr": "^0.8.61",
25
+ "@live-change/cli": "^0.8.63",
26
+ "@live-change/dao": "^0.8.63",
27
+ "@live-change/dao-vue3": "^0.8.63",
28
+ "@live-change/dao-websocket": "^0.8.63",
29
+ "@live-change/framework": "^0.8.63",
30
+ "@live-change/password-authentication-service": "^0.8.63",
31
+ "@live-change/secret-code-service": "^0.8.63",
32
+ "@live-change/secret-link-service": "^0.8.63",
33
+ "@live-change/session-service": "^0.8.63",
34
+ "@live-change/user-frontend": "^0.8.63",
35
+ "@live-change/user-service": "^0.8.63",
36
+ "@live-change/vue3-components": "^0.8.63",
37
+ "@live-change/vue3-ssr": "^0.8.63",
38
38
  "@vueuse/core": "^10.11.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.8.61",
57
+ "@live-change/codeceptjs-helper": "^0.8.63",
58
58
  "codeceptjs": "^3.6.5",
59
59
  "generate-password": "1.7.1",
60
60
  "playwright": "^1.41.2",
@@ -65,5 +65,5 @@
65
65
  "author": "Michał Łaszczewski <michal@laszczewski.pl>",
66
66
  "license": "BSD-3-Clause",
67
67
  "description": "",
68
- "gitHead": "3d88dcb3758467da1440e5d4500af531595aa310"
68
+ "gitHead": "f49f580138d6c44d9e9820197765ef982c5bab03"
69
69
  }