@webex/plugin-meetings 1.150.1 → 1.151.3

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.
@@ -236,6 +236,22 @@ const waitUntil = (waitTime) => new Promise((resolve) => {
236
236
 
237
237
  const flushPromises = () => new Promise(setImmediate);
238
238
 
239
+ const getCircularReplacer = () => {
240
+ const seen = new WeakSet();
241
+
242
+ return (_, value) => {
243
+ if (typeof value === 'object' && value !== null) {
244
+ if (seen.has(value)) {
245
+ return;
246
+ }
247
+ seen.add(value);
248
+ }
249
+
250
+ // eslint-disable-next-line consistent-return
251
+ return value;
252
+ };
253
+ };
254
+
239
255
  export default {
240
256
  waitForSpy,
241
257
  waitForStateChange,
@@ -246,6 +262,7 @@ export default {
246
262
  addMedia,
247
263
  waitUntil,
248
264
  delayedTest,
249
- flushPromises
265
+ flushPromises,
266
+ getCircularReplacer
250
267
  };
251
268