@webex/plugin-meetings 3.10.0-next.9 → 3.10.0-webex-services-ready.2
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/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/constants.js +11 -3
- package/dist/constants.js.map +1 -1
- package/dist/hashTree/constants.js +20 -0
- package/dist/hashTree/constants.js.map +1 -0
- package/dist/hashTree/hashTree.js +515 -0
- package/dist/hashTree/hashTree.js.map +1 -0
- package/dist/hashTree/hashTreeParser.js +1266 -0
- package/dist/hashTree/hashTreeParser.js.map +1 -0
- package/dist/hashTree/types.js +22 -0
- package/dist/hashTree/types.js.map +1 -0
- package/dist/hashTree/utils.js +48 -0
- package/dist/hashTree/utils.js.map +1 -0
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/index.js +529 -75
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/types.js +7 -0
- package/dist/locus-info/types.js.map +1 -0
- package/dist/meeting/index.js +63 -22
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/util.js +1 -0
- package/dist/meeting/util.js.map +1 -1
- package/dist/meetings/index.js +112 -70
- package/dist/meetings/index.js.map +1 -1
- package/dist/metrics/constants.js +3 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/reachability/clusterReachability.js +44 -358
- package/dist/reachability/clusterReachability.js.map +1 -1
- package/dist/reachability/reachability.types.js +14 -1
- package/dist/reachability/reachability.types.js.map +1 -1
- package/dist/reachability/reachabilityPeerConnection.js +445 -0
- package/dist/reachability/reachabilityPeerConnection.js.map +1 -0
- package/dist/types/constants.d.ts +26 -21
- package/dist/types/hashTree/constants.d.ts +8 -0
- package/dist/types/hashTree/hashTree.d.ts +129 -0
- package/dist/types/hashTree/hashTreeParser.d.ts +260 -0
- package/dist/types/hashTree/types.d.ts +27 -0
- package/dist/types/hashTree/utils.d.ts +9 -0
- package/dist/types/locus-info/index.d.ts +95 -56
- package/dist/types/locus-info/types.d.ts +54 -0
- package/dist/types/meeting/index.d.ts +22 -9
- package/dist/types/meetings/index.d.ts +9 -2
- package/dist/types/metrics/constants.d.ts +2 -0
- package/dist/types/reachability/clusterReachability.d.ts +10 -88
- package/dist/types/reachability/reachability.types.d.ts +12 -1
- package/dist/types/reachability/reachabilityPeerConnection.d.ts +111 -0
- package/dist/webinar/index.js +1 -1
- package/package.json +22 -21
- package/src/constants.ts +13 -1
- package/src/hashTree/constants.ts +9 -0
- package/src/hashTree/hashTree.ts +463 -0
- package/src/hashTree/hashTreeParser.ts +1161 -0
- package/src/hashTree/types.ts +32 -0
- package/src/hashTree/utils.ts +42 -0
- package/src/locus-info/index.ts +571 -106
- package/src/locus-info/types.ts +53 -0
- package/src/meeting/index.ts +78 -27
- package/src/meeting/util.ts +1 -0
- package/src/meetings/index.ts +104 -51
- package/src/metrics/constants.ts +2 -0
- package/src/reachability/clusterReachability.ts +50 -347
- package/src/reachability/reachability.types.ts +15 -1
- package/src/reachability/reachabilityPeerConnection.ts +416 -0
- package/test/unit/spec/hashTree/hashTree.ts +655 -0
- package/test/unit/spec/hashTree/hashTreeParser.ts +1532 -0
- package/test/unit/spec/hashTree/utils.ts +103 -0
- package/test/unit/spec/locus-info/index.js +722 -4
- package/test/unit/spec/meeting/index.js +120 -20
- package/test/unit/spec/meeting/utils.js +77 -0
- package/test/unit/spec/meetings/index.js +71 -26
- package/test/unit/spec/reachability/clusterReachability.ts +281 -138
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import {deleteNestedObjectsWithHtMeta} from '../../../../src/hashTree/utils';
|
|
2
|
+
|
|
3
|
+
import {assert} from '@webex/test-helper-chai';
|
|
4
|
+
|
|
5
|
+
describe('Hash Tree Utils', () => {
|
|
6
|
+
describe('#deleteNestedObjectsWithHtMeta', () => {
|
|
7
|
+
it('should delete nested objects with htMeta', () => {
|
|
8
|
+
const locusPart = {
|
|
9
|
+
a: {
|
|
10
|
+
htMeta: {
|
|
11
|
+
id: '1',
|
|
12
|
+
},
|
|
13
|
+
value: 'to be deleted',
|
|
14
|
+
},
|
|
15
|
+
b: {
|
|
16
|
+
c: {
|
|
17
|
+
htMeta: {
|
|
18
|
+
id: '2',
|
|
19
|
+
},
|
|
20
|
+
value: 'to be deleted',
|
|
21
|
+
},
|
|
22
|
+
d: 'to be kept',
|
|
23
|
+
},
|
|
24
|
+
e: [
|
|
25
|
+
{
|
|
26
|
+
htMeta: {
|
|
27
|
+
id: '3',
|
|
28
|
+
},
|
|
29
|
+
value: 'to be deleted',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
f: 'to be kept',
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
htMeta: {
|
|
36
|
+
id: '4',
|
|
37
|
+
},
|
|
38
|
+
value: 'to be deleted',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
g: 'to be kept',
|
|
42
|
+
},
|
|
43
|
+
],
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
deleteNestedObjectsWithHtMeta(locusPart);
|
|
47
|
+
|
|
48
|
+
assert.deepEqual(locusPart, {
|
|
49
|
+
b: {
|
|
50
|
+
d: 'to be kept',
|
|
51
|
+
},
|
|
52
|
+
e: [
|
|
53
|
+
{
|
|
54
|
+
f: 'to be kept',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
g: 'to be kept',
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
|
|
63
|
+
it('should handle arrays correctly', () => {
|
|
64
|
+
const locusPart = {
|
|
65
|
+
htMeta: {
|
|
66
|
+
id: '0', // this should not be deleted
|
|
67
|
+
},
|
|
68
|
+
participants: [
|
|
69
|
+
{
|
|
70
|
+
htMeta: {
|
|
71
|
+
id: '1',
|
|
72
|
+
},
|
|
73
|
+
id: 'participant1',
|
|
74
|
+
value: 'to be deleted',
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
htMeta: {
|
|
78
|
+
id: '2',
|
|
79
|
+
},
|
|
80
|
+
id: 'participant2',
|
|
81
|
+
value: 'to be deleted',
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
self: {
|
|
85
|
+
htMeta: {
|
|
86
|
+
id: '3',
|
|
87
|
+
},
|
|
88
|
+
id: 'self1',
|
|
89
|
+
value: 'to be deleted',
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
deleteNestedObjectsWithHtMeta(locusPart);
|
|
94
|
+
|
|
95
|
+
assert.deepEqual(locusPart, {
|
|
96
|
+
htMeta: {
|
|
97
|
+
id: '0',
|
|
98
|
+
},
|
|
99
|
+
participants: [],
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
});
|