@live-change/peer-connection-frontend 0.8.61 → 0.8.62
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/front/src/components/Peer.js +5 -6
- package/package.json +16 -16
|
@@ -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 }
|
|
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.
|
|
3
|
+
"version": "0.8.62",
|
|
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.
|
|
26
|
-
"@live-change/dao": "^0.8.
|
|
27
|
-
"@live-change/dao-vue3": "^0.8.
|
|
28
|
-
"@live-change/dao-websocket": "^0.8.
|
|
29
|
-
"@live-change/framework": "^0.8.
|
|
30
|
-
"@live-change/password-authentication-service": "^0.8.
|
|
31
|
-
"@live-change/secret-code-service": "^0.8.
|
|
32
|
-
"@live-change/secret-link-service": "^0.8.
|
|
33
|
-
"@live-change/session-service": "^0.8.
|
|
34
|
-
"@live-change/user-frontend": "^0.8.
|
|
35
|
-
"@live-change/user-service": "^0.8.
|
|
36
|
-
"@live-change/vue3-components": "^0.8.
|
|
37
|
-
"@live-change/vue3-ssr": "^0.8.
|
|
25
|
+
"@live-change/cli": "^0.8.62",
|
|
26
|
+
"@live-change/dao": "^0.8.62",
|
|
27
|
+
"@live-change/dao-vue3": "^0.8.62",
|
|
28
|
+
"@live-change/dao-websocket": "^0.8.62",
|
|
29
|
+
"@live-change/framework": "^0.8.62",
|
|
30
|
+
"@live-change/password-authentication-service": "^0.8.62",
|
|
31
|
+
"@live-change/secret-code-service": "^0.8.62",
|
|
32
|
+
"@live-change/secret-link-service": "^0.8.62",
|
|
33
|
+
"@live-change/session-service": "^0.8.62",
|
|
34
|
+
"@live-change/user-frontend": "^0.8.62",
|
|
35
|
+
"@live-change/user-service": "^0.8.62",
|
|
36
|
+
"@live-change/vue3-components": "^0.8.62",
|
|
37
|
+
"@live-change/vue3-ssr": "^0.8.62",
|
|
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.
|
|
57
|
+
"@live-change/codeceptjs-helper": "^0.8.62",
|
|
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": "
|
|
68
|
+
"gitHead": "063d94e3e0a751ada8568b5b1913744c8879ea0e"
|
|
69
69
|
}
|