@ndustrial/contxt-sdk 5.7.4 → 5.8.1

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 (210) hide show
  1. package/.nvmrc +1 -1
  2. package/esm/bus/channels.js +0 -1
  3. package/esm/bus/channels.js.map +1 -1
  4. package/esm/bus/index.js +0 -1
  5. package/esm/bus/index.js.map +1 -1
  6. package/esm/bus/webSocketConnection.js +403 -405
  7. package/esm/bus/webSocketConnection.js.map +1 -1
  8. package/esm/config/index.js +27 -27
  9. package/esm/config/index.js.map +1 -1
  10. package/esm/coordinator/applications.js +0 -2
  11. package/esm/coordinator/applications.js.map +1 -1
  12. package/esm/coordinator/consent.js +0 -1
  13. package/esm/coordinator/consent.js.map +1 -1
  14. package/esm/coordinator/edgeNodes.js +0 -1
  15. package/esm/coordinator/edgeNodes.js.map +1 -1
  16. package/esm/coordinator/organizations.js +0 -2
  17. package/esm/coordinator/organizations.js.map +1 -1
  18. package/esm/coordinator/permissions.js +0 -1
  19. package/esm/coordinator/permissions.js.map +1 -1
  20. package/esm/coordinator/roles.js +0 -3
  21. package/esm/coordinator/roles.js.map +1 -1
  22. package/esm/coordinator/users.js +0 -2
  23. package/esm/coordinator/users.js.map +1 -1
  24. package/esm/events/index.js +0 -1
  25. package/esm/events/index.js.map +1 -1
  26. package/esm/files/index.js +20 -31
  27. package/esm/files/index.js.map +1 -1
  28. package/esm/index.js +7 -8
  29. package/esm/index.js.map +1 -1
  30. package/esm/iot/feeds.js +0 -1
  31. package/esm/iot/feeds.js.map +1 -1
  32. package/esm/iot/fieldCategories.js +0 -1
  33. package/esm/iot/fieldCategories.js.map +1 -1
  34. package/esm/iot/fieldGroupings.js +0 -1
  35. package/esm/iot/fieldGroupings.js.map +1 -1
  36. package/esm/iot/fields.js +0 -1
  37. package/esm/iot/fields.js.map +1 -1
  38. package/esm/iot/outputs.js +0 -1
  39. package/esm/iot/outputs.js.map +1 -1
  40. package/esm/nionic/index.js +12 -15
  41. package/esm/nionic/index.js.map +1 -1
  42. package/esm/request.js +8 -9
  43. package/esm/request.js.map +1 -1
  44. package/esm/sessionTypes/auth0WebAuth.js +10 -19
  45. package/esm/sessionTypes/auth0WebAuth.js.map +1 -1
  46. package/esm/sessionTypes/index.js +0 -1
  47. package/esm/sessionTypes/index.js.map +1 -1
  48. package/esm/sessionTypes/machineAuth.js +7 -16
  49. package/esm/sessionTypes/machineAuth.js.map +1 -1
  50. package/esm/sessionTypes/passwordGrantAuth.js +3 -6
  51. package/esm/sessionTypes/passwordGrantAuth.js.map +1 -1
  52. package/esm/utils/iot/formatOutputFieldDataFromServer.js +6 -13
  53. package/esm/utils/iot/formatOutputFieldDataFromServer.js.map +1 -1
  54. package/esm/utils/iot/parseOutputFieldNextPageUrlMetadata.js +0 -2
  55. package/esm/utils/iot/parseOutputFieldNextPageUrlMetadata.js.map +1 -1
  56. package/esm/utils/objects/createCaseChangeFn.js +4 -14
  57. package/esm/utils/objects/createCaseChangeFn.js.map +1 -1
  58. package/esm/utils/objects/map.js +5 -29
  59. package/esm/utils/objects/map.js.map +1 -1
  60. package/esm/utils/pagination/formatPaginatedDataFromServer.js +0 -1
  61. package/esm/utils/pagination/formatPaginatedDataFromServer.js.map +1 -1
  62. package/esm/utils/url/index.js +2 -2
  63. package/lib/bus/channels.js +0 -1
  64. package/lib/bus/channels.js.map +1 -1
  65. package/lib/bus/index.js +0 -1
  66. package/lib/bus/index.js.map +1 -1
  67. package/lib/bus/webSocketConnection.js +403 -405
  68. package/lib/bus/webSocketConnection.js.map +1 -1
  69. package/lib/config/index.js +27 -27
  70. package/lib/config/index.js.map +1 -1
  71. package/lib/coordinator/applications.js +0 -2
  72. package/lib/coordinator/applications.js.map +1 -1
  73. package/lib/coordinator/consent.js +0 -1
  74. package/lib/coordinator/consent.js.map +1 -1
  75. package/lib/coordinator/edgeNodes.js +0 -1
  76. package/lib/coordinator/edgeNodes.js.map +1 -1
  77. package/lib/coordinator/organizations.js +0 -2
  78. package/lib/coordinator/organizations.js.map +1 -1
  79. package/lib/coordinator/permissions.js +0 -1
  80. package/lib/coordinator/permissions.js.map +1 -1
  81. package/lib/coordinator/roles.js +0 -3
  82. package/lib/coordinator/roles.js.map +1 -1
  83. package/lib/coordinator/users.js +0 -2
  84. package/lib/coordinator/users.js.map +1 -1
  85. package/lib/events/index.js +0 -1
  86. package/lib/events/index.js.map +1 -1
  87. package/lib/files/index.js +20 -31
  88. package/lib/files/index.js.map +1 -1
  89. package/lib/index.js +7 -8
  90. package/lib/index.js.map +1 -1
  91. package/lib/iot/feeds.js +0 -1
  92. package/lib/iot/feeds.js.map +1 -1
  93. package/lib/iot/fieldCategories.js +0 -1
  94. package/lib/iot/fieldCategories.js.map +1 -1
  95. package/lib/iot/fieldGroupings.js +0 -1
  96. package/lib/iot/fieldGroupings.js.map +1 -1
  97. package/lib/iot/fields.js +0 -1
  98. package/lib/iot/fields.js.map +1 -1
  99. package/lib/iot/outputs.js +0 -1
  100. package/lib/iot/outputs.js.map +1 -1
  101. package/lib/nionic/index.js +12 -15
  102. package/lib/nionic/index.js.map +1 -1
  103. package/lib/request.js +8 -9
  104. package/lib/request.js.map +1 -1
  105. package/lib/sessionTypes/auth0WebAuth.js +10 -19
  106. package/lib/sessionTypes/auth0WebAuth.js.map +1 -1
  107. package/lib/sessionTypes/index.js +0 -1
  108. package/lib/sessionTypes/index.js.map +1 -1
  109. package/lib/sessionTypes/machineAuth.js +7 -16
  110. package/lib/sessionTypes/machineAuth.js.map +1 -1
  111. package/lib/sessionTypes/passwordGrantAuth.js +3 -6
  112. package/lib/sessionTypes/passwordGrantAuth.js.map +1 -1
  113. package/lib/utils/iot/formatOutputFieldDataFromServer.js +6 -13
  114. package/lib/utils/iot/formatOutputFieldDataFromServer.js.map +1 -1
  115. package/lib/utils/iot/parseOutputFieldNextPageUrlMetadata.js +0 -2
  116. package/lib/utils/iot/parseOutputFieldNextPageUrlMetadata.js.map +1 -1
  117. package/lib/utils/objects/createCaseChangeFn.js +4 -14
  118. package/lib/utils/objects/createCaseChangeFn.js.map +1 -1
  119. package/lib/utils/objects/map.js +5 -29
  120. package/lib/utils/objects/map.js.map +1 -1
  121. package/lib/utils/pagination/formatPaginatedDataFromServer.js +0 -1
  122. package/lib/utils/pagination/formatPaginatedDataFromServer.js.map +1 -1
  123. package/lib/utils/url/index.js +2 -2
  124. package/package.json +14 -7
  125. package/src/bus/index.spec.js +1 -1
  126. package/src/bus/webSocketConnection.js +1 -2
  127. package/src/bus/webSocketConnection.spec.js +53 -53
  128. package/src/config/index.spec.js +5 -5
  129. package/src/coordinator/applications.spec.js +7 -7
  130. package/src/coordinator/consent.spec.js +1 -1
  131. package/src/coordinator/edgeNodes.spec.js +2 -2
  132. package/src/coordinator/organizations.spec.js +3 -3
  133. package/src/coordinator/permissions.spec.js +3 -3
  134. package/src/coordinator/roles.spec.js +3 -3
  135. package/src/coordinator/users.spec.js +17 -17
  136. package/src/events/index.spec.js +15 -15
  137. package/src/files/index.spec.js +8 -8
  138. package/src/index.spec.js +8 -8
  139. package/src/iot/feeds.spec.js +3 -3
  140. package/src/iot/fieldCategories.spec.js +3 -3
  141. package/src/iot/fieldGroupings.spec.js +4 -4
  142. package/src/iot/outputs.spec.js +6 -6
  143. package/src/request.spec.js +3 -3
  144. package/src/sessionTypes/auth0WebAuth.spec.js +16 -14
  145. package/src/sessionTypes/index.spec.js +1 -1
  146. package/src/sessionTypes/machineAuth.spec.js +5 -5
  147. package/src/sessionTypes/passwordGrantAuth.spec.js +1 -1
  148. package/src/utils/iot/formatOutputFieldDataFromServer.spec.js +6 -6
  149. package/src/utils/iot/parseOutputFieldNextPageUrlMetadata.spec.js +3 -3
  150. package/src/utils/pagination/formatPaginatedDataFromServer.spec.js +2 -2
  151. package/src/utils/url/stringifyParams.spec.js +3 -3
  152. package/support/fixtures/factories/IOSDevice.js +4 -4
  153. package/support/fixtures/factories/applicationGrouping.js +6 -6
  154. package/support/fixtures/factories/applicationModule.js +3 -3
  155. package/support/fixtures/factories/asset.js +2 -2
  156. package/support/fixtures/factories/assetAttribute.js +4 -4
  157. package/support/fixtures/factories/assetAttributeValue.js +3 -3
  158. package/support/fixtures/factories/assetMetric.js +3 -3
  159. package/support/fixtures/factories/assetMetricValue.js +4 -4
  160. package/support/fixtures/factories/assetMetricValueCompact.js +3 -3
  161. package/support/fixtures/factories/assetType.js +2 -2
  162. package/support/fixtures/factories/audience.js +1 -1
  163. package/support/fixtures/factories/authResults.js +4 -4
  164. package/support/fixtures/factories/channel.js +2 -2
  165. package/support/fixtures/factories/contxtApplication.js +10 -10
  166. package/support/fixtures/factories/contxtOrganization.js +3 -3
  167. package/support/fixtures/factories/contxtOrganizationFeaturedApplication.js +4 -4
  168. package/support/fixtures/factories/contxtProject.js +7 -7
  169. package/support/fixtures/factories/contxtProjectEnvironment.js +7 -7
  170. package/support/fixtures/factories/contxtRole.js +5 -5
  171. package/support/fixtures/factories/contxtRoleApplication.js +2 -2
  172. package/support/fixtures/factories/contxtRoleProjectEnvironment.js +3 -3
  173. package/support/fixtures/factories/contxtUser.js +6 -6
  174. package/support/fixtures/factories/contxtUserApplication.js +2 -2
  175. package/support/fixtures/factories/contxtUserFavoriteApplication.js +3 -3
  176. package/support/fixtures/factories/contxtUserPermissions.js +6 -6
  177. package/support/fixtures/factories/contxtUserProjectEnvironment.js +3 -3
  178. package/support/fixtures/factories/contxtUserRole.js +3 -3
  179. package/support/fixtures/factories/costCenter.js +3 -3
  180. package/support/fixtures/factories/costCenterFacility.js +4 -4
  181. package/support/fixtures/factories/edgeNode.js +2 -2
  182. package/support/fixtures/factories/event.js +7 -7
  183. package/support/fixtures/factories/eventType.js +6 -6
  184. package/support/fixtures/factories/eventUser.js +8 -8
  185. package/support/fixtures/factories/facility.js +12 -12
  186. package/support/fixtures/factories/facilityGrouping.js +5 -5
  187. package/support/fixtures/factories/facilityGroupingFacility.js +4 -4
  188. package/support/fixtures/factories/facilityInfo.js +6 -6
  189. package/support/fixtures/factories/facilityTag.js +2 -2
  190. package/support/fixtures/factories/feedStatus.js +3 -3
  191. package/support/fixtures/factories/feedType.js +2 -2
  192. package/support/fixtures/factories/feeds.js +8 -8
  193. package/support/fixtures/factories/fieldCategory.js +4 -4
  194. package/support/fixtures/factories/fieldGrouping.js +6 -6
  195. package/support/fixtures/factories/fieldGroupingField.js +4 -4
  196. package/support/fixtures/factories/fieldGroupingStatus.js +3 -3
  197. package/support/fixtures/factories/file.js +3 -3
  198. package/support/fixtures/factories/fileToDownload.js +1 -1
  199. package/support/fixtures/factories/fileUploadInfo.js +3 -3
  200. package/support/fixtures/factories/organization.js +3 -3
  201. package/support/fixtures/factories/outputField.js +18 -18
  202. package/support/fixtures/factories/outputFieldData.js +2 -2
  203. package/support/fixtures/factories/owner.js +5 -5
  204. package/support/fixtures/factories/paginationMetadata.js +3 -3
  205. package/support/fixtures/factories/triggeredEvent.js +5 -5
  206. package/support/fixtures/factories/userEventSubscription.js +3 -3
  207. package/support/fixtures/factories/userMobileNumber.js +4 -4
  208. package/support/fixtures/factories/userPermissionsMap.js +3 -3
  209. package/support/fixtures/factories/userProfile.js +3 -3
  210. package/support/globals.js +11 -1
