@live-change/peer-connection-service 0.8.148 → 0.9.0

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/peerState.js +0 -22
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/peer-connection-service",
3
- "version": "0.8.148",
3
+ "version": "0.9.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -11,5 +11,5 @@
11
11
  },
12
12
  "author": "Michał Łaszczewski <michal@emikse.com>",
13
13
  "license": "BSD-3-Clause",
14
- "gitHead": "34032c9007403b19096a1ecbaf5f99231a65ae92"
14
+ "gitHead": "b82513f5b400afcc4b8cc3ae1f9dfe4ac3a2a6eb"
15
15
  }
package/peerState.js CHANGED
@@ -46,28 +46,6 @@ definition.event({
46
46
  }
47
47
  })
48
48
 
49
- definition.view({
50
- name: "peerState",
51
- properties: {
52
- peer: {
53
- type: Peer
54
- }
55
- },
56
- returns: {
57
- type: PeerState
58
- },
59
- access: async ({ peer }, context) => {
60
- const { client, service, visibilityTest } = context
61
- if(visibilityTest) return true
62
- const [toType, toId, toSession] = peer.split(':')
63
- const hasRole = await clientHasAccessRoles(client, { objectType: toType, object: toId }, writerRoles)
64
- return hasRole
65
- },
66
- async daoPath({ peer }, { client, service }, method) {
67
- return PeerState.path(peer)
68
- }
69
- })
70
-
71
49
  definition.action({
72
50
  name: "setPeerState",
73
51
  properties: {