livekit-client 2.18.3 → 2.18.4

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/src/room/types.ts CHANGED
@@ -92,7 +92,8 @@ export type SimulationScenario =
92
92
  | 'disconnect-signal-on-resume'
93
93
  | 'disconnect-signal-on-resume-no-messages'
94
94
  // instructs the server to send a full reconnect reconnect action to the client
95
- | 'leave-full-reconnect';
95
+ | 'leave-full-reconnect'
96
+ | 'fail-on-v1-path';
96
97
 
97
98
  export type LoggerOptions = {
98
99
  loggerName?: string;
@@ -29,7 +29,7 @@ export class DeferrableMap<K, V> extends Map<K, V> {
29
29
  super.set(key, value);
30
30
 
31
31
  // Resolve any futures waiting on this key.
32
- const futures = this.pending.get(key);
32
+ const futures = this.pending?.get(key);
33
33
  if (futures) {
34
34
  for (const future of futures) {
35
35
  if (!future.isResolved) {
@@ -43,7 +43,7 @@ export class DeferrableMap<K, V> extends Map<K, V> {
43
43
  }
44
44
 
45
45
  get [Symbol.toStringTag](): string {
46
- return 'WaitableMap';
46
+ return 'DeferrableMap';
47
47
  }
48
48
 
49
49
  /**