@@ -5,13 +5,11 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  require("core-js/modules/es.json.stringify.js");
8
- require("core-js/modules/es.promise.js");
9
- var _uuid = require("uuid");
10
8
  var _lodash = _interopRequireDefault(require("lodash.once"));
11
9
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
10
  function cov_2fh0o593ie() {
13
11
  var path = "/home/runner/work/contxt-sdk-js/contxt-sdk-js/src/bus/webSocketConnection.js";
14
- var hash = "1a9c510e85be0f75ec94b72f6bd03e919caab7bc";
12
+ var hash = "10e43a39265fceb451c11535b82f5df185dcf226";
15
13
  var global = new Function("return this")();
16
14
  var gcv = "__coverage__";
17
15
  var coverageData = {
@@ -19,781 +17,781 @@ function cov_2fh0o593ie() {
19
17
  statementMap: {
20
18
  "0": {
21
19
  start: {
22
- line: 35,
20
+ line: 34,
23
21
  column: 4
24
22
  },
25
23
  end: {
26
- line: 35,
24
+ line: 34,
27
25
  column: 31
28
26
  }
29
27
  },
30
28
  "1": {
31
29
  start: {
32
- line: 36,
30
+ line: 35,
33
31
  column: 4
34
32
  },
35
33
  end: {
36
- line: 36,
34
+ line: 35,
37
35
  column: 42
38
36
  }
39
37
  },
40
38
  "2": {
41
39
  start: {
42
- line: 37,
40
+ line: 36,
43
41
  column: 4
44
42
  },
45
43
  end: {
46
- line: 37,
44
+ line: 36,
47
45
  column: 32
48
46
  }
49
47
  },
50
48
  "3": {
51
49
  start: {
52
- line: 38,
50
+ line: 37,
53
51
  column: 4
54
52
  },
55
53
  end: {
56
- line: 38,
54
+ line: 37,
57
55
  column: 36
58
56
  }
59
57
  },
60
58
  "4": {
61
59
  start: {
62
- line: 40,
60
+ line: 39,
63
61
  column: 4
64
62
  },
65
63
  end: {
66
- line: 43,
64
+ line: 42,
67
65
  column: 5
68
66
  }
69
67
  },
70
68
  "5": {
71
69
  start: {
72
- line: 41,
70
+ line: 40,
73
71
  column: 6
74
72
  },
75
73
  end: {
76
- line: 41,
74
+ line: 40,
77
75
  column: 63
78
76
  }
79
77
  },
80
78
  "6": {
81
79
  start: {
82
- line: 42,
80
+ line: 41,
83
81
  column: 6
84
82
  },
85
83
  end: {
86
- line: 42,
84
+ line: 41,
87
85
  column: 50
88
86
  }
89
87
  },
90
88
  "7": {
91
89
  start: {
92
- line: 68,
90
+ line: 67,
93
91
  column: 4
94
92
  },
95
93
  end: {
96
- line: 70,
94
+ line: 69,
97
95
  column: 5
98
96
  }
99
97
  },
100
98
  "8": {
101
99
  start: {
102
- line: 69,
100
+ line: 68,
103
101
  column: 6
104
102
  },
105
103
  end: {
106
- line: 69,
104
+ line: 68,
107
105
  column: 80
108
106
  }
109
107
  },
110
108
  "9": {
111
109
  start: {
112
- line: 72,
110
+ line: 71,
113
111
  column: 4
114
112
  },
115
113
  end: {
116
- line: 74,
114
+ line: 73,
117
115
  column: 5
118
116
  }
119
117
  },
120
118
  "10": {
121
119
  start: {
122
- line: 73,
120
+ line: 72,
123
121
  column: 6
124
122
  },
125
123
  end: {
126
- line: 73,
124
+ line: 72,
127
125
  column: 72
128
126
  }
129
127
  },
130
128
  "11": {
131
129
  start: {
132
- line: 76,
130
+ line: 75,
133
131
  column: 4
134
132
  },
135
133
  end: {
136
- line: 76,
134
+ line: 75,
137
135
  column: 70
138
136
  }
139
137
  },
140
138
  "12": {
141
139
  start: {
142
- line: 92,
140
+ line: 91,
143
141
  column: 4
144
142
  },
145
143
  end: {
146
- line: 92,
144
+ line: 91,
147
145
  column: 28
148
146
  }
149
147
  },
150
148
  "13": {
151
149
  start: {
152
- line: 104,
150
+ line: 103,
153
151
  column: 13
154
152
  },
155
153
  end: {
156
- line: 108,
154
+ line: 107,
157
155
  column: 3
158
156
  }
159
157
  },
160
158
  "14": {
161
159
  start: {
162
- line: 105,
160
+ line: 104,
163
161
  column: 4
164
162
  },
165
163
  end: {
166
- line: 105,
164
+ line: 104,
167
165
  column: 31
168
166
  }
169
167
  },
170
168
  "15": {
171
169
  start: {
172
- line: 107,
170
+ line: 106,
173
171
  column: 4
174
172
  },
175
173
  end: {
176
- line: 107,
174
+ line: 106,
177
175
  column: 56
178
176
  }
179
177
  },
180
178
  "16": {
181
179
  start: {
182
- line: 117,
180
+ line: 116,
183
181
  column: 15
184
182
  },
185
183
  end: {
186
- line: 129,
184
+ line: 128,
187
185
  column: 3
188
186
  }
189
187
  },
190
188
  "17": {
191
189
  start: {
192
- line: 120,
190
+ line: 119,
193
191
  column: 4
194
192
  },
195
193
  end: {
196
- line: 124,
194
+ line: 123,
197
195
  column: 5
198
196
  }
199
197
  },
200
198
  "18": {
201
199
  start: {
202
- line: 121,
200
+ line: 120,
203
201
  column: 6
204
202
  },
205
203
  end: {
206
- line: 121,
204
+ line: 120,
207
205
  column: 45
208
206
  }
209
207
  },
210
208
  "19": {
211
209
  start: {
212
- line: 123,
210
+ line: 122,
213
211
  column: 6
214
212
  },
215
213
  end: {
216
- line: 123,
214
+ line: 122,
217
215
  column: 49
218
216
  }
219
217
  },
220
218
  "20": {
221
219
  start: {
222
- line: 126,
220
+ line: 125,
223
221
  column: 4
224
222
  },
225
223
  end: {
226
- line: 128,
224
+ line: 127,
227
225
  column: 5
228
226
  }
229
227
  },
230
228
  "21": {
231
229
  start: {
232
- line: 127,
230
+ line: 126,
233
231
  column: 6
234
232
  },
235
233
  end: {
236
- line: 127,
234
+ line: 126,
237
235
  column: 57
238
236
  }
239
237
  },
240
238
  "22": {
241
239
  start: {
242
- line: 154,
240
+ line: 153,
243
241
  column: 4
244
242
  },
245
243
  end: {
246
- line: 158,
244
+ line: 157,
247
245
  column: 5
248
246
  }
249
247
  },
250
248
  "23": {
251
249
  start: {
252
- line: 155,
250
+ line: 154,
253
251
  column: 6
254
252
  },
255
253
  end: {
256
- line: 157,
254
+ line: 156,
257
255
  column: 8
258
256
  }
259
257
  },
260
258
  "24": {
261
259
  start: {
262
- line: 160,
260
+ line: 159,
263
261
  column: 4
264
262
  },
265
263
  end: {
266
- line: 162,
264
+ line: 161,
267
265
  column: 5
268
266
  }
269
267
  },
270
268
  "25": {
271
269
  start: {
272
- line: 161,
270
+ line: 160,
273
271
  column: 6
274
272
  },
275
273
  end: {
276
- line: 161,
274
+ line: 160,
277
275
  column: 79
278
276
  }
279
277
  },
280
278
  "26": {
281
279
  start: {
282
- line: 164,
280
+ line: 163,
283
281
  column: 4
284
282
  },
285
283
  end: {
286
- line: 166,
284
+ line: 165,
287
285
  column: 5
288
286
  }
289
287
  },
290
288
  "27": {
291
289
  start: {
292
- line: 165,
290
+ line: 164,
293
291
  column: 6
294
292
  },
295
293
  end: {
296
- line: 165,
294
+ line: 164,
297
295
  column: 79
298
296
  }
299
297
  },
300
298
  "28": {
301
299
  start: {
302
- line: 168,
300
+ line: 167,
303
301
  column: 4
304
302
  },
305
303
  end: {
306
- line: 170,
304
+ line: 169,
307
305
  column: 5
308
306
  }
309
307
  },
310
308
  "29": {
311
309
  start: {
312
- line: 169,
310
+ line: 168,
313
311
  column: 6
314
312
  },
315
313
  end: {
316
- line: 169,
314
+ line: 168,
317
315
  column: 72
318
316
  }
319
317
  },
320
318
  "30": {
321
319
  start: {
322
- line: 172,
320
+ line: 171,
323
321
  column: 4
324
322
  },
325
323
  end: {
326
- line: 176,
324
+ line: 175,
327
325
  column: 7
328
326
  }
329
327
  },
330
328
  "31": {
331
329
  start: {
332
- line: 237,
330
+ line: 236,
333
331
  column: 4
334
332
  },
335
333
  end: {
336
- line: 241,
334
+ line: 240,
337
335
  column: 5
338
336
  }
339
337
  },
340
338
  "32": {
341
339
  start: {
342
- line: 238,
340
+ line: 237,
343
341
  column: 6
344
342
  },
345
343
  end: {
346
- line: 238,
344
+ line: 237,
347
345
  column: 29
348
346
  }
349
347
  },
350
348
  "33": {
351
349
  start: {
352
- line: 239,
350
+ line: 238,
353
351
  column: 6
354
352
  },
355
353
  end: {
356
- line: 239,
354
+ line: 238,
357
355
  column: 22
358
356
  }
359
357
  },
360
358
  "34": {
361
359
  start: {
362
- line: 240,
360
+ line: 239,
363
361
  column: 6
364
362
  },
365
363
  end: {
366
- line: 240,
364
+ line: 239,
367
365
  column: 19
368
366
  }
369
367
  },
370
368
  "35": {
371
369
  start: {
372
- line: 243,
370
+ line: 242,
373
371
  column: 4
374
372
  },
375
373
  end: {
376
- line: 247,
374
+ line: 246,
377
375
  column: 5
378
376
  }
379
377
  },
380
378
  "36": {
381
379
  start: {
382
- line: 244,
380
+ line: 243,
383
381
  column: 6
384
382
  },
385
383
  end: {
386
- line: 246,
384
+ line: 245,
387
385
  column: 8
388
386
  }
389
387
  },
390
388
  "37": {
391
389
  start: {
392
- line: 249,
390
+ line: 248,
393
391
  column: 4
394
392
  },
395
393
  end: {
396
- line: 251,
394
+ line: 250,
397
395
  column: 5
398
396
  }
399
397
  },
400
398
  "38": {
401
399
  start: {
402
- line: 250,
400
+ line: 249,
403
401
  column: 6
404
402
  },
405
403
  end: {
406
- line: 250,
404
+ line: 249,
407
405
  column: 80
408
406
  }
409
407
  },
410
408
  "39": {
411
409
  start: {
412
- line: 253,
410
+ line: 252,
413
411
  column: 4
414
412
  },
415
413
  end: {
416
- line: 257,
414
+ line: 256,
417
415
  column: 5
418
416
  }
419
417
  },
420
418
  "40": {
421
419
  start: {
422
- line: 254,
420
+ line: 253,
423
421
  column: 6
424
422
  },
425
423
  end: {
426
- line: 256,
424
+ line: 255,
427
425
  column: 8
428
426
  }
429
427
  },
430
428
  "41": {
431
429
  start: {
432
- line: 259,
430
+ line: 258,
433
431
  column: 4
434
432
  },
435
433
  end: {
436
- line: 263,
434
+ line: 262,
437
435
  column: 5
438
436
  }
439
437
  },
440
438
  "42": {
441
439
  start: {
442
- line: 260,
440
+ line: 259,
443
441
  column: 6
444
442
  },
445
443
  end: {
446
- line: 262,
444
+ line: 261,
447
445
  column: 8
448
446
  }
449
447
  },
450
448
  "43": {
451
449
  start: {
452
- line: 265,
450
+ line: 264,
453
451
  column: 4
454
452
  },
455
453
  end: {
456
- line: 267,
454
+ line: 266,
457
455
  column: 5
458
456
  }
459
457
  },
460
458
  "44": {
461
459
  start: {
462
- line: 266,
460
+ line: 265,
463
461
  column: 6
464
462
  },
465
463
  end: {
466
- line: 266,
464
+ line: 265,
467
465
  column: 72
468
466
  }
469
467
  },
470
468
  "45": {
471
469
  start: {
472
- line: 269,
470
+ line: 268,
473
471
  column: 19
474
472
  },
475
473
  end: {
476
- line: 272,
474
+ line: 271,
477
475
  column: 5
478
476
  }
479
477
  },
480
478
  "46": {
481
479
  start: {
482
- line: 274,
480
+ line: 273,
483
481
  column: 4
484
482
  },
485
483
  end: {
486
- line: 276,
484
+ line: 275,
487
485
  column: 5
488
486
  }
489
487
  },
490
488
  "47": {
491
489
  start: {
492
- line: 275,
490
+ line: 274,
493
491
  column: 6
494
492
  },
495
493
  end: {
496
- line: 275,
494
+ line: 274,
497
495
  column: 27
498
496
  }
499
497
  },
500
498
  "48": {
501
499
  start: {
502
- line: 278,
500
+ line: 277,
503
501
  column: 4
504
502
  },
505
503
  end: {
506
- line: 311,
504
+ line: 310,
507
505
  column: 6
508
506
  }
509
507
  },
510
508
  "49": {
511
509
  start: {
512
- line: 280,
510
+ line: 279,
513
511
  column: 8
514
512
  },
515
513
  end: {
516
- line: 307,
514
+ line: 306,
517
515
  column: 10
518
516
  }
519
517
  },
520
518
  "50": {
521
519
  start: {
522
- line: 281,
520
+ line: 280,
523
521
  column: 10
524
522
  },
525
523
  end: {
526
- line: 306,
524
+ line: 305,
527
525
  column: 13
528
526
  }
529
527
  },
530
528
  "51": {
531
529
  start: {
532
- line: 282,
530
+ line: 281,
533
531
  column: 26
534
532
  },
535
533
  end: {
536
- line: 282,
534
+ line: 281,
537
535
  column: 51
538
536
  }
539
537
  },
540
538
  "52": {
541
539
  start: {
542
- line: 283,
540
+ line: 282,
543
541
  column: 27
544
542
  },
545
543
  end: {
546
- line: 283,
544
+ line: 282,
547
545
  column: 53
548
546
  }
549
547
  },
550
548
  "53": {
551
549
  start: {
552
- line: 285,
550
+ line: 284,
553
551
  column: 12
554
552
  },
555
553
  end: {
556
- line: 287,
554
+ line: 286,
557
555
  column: 13
558
556
  }
559
557
  },
560
558
  "54": {
561
559
  start: {
562
- line: 286,
560
+ line: 285,
563
561
  column: 14
564
562
  },
565
563
  end: {
566
- line: 286,
564
+ line: 285,
567
565
  column: 50
568
566
  }
569
567
  },
570
568
  "55": {
571
569
  start: {
572
- line: 289,
570
+ line: 288,
573
571
  column: 12
574
572
  },
575
573
  end: {
576
- line: 305,
574
+ line: 304,
577
575
  column: 13
578
576
  }
579
577
  },
580
578
  "56": {
581
579
  start: {
582
- line: 290,
580
+ line: 289,
583
581
  column: 26
584
582
  },
585
583
  end: {
586
- line: 292,
584
+ line: 291,
587
585
  column: 16
588
586
  }
589
587
  },
590
588
  "57": {
591
589
  start: {
592
- line: 291,
590
+ line: 290,
593
591
  column: 16
594
592
  },
595
593
  end: {
596
- line: 291,
594
+ line: 290,
597
595
  column: 52
598
596
  }
599
597
  },
600
598
  "58": {
601
599
  start: {
602
- line: 294,
600
+ line: 293,
603
601
  column: 14
604
602
  },
605
603
  end: {
606
- line: 302,
604
+ line: 301,
607
605
  column: 16
608
606
  }
609
607
  },
610
608
  "59": {
611
609
  start: {
612
- line: 296,
610
+ line: 295,
613
611
  column: 18
614
612
  },
615
613
  end: {
616
- line: 298,
614
+ line: 297,
617
615
  column: 19
618
616
  }
619
617
  },
620
618
  "60": {
621
619
  start: {
622
- line: 297,
620
+ line: 296,
623
621
  column: 20
624
622
  },
625
623
  end: {
626
- line: 297,
624
+ line: 296,
627
625
  column: 49
628
626
  }
629
627
  },
630
628
  "61": {
631
629
  start: {
632
- line: 297,
630
+ line: 296,
633
631
  column: 44
634
632
  },
635
633
  end: {
636
- line: 297,
634
+ line: 296,
637
635
  column: 47
638
636
  }
639
637
  },
640
638
  "62": {
641
639
  start: {
642
- line: 300,
640
+ line: 299,
643
641
  column: 18
644
642
  },
645
643
  end: {
646
- line: 300,
644
+ line: 299,
647
645
  column: 29
648
646
  }
649
647
  },
650
648
  "63": {
651
649
  start: {
652
- line: 304,
650
+ line: 303,
653
651
  column: 14
654
652
  },
655
653
  end: {
656
- line: 304,
654
+ line: 303,
657
655
  column: 39
658
656
  }
659
657
  },
660
658
  "64": {
661
659
  start: {
662
- line: 309,
660
+ line: 308,
663
661
  column: 8
664
662
  },
665
663
  end: {
666
- line: 309,
664
+ line: 308,
667
665
  column: 22
668
666
  }
669
667
  },
670
668
  "65": {
671
669
  start: {
672
- line: 325,
670
+ line: 324,
673
671
  column: 4
674
672
  },
675
673
  end: {
676
- line: 327,
674
+ line: 326,
677
675
  column: 5
678
676
  }
679
677
  },
680
678
  "66": {
681
679
  start: {
682
- line: 326,
680
+ line: 325,
683
681
  column: 6
684
682
  },
685
683
  end: {
686
- line: 326,
684
+ line: 325,
687
685
  column: 72
688
686
  }
689
687
  },
690
688
  "67": {
691
689
  start: {
692
- line: 329,
690
+ line: 328,
693
691
  column: 4
694
692
  },
695
693
  end: {
696
- line: 331,
694
+ line: 330,
697
695
  column: 7
698
696
  }
699
697
  },
700
698
  "68": {
701
699
  start: {
702
- line: 344,
700
+ line: 343,
703
701
  column: 4
704
702
  },
705
703
  end: {
706
- line: 366,
704
+ line: 365,
707
705
  column: 7
708
706
  }
709
707
  },
710
708
  "69": {
711
709
  start: {
712
- line: 345,
710
+ line: 344,
713
711
  column: 24
714
712
  },
715
713
  end: {
716
- line: 345,
717
- column: 30
714
+ line: 344,
715
+ column: 43
718
716
  }
719
717
  },
720
718
  "70": {
721
719
  start: {
722
- line: 347,
720
+ line: 346,
723
721
  column: 6
724
722
  },
725
723
  end: {
726
- line: 356,
724
+ line: 355,
727
725
  column: 8
728
726
  }
729
727
  },
730
728
  "71": {
731
729
  start: {
732
- line: 348,
730
+ line: 347,
733
731
  column: 22
734
732
  },
735
733
  end: {
736
- line: 348,
734
+ line: 347,
737
735
  column: 35
738
736
  }
739
737
  },
740
738
  "72": {
741
739
  start: {
742
- line: 349,
740
+ line: 348,
743
741
  column: 8
744
742
  },
745
743
  end: {
746
- line: 349,
744
+ line: 348,
747
745
  column: 48
748
746
  }
749
747
  },
750
748
  "73": {
751
749
  start: {
752
- line: 351,
750
+ line: 350,
753
751
  column: 8
754
752
  },
755
753
  end: {
756
- line: 353,
754
+ line: 352,
757
755
  column: 9
758
756
  }
759
757
  },
760
758
  "74": {
761
759
  start: {
762
- line: 352,
760
+ line: 351,
763
761
  column: 10
764
762
  },
765
763
  end: {
766
- line: 352,
764
+ line: 351,
767
765
  column: 31
768
766
  }
769
767
  },
770
768
  "75": {
771
769
  start: {
772
- line: 355,
770
+ line: 354,
773
771
  column: 8
774
772
  },
775
773
  end: {
776
- line: 355,
774
+ line: 354,
777
775
  column: 39
778
776
  }
779
777
  },
780
778
  "76": {
781
779
  start: {
782
- line: 358,
780
+ line: 357,
783
781
  column: 6
784
782
  },
785
783
  end: {
786
- line: 365,
784
+ line: 364,
787
785
  column: 8
788
786
  }
789
787
  },
790
788
  "77": {
791
789
  start: {
792
- line: 377,
790
+ line: 376,
793
791
  column: 4
794
792
  },
795
793
  end: {
796
- line: 379,
794
+ line: 378,
797
795
  column: 6
798
796
  }
799
797
  }
@@ -803,479 +801,479 @@ function cov_2fh0o593ie() {
803
801
  name: "(anonymous_0)",
804
802
  decl: {
805
803
  start: {
806
- line: 34,
804
+ line: 33,
807
805
  column: 2
808
806
  },
809
807
  end: {
810
- line: 34,
808
+ line: 33,
811
809
  column: 3
812
810
  }
813
811
  },
814
812
  loc: {
815
813
  start: {
816
- line: 34,
814
+ line: 33,
817
815
  column: 65
818
816
  },
819
817
  end: {
820
- line: 44,
818
+ line: 43,
821
819
  column: 3
822
820
  }
823
821
  },
824
- line: 34
822
+ line: 33
825
823
  },
826
824
  "1": {
827
825
  name: "(anonymous_1)",
828
826
  decl: {
829
827
  start: {
830
- line: 67,
828
+ line: 66,
831
829
  column: 2
832
830
  },
833
831
  end: {
834
- line: 67,
832
+ line: 66,
835
833
  column: 3
836
834
  }
837
835
  },
838
836
  loc: {
839
837
  start: {
840
- line: 67,
838
+ line: 66,
841
839
  column: 19
842
840
  },
843
841
  end: {
844
- line: 77,
842
+ line: 76,
845
843
  column: 3
846
844
  }
847
845
  },
848
- line: 67
846
+ line: 66
849
847
  },
850
848
  "2": {
851
849
  name: "(anonymous_2)",
852
850
  decl: {
853
851
  start: {
854
- line: 91,
852
+ line: 90,
855
853
  column: 2
856
854
  },
857
855
  end: {
858
- line: 91,
856
+ line: 90,
859
857
  column: 3
860
858
  }
861
859
  },
862
860
  loc: {
863
861
  start: {
864
- line: 91,
862
+ line: 90,
865
863
  column: 10
866
864
  },
867
865
  end: {
868
- line: 93,
866
+ line: 92,
869
867
  column: 3
870
868
  }
871
869
  },
872
- line: 91
870
+ line: 90
873
871
  },
874
872
  "3": {
875
873
  name: "(anonymous_3)",
876
874
  decl: {
877
875
  start: {
878
- line: 104,
876
+ line: 103,
879
877
  column: 13
880
878
  },
881
879
  end: {
882
- line: 104,
880
+ line: 103,
883
881
  column: 14
884
882
  }
885
883
  },
886
884
  loc: {
887
885
  start: {
888
- line: 104,
886
+ line: 103,
889
887
  column: 24
890
888
  },
891
889
  end: {
892
- line: 108,
890
+ line: 107,
893
891
  column: 3
894
892
  }
895
893
  },
896
- line: 104
894
+ line: 103
897
895
  },
898
896
  "4": {
899
897
  name: "(anonymous_4)",
900
898
  decl: {
901
899
  start: {
902
- line: 117,
900
+ line: 116,
903
901
  column: 15
904
902
  },
905
903
  end: {
906
- line: 117,
904
+ line: 116,
907
905
  column: 16
908
906
  }
909
907
  },
910
908
  loc: {
911
909
  start: {
912
- line: 117,
910
+ line: 116,
913
911
  column: 28
914
912
  },
915
913
  end: {
916
- line: 129,
914
+ line: 128,
917
915
  column: 3
918
916
  }
919
917
  },
920
- line: 117
918
+ line: 116
921
919
  },
922
920
  "5": {
923
921
  name: "(anonymous_5)",
924
922
  decl: {
925
923
  start: {
926
- line: 153,
924
+ line: 152,
927
925
  column: 2
928
926
  },
929
927
  end: {
930
- line: 153,
928
+ line: 152,
931
929
  column: 3
932
930
  }
933
931
  },
934
932
  loc: {
935
933
  start: {
936
- line: 153,
934
+ line: 152,
937
935
  column: 45
938
936
  },
939
937
  end: {
940
- line: 177,
938
+ line: 176,
941
939
  column: 3
942
940
  }
943
941
  },
944
- line: 153
942
+ line: 152
945
943
  },
946
944
  "6": {
947
945
  name: "(anonymous_6)",
948
946
  decl: {
949
947
  start: {
950
- line: 236,
948
+ line: 235,
951
949
  column: 2
952
950
  },
953
951
  end: {
954
- line: 236,
952
+ line: 235,
955
953
  column: 3
956
954
  }
957
955
  },
958
956
  loc: {
959
957
  start: {
960
- line: 236,
958
+ line: 235,
961
959
  column: 68
962
960
  },
963
961
  end: {
964
- line: 312,
962
+ line: 311,
965
963
  column: 3
966
964
  }
967
965
  },
968
- line: 236
966
+ line: 235
969
967
  },
970
968
  "7": {
971
969
  name: "(anonymous_7)",
972
970
  decl: {
973
971
  start: {
974
- line: 279,
972
+ line: 278,
975
973
  column: 6
976
974
  },
977
975
  end: {
978
- line: 279,
976
+ line: 278,
979
977
  column: 7
980
978
  }
981
979
  },
982
980
  loc: {
983
981
  start: {
984
- line: 279,
982
+ line: 278,
985
983
  column: 18
986
984
  },
987
985
  end: {
988
- line: 310,
986
+ line: 309,
989
987
  column: 7
990
988
  }
991
989
  },
992
- line: 279
990
+ line: 278
993
991
  },
994
992
  "8": {
995
993
  name: "(anonymous_8)",
996
994
  decl: {
997
995
  start: {
998
- line: 280,
996
+ line: 279,
999
997
  column: 53
1000
998
  },
1001
999
  end: {
1002
- line: 280,
1000
+ line: 279,
1003
1001
  column: 54
1004
1002
  }
1005
1003
  },
1006
1004
  loc: {
1007
1005
  start: {
1008
- line: 280,
1006
+ line: 279,
1009
1007
  column: 78
1010
1008
  },
1011
1009
  end: {
1012
- line: 307,
1010
+ line: 306,
1013
1011
  column: 9
1014
1012
  }
1015
1013
  },
1016
- line: 280
1014
+ line: 279
1017
1015
  },
1018
1016
  "9": {
1019
1017
  name: "(anonymous_9)",
1020
1018
  decl: {
1021
1019
  start: {
1022
- line: 281,
1020
+ line: 280,
1023
1021
  column: 29
1024
1022
  },
1025
1023
  end: {
1026
- line: 281,
1024
+ line: 280,
1027
1025
  column: 30
1028
1026
  }
1029
1027
  },
1030
1028
  loc: {
1031
1029
  start: {
1032
- line: 281,
1030
+ line: 280,
1033
1031
  column: 50
1034
1032
  },
1035
1033
  end: {
1036
- line: 306,
1034
+ line: 305,
1037
1035
  column: 11
1038
1036
  }
1039
1037
  },
1040
- line: 281
1038
+ line: 280
1041
1039
  },
1042
1040
  "10": {
1043
1041
  name: "(anonymous_10)",
1044
1042
  decl: {
1045
1043
  start: {
1046
- line: 290,
1044
+ line: 289,
1047
1045
  column: 31
1048
1046
  },
1049
1047
  end: {
1050
- line: 290,
1048
+ line: 289,
1051
1049
  column: 32
1052
1050
  }
1053
1051
  },
1054
1052
  loc: {
1055
1053
  start: {
1056
- line: 290,
1054
+ line: 289,
1057
1055
  column: 37
1058
1056
  },
1059
1057
  end: {
1060
- line: 292,
1058
+ line: 291,
1061
1059
  column: 15
1062
1060
  }
1063
1061
  },
1064
- line: 290
1062
+ line: 289
1065
1063
  },
1066
1064
  "11": {
1067
1065
  name: "(anonymous_11)",
1068
1066
  decl: {
1069
1067
  start: {
1070
- line: 295,
1068
+ line: 294,
1071
1069
  column: 64
1072
1070
  },
1073
1071
  end: {
1074
- line: 295,
1072
+ line: 294,
1075
1073
  column: 65
1076
1074
  }
1077
1075
  },
1078
1076
  loc: {
1079
1077
  start: {
1080
- line: 295,
1078
+ line: 294,
1081
1079
  column: 73
1082
1080
  },
1083
1081
  end: {
1084
- line: 301,
1082
+ line: 300,
1085
1083
  column: 17
1086
1084
  }
1087
1085
  },
1088
- line: 295
1086
+ line: 294
1089
1087
  },
1090
1088
  "12": {
1091
1089
  name: "(anonymous_12)",
1092
1090
  decl: {
1093
1091
  start: {
1094
- line: 297,
1092
+ line: 296,
1095
1093
  column: 38
1096
1094
  },
1097
1095
  end: {
1098
- line: 297,
1096
+ line: 296,
1099
1097
  column: 39
1100
1098
  }
1101
1099
  },
1102
1100
  loc: {
1103
1101
  start: {
1104
- line: 297,
1102
+ line: 296,
1105
1103
  column: 44
1106
1104
  },
1107
1105
  end: {
1108
- line: 297,
1106
+ line: 296,
1109
1107
  column: 47
1110
1108
  }
1111
1109
  },
1112
- line: 297
1110
+ line: 296
1113
1111
  },
1114
1112
  "13": {
1115
1113
  name: "(anonymous_13)",
1116
1114
  decl: {
1117
1115
  start: {
1118
- line: 324,
1116
+ line: 323,
1119
1117
  column: 2
1120
1118
  },
1121
1119
  end: {
1122
- line: 324,
1120
+ line: 323,
1123
1121
  column: 3
1124
1122
  }
1125
1123
  },
1126
1124
  loc: {
1127
1125
  start: {
1128
- line: 324,
1126
+ line: 323,
1129
1127
  column: 38
1130
1128
  },
1131
1129
  end: {
1132
- line: 332,
1130
+ line: 331,
1133
1131
  column: 3
1134
1132
  }
1135
1133
  },
1136
- line: 324
1134
+ line: 323
1137
1135
  },
1138
1136
  "14": {
1139
1137
  name: "(anonymous_14)",
1140
1138
  decl: {
1141
1139
  start: {
1142
- line: 343,
1140
+ line: 342,
1143
1141
  column: 2
1144
1142
  },
1145
1143
  end: {
1146
- line: 343,
1144
+ line: 342,
1147
1145
  column: 3
1148
1146
  }
1149
1147
  },
1150
1148
  loc: {
1151
1149
  start: {
1152
- line: 343,
1150
+ line: 342,
1153
1151
  column: 48
1154
1152
  },
1155
1153
  end: {
1156
- line: 367,
1154
+ line: 366,
1157
1155
  column: 3
1158
1156
  }
1159
1157
  },
1160
- line: 343
1158
+ line: 342
1161
1159
  },
1162
1160
  "15": {
1163
1161
  name: "(anonymous_15)",
1164
1162
  decl: {
1165
1163
  start: {
1166
- line: 344,
1164
+ line: 343,
1167
1165
  column: 23
1168
1166
  },
1169
1167
  end: {
1170
- line: 344,
1168
+ line: 343,
1171
1169
  column: 24
1172
1170
  }
1173
1171
  },
1174
1172
  loc: {
1175
1173
  start: {
1176
- line: 344,
1174
+ line: 343,
1177
1175
  column: 44
1178
1176
  },
1179
1177
  end: {
1180
- line: 366,
1178
+ line: 365,
1181
1179
  column: 5
1182
1180
  }
1183
1181
  },
1184
- line: 344
1182
+ line: 343
1185
1183
  },
1186
1184
  "16": {
1187
1185
  name: "(anonymous_16)",
1188
1186
  decl: {
1189
1187
  start: {
1190
- line: 347,
1188
+ line: 346,
1191
1189
  column: 41
1192
1190
  },
1193
1191
  end: {
1194
- line: 347,
1192
+ line: 346,
1195
1193
  column: 42
1196
1194
  }
1197
1195
  },
1198
1196
  loc: {
1199
1197
  start: {
1200
- line: 347,
1198
+ line: 346,
1201
1199
  column: 54
1202
1200
  },
1203
1201
  end: {
1204
- line: 356,
1202
+ line: 355,
1205
1203
  column: 7
1206
1204
  }
1207
1205
  },
1208
- line: 347
1206
+ line: 346
1209
1207
  },
1210
1208
  "17": {
1211
1209
  name: "(anonymous_17)",
1212
1210
  decl: {
1213
1211
  start: {
1214
- line: 376,
1212
+ line: 375,
1215
1213
  column: 2
1216
1214
  },
1217
1215
  end: {
1218
- line: 376,
1216
+ line: 375,
1219
1217
  column: 3
1220
1218
  }
1221
1219
  },
1222
1220
  loc: {
1223
1221
  start: {
1224
- line: 376,
1222
+ line: 375,
1225
1223
  column: 17
1226
1224
  },
1227
1225
  end: {
1228
- line: 380,
1226
+ line: 379,
1229
1227
  column: 3
1230
1228
  }
1231
1229
  },
1232
- line: 376
1230
+ line: 375
1233
1231
  }
1234
1232
  },
1235
1233
  branchMap: {
1236
1234
  "0": {
1237
1235
  loc: {
1238
1236
  start: {
1239
- line: 34,
1237
+ line: 33,
1240
1238
  column: 41
1241
1239
  },
1242
1240
  end: {
1243
- line: 34,
1241
+ line: 33,
1244
1242
  column: 63
1245
1243
  }
1246
1244
  },
1247
1245
  type: "default-arg",
1248
1246
  locations: [{
1249
1247
  start: {
1250
- line: 34,
1248
+ line: 33,
1251
1249
  column: 59
1252
1250
  },
1253
1251
  end: {
1254
- line: 34,
1252
+ line: 33,
1255
1253
  column: 63
1256
1254
  }
1257
1255
  }],
1258
- line: 34
1256
+ line: 33
1259
1257
  },
1260
1258
  "1": {
1261
1259
  loc: {
1262
1260
  start: {
1263
- line: 40,
1261
+ line: 39,
1264
1262
  column: 4
1265
1263
  },
1266
1264
  end: {
1267
- line: 43,
1265
+ line: 42,
1268
1266
  column: 5
1269
1267
  }
1270
1268
  },
1271
1269
  type: "if",
1272
1270
  locations: [{
1273
1271
  start: {
1274
- line: 40,
1272
+ line: 39,
1275
1273
  column: 4
1276
1274
  },
1277
1275
  end: {
1278
- line: 43,
1276
+ line: 42,
1279
1277
  column: 5
1280
1278
  }
1281
1279
  }, {
@@ -1288,27 +1286,27 @@ function cov_2fh0o593ie() {
1288
1286
  column: undefined
1289
1287
  }
1290
1288
  }],
1291
- line: 40
1289
+ line: 39
1292
1290
  },
1293
1291
  "2": {
1294
1292
  loc: {
1295
1293
  start: {
1296
- line: 68,
1294
+ line: 67,
1297
1295
  column: 4
1298
1296
  },
1299
1297
  end: {
1300
- line: 70,
1298
+ line: 69,
1301
1299
  column: 5
1302
1300
  }
1303
1301
  },
1304
1302
  type: "if",
1305
1303
  locations: [{
1306
1304
  start: {
1307
- line: 68,
1305
+ line: 67,
1308
1306
  column: 4
1309
1307
  },
1310
1308
  end: {
1311
- line: 70,
1309
+ line: 69,
1312
1310
  column: 5
1313
1311
  }
1314
1312
  }, {
@@ -1321,27 +1319,27 @@ function cov_2fh0o593ie() {
1321
1319
  column: undefined
1322
1320
  }
1323
1321
  }],
1324
- line: 68
1322
+ line: 67
1325
1323
  },
1326
1324
  "3": {
1327
1325
  loc: {
1328
1326
  start: {
1329
- line: 72,
1327
+ line: 71,
1330
1328
  column: 4
1331
1329
  },
1332
1330
  end: {
1333
- line: 74,
1331
+ line: 73,
1334
1332
  column: 5
1335
1333
  }
1336
1334
  },
1337
1335
  type: "if",
1338
1336
  locations: [{
1339
1337
  start: {
1340
- line: 72,
1338
+ line: 71,
1341
1339
  column: 4
1342
1340
  },
1343
1341
  end: {
1344
- line: 74,
1342
+ line: 73,
1345
1343
  column: 5
1346
1344
  }
1347
1345
  }, {
@@ -1354,27 +1352,27 @@ function cov_2fh0o593ie() {
1354
1352
  column: undefined
1355
1353
  }
1356
1354
  }],
1357
- line: 72
1355
+ line: 71
1358
1356
  },
1359
1357
  "4": {
1360
1358
  loc: {
1361
1359
  start: {
1362
- line: 126,
1360
+ line: 125,
1363
1361
  column: 4
1364
1362
  },
1365
1363
  end: {
1366
- line: 128,
1364
+ line: 127,
1367
1365
  column: 5
1368
1366
  }
1369
1367
  },
1370
1368
  type: "if",
1371
1369
  locations: [{
1372
1370
  start: {
1373
- line: 126,
1371
+ line: 125,
1374
1372
  column: 4
1375
1373
  },
1376
1374
  end: {
1377
- line: 128,
1375
+ line: 127,
1378
1376
  column: 5
1379
1377
  }
1380
1378
  }, {
@@ -1387,27 +1385,27 @@ function cov_2fh0o593ie() {
1387
1385
  column: undefined
1388
1386
  }
1389
1387
  }],
1390
- line: 126
1388
+ line: 125
1391
1389
  },
1392
1390
  "5": {
1393
1391
  loc: {
1394
1392
  start: {
1395
- line: 154,
1393
+ line: 153,
1396
1394
  column: 4
1397
1395
  },
1398
1396
  end: {
1399
- line: 158,
1397
+ line: 157,
1400
1398
  column: 5
1401
1399
  }
1402
1400
  },
1403
1401
  type: "if",
1404
1402
  locations: [{
1405
1403
  start: {
1406
- line: 154,
1404
+ line: 153,
1407
1405
  column: 4
1408
1406
  },
1409
1407
  end: {
1410
- line: 158,
1408
+ line: 157,
1411
1409
  column: 5
1412
1410
  }
1413
1411
  }, {
@@ -1420,27 +1418,27 @@ function cov_2fh0o593ie() {
1420
1418
  column: undefined
1421
1419
  }
1422
1420
  }],
1423
- line: 154
1421
+ line: 153
1424
1422
  },
1425
1423
  "6": {
1426
1424
  loc: {
1427
1425
  start: {
1428
- line: 160,
1426
+ line: 159,
1429
1427
  column: 4
1430
1428
  },
1431
1429
  end: {
1432
- line: 162,
1430
+ line: 161,
1433
1431
  column: 5
1434
1432
  }
1435
1433
  },
1436
1434
  type: "if",
1437
1435
  locations: [{
1438
1436
  start: {
1439
- line: 160,
1437
+ line: 159,
1440
1438
  column: 4
1441
1439
  },
1442
1440
  end: {
1443
- line: 162,
1441
+ line: 161,
1444
1442
  column: 5
1445
1443
  }
1446
1444
  }, {
@@ -1453,27 +1451,27 @@ function cov_2fh0o593ie() {
1453
1451
  column: undefined
1454
1452
  }
1455
1453
  }],
1456
- line: 160
1454
+ line: 159
1457
1455
  },
1458
1456
  "7": {
1459
1457
  loc: {
1460
1458
  start: {
1461
- line: 164,
1459
+ line: 163,
1462
1460
  column: 4
1463
1461
  },
1464
1462
  end: {
1465
- line: 166,
1463
+ line: 165,
1466
1464
  column: 5
1467
1465
  }
1468
1466
  },
1469
1467
  type: "if",
1470
1468
  locations: [{
1471
1469
  start: {
1472
- line: 164,
1470
+ line: 163,
1473
1471
  column: 4
1474
1472
  },
1475
1473
  end: {
1476
- line: 166,
1474
+ line: 165,
1477
1475
  column: 5
1478
1476
  }
1479
1477
  }, {
@@ -1486,27 +1484,27 @@ function cov_2fh0o593ie() {
1486
1484
  column: undefined
1487
1485
  }
1488
1486
  }],
1489
- line: 164
1487
+ line: 163
1490
1488
  },
1491
1489
  "8": {
1492
1490
  loc: {
1493
1491
  start: {
1494
- line: 168,
1492
+ line: 167,
1495
1493
  column: 4
1496
1494
  },
1497
1495
  end: {
1498
- line: 170,
1496
+ line: 169,
1499
1497
  column: 5
1500
1498
  }
1501
1499
  },
1502
1500
  type: "if",
1503
1501
  locations: [{
1504
1502
  start: {
1505
- line: 168,
1503
+ line: 167,
1506
1504
  column: 4
1507
1505
  },
1508
1506
  end: {
1509
- line: 170,
1507
+ line: 169,
1510
1508
  column: 5
1511
1509
  }
1512
1510
  }, {
@@ -1519,27 +1517,27 @@ function cov_2fh0o593ie() {
1519
1517
  column: undefined
1520
1518
  }
1521
1519
  }],
1522
- line: 168
1520
+ line: 167
1523
1521
  },
1524
1522
  "9": {
1525
1523
  loc: {
1526
1524
  start: {
1527
- line: 237,
1525
+ line: 236,
1528
1526
  column: 4
1529
1527
  },
1530
1528
  end: {
1531
- line: 241,
1529
+ line: 240,
1532
1530
  column: 5
1533
1531
  }
1534
1532
  },
1535
1533
  type: "if",
1536
1534
  locations: [{
1537
1535
  start: {
1538
- line: 237,
1536
+ line: 236,
1539
1537
  column: 4
1540
1538
  },
1541
1539
  end: {
1542
- line: 241,
1540
+ line: 240,
1543
1541
  column: 5
1544
1542
  }
1545
1543
  }, {
@@ -1552,27 +1550,27 @@ function cov_2fh0o593ie() {
1552
1550
  column: undefined
1553
1551
  }
1554
1552
  }],
1555
- line: 237
1553
+ line: 236
1556
1554
  },
1557
1555
  "10": {
1558
1556
  loc: {
1559
1557
  start: {
1560
- line: 243,
1558
+ line: 242,
1561
1559
  column: 4
1562
1560
  },
1563
1561
  end: {
1564
- line: 247,
1562
+ line: 246,
1565
1563
  column: 5
1566
1564
  }
1567
1565
  },
1568
1566
  type: "if",
1569
1567
  locations: [{
1570
1568
  start: {
1571
- line: 243,
1569
+ line: 242,
1572
1570
  column: 4
1573
1571
  },
1574
1572
  end: {
1575
- line: 247,
1573
+ line: 246,
1576
1574
  column: 5
1577
1575
  }
1578
1576
  }, {
@@ -1585,27 +1583,27 @@ function cov_2fh0o593ie() {
1585
1583
  column: undefined
1586
1584
  }
1587
1585
  }],
1588
- line: 243
1586
+ line: 242
1589
1587
  },
1590
1588
  "11": {
1591
1589
  loc: {
1592
1590
  start: {
1593
- line: 249,
1591
+ line: 248,
1594
1592
  column: 4
1595
1593
  },
1596
1594
  end: {
1597
- line: 251,
1595
+ line: 250,
1598
1596
  column: 5
1599
1597
  }
1600
1598
  },
1601
1599
  type: "if",
1602
1600
  locations: [{
1603
1601
  start: {
1604
- line: 249,
1602
+ line: 248,
1605
1603
  column: 4
1606
1604
  },
1607
1605
  end: {
1608
- line: 251,
1606
+ line: 250,
1609
1607
  column: 5
1610
1608
  }
1611
1609
  }, {
@@ -1618,27 +1616,27 @@ function cov_2fh0o593ie() {
1618
1616
  column: undefined
1619
1617
  }
1620
1618
  }],
1621
- line: 249
1619
+ line: 248
1622
1620
  },
1623
1621
  "12": {
1624
1622
  loc: {
1625
1623
  start: {
1626
- line: 253,
1624
+ line: 252,
1627
1625
  column: 4
1628
1626
  },
1629
1627
  end: {
1630
- line: 257,
1628
+ line: 256,
1631
1629
  column: 5
1632
1630
  }
1633
1631
  },
1634
1632
  type: "if",
1635
1633
  locations: [{
1636
1634
  start: {
1637
- line: 253,
1635
+ line: 252,
1638
1636
  column: 4
1639
1637
  },
1640
1638
  end: {
1641
- line: 257,
1639
+ line: 256,
1642
1640
  column: 5
1643
1641
  }
1644
1642
  }, {
@@ -1651,27 +1649,27 @@ function cov_2fh0o593ie() {
1651
1649
  column: undefined
1652
1650
  }
1653
1651
  }],
1654
- line: 253
1652
+ line: 252
1655
1653
  },
1656
1654
  "13": {
1657
1655
  loc: {
1658
1656
  start: {
1659
- line: 259,
1657
+ line: 258,
1660
1658
  column: 4
1661
1659
  },
1662
1660
  end: {
1663
- line: 263,
1661
+ line: 262,
1664
1662
  column: 5
1665
1663
  }
1666
1664
  },
1667
1665
  type: "if",
1668
1666
  locations: [{
1669
1667
  start: {
1670
- line: 259,
1668
+ line: 258,
1671
1669
  column: 4
1672
1670
  },
1673
1671
  end: {
1674
- line: 263,
1672
+ line: 262,
1675
1673
  column: 5
1676
1674
  }
1677
1675
  }, {
@@ -1684,27 +1682,27 @@ function cov_2fh0o593ie() {
1684
1682
  column: undefined
1685
1683
  }
1686
1684
  }],
1687
- line: 259
1685
+ line: 258
1688
1686
  },
1689
1687
  "14": {
1690
1688
  loc: {
1691
1689
  start: {
1692
- line: 265,
1690
+ line: 264,
1693
1691
  column: 4
1694
1692
  },
1695
1693
  end: {
1696
- line: 267,
1694
+ line: 266,
1697
1695
  column: 5
1698
1696
  }
1699
1697
  },
1700
1698
  type: "if",
1701
1699
  locations: [{
1702
1700
  start: {
1703
- line: 265,
1701
+ line: 264,
1704
1702
  column: 4
1705
1703
  },
1706
1704
  end: {
1707
- line: 267,
1705
+ line: 266,
1708
1706
  column: 5
1709
1707
  }
1710
1708
  }, {
@@ -1717,27 +1715,27 @@ function cov_2fh0o593ie() {
1717
1715
  column: undefined
1718
1716
  }
1719
1717
  }],
1720
- line: 265
1718
+ line: 264
1721
1719
  },
1722
1720
  "15": {
1723
1721
  loc: {
1724
1722
  start: {
1725
- line: 274,
1723
+ line: 273,
1726
1724
  column: 4
1727
1725
  },
1728
1726
  end: {
1729
- line: 276,
1727
+ line: 275,
1730
1728
  column: 5
1731
1729
  }
1732
1730
  },
1733
1731
  type: "if",
1734
1732
  locations: [{
1735
1733
  start: {
1736
- line: 274,
1734
+ line: 273,
1737
1735
  column: 4
1738
1736
  },
1739
1737
  end: {
1740
- line: 276,
1738
+ line: 275,
1741
1739
  column: 5
1742
1740
  }
1743
1741
  }, {
@@ -1750,27 +1748,27 @@ function cov_2fh0o593ie() {
1750
1748
  column: undefined
1751
1749
  }
1752
1750
  }],
1753
- line: 274
1751
+ line: 273
1754
1752
  },
1755
1753
  "16": {
1756
1754
  loc: {
1757
1755
  start: {
1758
- line: 285,
1756
+ line: 284,
1759
1757
  column: 12
1760
1758
  },
1761
1759
  end: {
1762
- line: 287,
1760
+ line: 286,
1763
1761
  column: 13
1764
1762
  }
1765
1763
  },
1766
1764
  type: "if",
1767
1765
  locations: [{
1768
1766
  start: {
1769
- line: 285,
1767
+ line: 284,
1770
1768
  column: 12
1771
1769
  },
1772
1770
  end: {
1773
- line: 287,
1771
+ line: 286,
1774
1772
  column: 13
1775
1773
  }
1776
1774
  }, {
@@ -1783,27 +1781,27 @@ function cov_2fh0o593ie() {
1783
1781
  column: undefined
1784
1782
  }
1785
1783
  }],
1786
- line: 285
1784
+ line: 284
1787
1785
  },
1788
1786
  "17": {
1789
1787
  loc: {
1790
1788
  start: {
1791
- line: 296,
1789
+ line: 295,
1792
1790
  column: 18
1793
1791
  },
1794
1792
  end: {
1795
- line: 298,
1793
+ line: 297,
1796
1794
  column: 19
1797
1795
  }
1798
1796
  },
1799
1797
  type: "if",
1800
1798
  locations: [{
1801
1799
  start: {
1802
- line: 296,
1800
+ line: 295,
1803
1801
  column: 18
1804
1802
  },
1805
1803
  end: {
1806
- line: 298,
1804
+ line: 297,
1807
1805
  column: 19
1808
1806
  }
1809
1807
  }, {
@@ -1816,27 +1814,27 @@ function cov_2fh0o593ie() {
1816
1814
  column: undefined
1817
1815
  }
1818
1816
  }],
1819
- line: 296
1817
+ line: 295
1820
1818
  },
1821
1819
  "18": {
1822
1820
  loc: {
1823
1821
  start: {
1824
- line: 325,
1822
+ line: 324,
1825
1823
  column: 4
1826
1824
  },
1827
1825
  end: {
1828
- line: 327,
1826
+ line: 326,
1829
1827
  column: 5
1830
1828
  }
1831
1829
  },
1832
1830
  type: "if",
1833
1831
  locations: [{
1834
1832
  start: {
1835
- line: 325,
1833
+ line: 324,
1836
1834
  column: 4
1837
1835
  },
1838
1836
  end: {
1839
- line: 327,
1837
+ line: 326,
1840
1838
  column: 5
1841
1839
  }
1842
1840
  }, {
@@ -1849,27 +1847,27 @@ function cov_2fh0o593ie() {
1849
1847
  column: undefined
1850
1848
  }
1851
1849
  }],
1852
- line: 325
1850
+ line: 324
1853
1851
  },
1854
1852
  "19": {
1855
1853
  loc: {
1856
1854
  start: {
1857
- line: 351,
1855
+ line: 350,
1858
1856
  column: 8
1859
1857
  },
1860
1858
  end: {
1861
- line: 353,
1859
+ line: 352,
1862
1860
  column: 9
1863
1861
  }
1864
1862
  },
1865
1863
  type: "if",
1866
1864
  locations: [{
1867
1865
  start: {
1868
- line: 351,
1866
+ line: 350,
1869
1867
  column: 8
1870
1868
  },
1871
1869
  end: {
1872
- line: 353,
1870
+ line: 352,
1873
1871
  column: 9
1874
1872
  }
1875
1873
  }, {
@@ -1882,40 +1880,40 @@ function cov_2fh0o593ie() {
1882
1880
  column: undefined
1883
1881
  }
1884
1882
  }],
1885
- line: 351
1883
+ line: 350
1886
1884
  },
1887
1885
  "20": {
1888
1886
  loc: {
1889
1887
  start: {
1890
- line: 378,
1888
+ line: 377,
1891
1889
  column: 6
1892
1890
  },
1893
1891
  end: {
1894
- line: 378,
1892
+ line: 377,
1895
1893
  column: 76
1896
1894
  }
1897
1895
  },
1898
1896
  type: "binary-expr",
1899
1897
  locations: [{
1900
1898
  start: {
1901
- line: 378,
1899
+ line: 377,
1902
1900
  column: 6
1903
1901
  },
1904
1902
  end: {
1905
- line: 378,
1903
+ line: 377,
1906
1904
  column: 21
1907
1905
  }
1908
1906
  }, {
1909
1907
  start: {
1910
- line: 378,
1908
+ line: 377,
1911
1909
  column: 25
1912
1910
  },
1913
1911
  end: {
1914
- line: 378,
1912
+ line: 377,
1915
1913
  column: 76
1916
1914
  }
1917
1915
  }],
1918
- line: 378
1916
+ line: 377
1919
1917
  }
1920
1918
  },
1921
1919
  s: {
@@ -2042,7 +2040,7 @@ function cov_2fh0o593ie() {
2042
2040
  "20": [0, 0]
2043
2041
  },
2044
2042
  _coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
2045
- hash: "1a9c510e85be0f75ec94b72f6bd03e919caab7bc"
2043
+ hash: "10e43a39265fceb451c11535b82f5df185dcf226"
2046
2044
  };
2047
2045
  var coverage = global[gcv] || (global[gcv] = {});
2048
2046
  if (!coverage[path] || coverage[path].hash !== hash) {
@@ -2058,9 +2056,6 @@ function cov_2fh0o593ie() {
2058
2056
  return actualCoverage;
2059
2057
  }
2060
2058
  cov_2fh0o593ie();
2061
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
2062
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
2063
- function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
2064
2059
  /**
2065
2060
  * The WebSocket Error Event
2066
2061
  *
@@ -2092,49 +2087,6 @@ class WebSocketConnection {
2092
2087
  * @param {boolean} autoAcknowledge Whether the messages should be ACK'd explicitly or not
2093
2088
  */
2094
2089
  constructor(webSocket, organizationId, autoAcknowledge = (cov_2fh0o593ie().b[0][0]++, true)) {
2095
- /**
2096
- * Handles WebSocket errors.
2097
- * The `ws` library also closes the socket when an error occurs.
2098
- * Since the socket connection closes, the jsonRpcId and message handlers are cleared
2099
- *
2100
- * @param {WebSocketError} error The error event thrown
2101
- *
2102
- * @private
2103
- */
2104
- _defineProperty(this, "_onError", (cov_2fh0o593ie().s[13]++, error => {
2105
- cov_2fh0o593ie().f[3]++;
2106
- cov_2fh0o593ie().s[14]++;
2107
- this._messageHandlers = {};
2108
- cov_2fh0o593ie().s[15]++;
2109
- console.log('Message Bus WebSocket Error: ', error);
2110
- }));
2111
- /**
2112
- * Handles messages sent from the Message Bus WebSocket connection.
2113
- *
2114
- * @param {WebSocketMessage} message The message event recieved over the WebSocket connection
2115
- *
2116
- * @private
2117
- */
2118
- _defineProperty(this, "_onMessage", (cov_2fh0o593ie().s[16]++, message => {
2119
- cov_2fh0o593ie().f[4]++;
2120
- let messageData;
2121
- cov_2fh0o593ie().s[17]++;
2122
- try {
2123
- cov_2fh0o593ie().s[18]++;
2124
- messageData = JSON.parse(message.data);
2125
- } catch (err) {
2126
- cov_2fh0o593ie().s[19]++;
2127
- throw new Error('Invalid JSON in message');
2128
- }
2129
- cov_2fh0o593ie().s[20]++;
2130
- if (this._messageHandlers[messageData.id]) {
2131
- cov_2fh0o593ie().b[4][0]++;
2132
- cov_2fh0o593ie().s[21]++;
2133
- this._messageHandlers[messageData.id](messageData);
2134
- } else {
2135
- cov_2fh0o593ie().b[4][1]++;
2136
- }
2137
- }));
2138
2090
  cov_2fh0o593ie().f[0]++;
2139
2091
  cov_2fh0o593ie().s[0]++;
2140
2092
  this._messageHandlers = {};
@@ -2218,6 +2170,52 @@ class WebSocketConnection {
2218
2170
  cov_2fh0o593ie().s[12]++;
2219
2171
  this._webSocket.close();
2220
2172
  }
2173
+
2174
+ /**
2175
+ * Handles WebSocket errors.
2176
+ * The `ws` library also closes the socket when an error occurs.
2177
+ * Since the socket connection closes, the jsonRpcId and message handlers are cleared
2178
+ *
2179
+ * @param {WebSocketError} error The error event thrown
2180
+ *
2181
+ * @private
2182
+ */
2183
+ _onError = (cov_2fh0o593ie().s[13]++, error => {
2184
+ cov_2fh0o593ie().f[3]++;
2185
+ cov_2fh0o593ie().s[14]++;
2186
+ this._messageHandlers = {};
2187
+ cov_2fh0o593ie().s[15]++;
2188
+ console.log('Message Bus WebSocket Error: ', error);
2189
+ });
2190
+
2191
+ /**
2192
+ * Handles messages sent from the Message Bus WebSocket connection.
2193
+ *
2194
+ * @param {WebSocketMessage} message The message event recieved over the WebSocket connection
2195
+ *
2196
+ * @private
2197
+ */
2198
+ _onMessage = (cov_2fh0o593ie().s[16]++, message => {
2199
+ cov_2fh0o593ie().f[4]++;
2200
+ let messageData;
2201
+ cov_2fh0o593ie().s[17]++;
2202
+ try {
2203
+ cov_2fh0o593ie().s[18]++;
2204
+ messageData = JSON.parse(message.data);
2205
+ } catch (err) {
2206
+ cov_2fh0o593ie().s[19]++;
2207
+ throw new Error('Invalid JSON in message');
2208
+ }
2209
+ cov_2fh0o593ie().s[20]++;
2210
+ if (this._messageHandlers[messageData.id]) {
2211
+ cov_2fh0o593ie().b[4][0]++;
2212
+ cov_2fh0o593ie().s[21]++;
2213
+ this._messageHandlers[messageData.id](messageData);
2214
+ } else {
2215
+ cov_2fh0o593ie().b[4][1]++;
2216
+ }
2217
+ });
2218
+
2221
2219
  /**
2222
2220
  * Publishes a message to a specific channel on the message bus
2223
2221
  *
@@ -2500,7 +2498,7 @@ class WebSocketConnection {
2500
2498
  cov_2fh0o593ie().s[68]++;
2501
2499
  return new Promise((resolve, reject) => {
2502
2500
  cov_2fh0o593ie().f[15]++;
2503
- const messageId = (cov_2fh0o593ie().s[69]++, (0, _uuid.v4)());
2501
+ const messageId = (cov_2fh0o593ie().s[69]++, crypto.randomUUID());
2504
2502
  cov_2fh0o593ie().s[70]++;
2505
2503
  this._messageHandlers[messageId] = message => {
2506
2504
  cov_2fh0o593ie().f[16]++;