@vkontakte/calls-sdk 2.6.2-dev.3549b06.0 → 2.6.2-dev.596c19c.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.
@@ -4,7 +4,6 @@ export default class ScreenCaptureSender {
4
4
  private _destroyed;
5
5
  private _needKeyframe;
6
6
  private readonly DATA_SIZE;
7
- private readonly _timer;
8
7
  constructor(track: MediaStreamTrack, datachannel: RTCDataChannel);
9
8
  private _requestFrame;
10
9
  private _wrapHeader;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vkontakte/calls-sdk",
3
- "version": "2.6.2-dev.3549b06.0",
3
+ "version": "2.6.2-dev.596c19c.0",
4
4
  "author": "vk.com",
5
5
  "description": "Library for video calls based on the vk.com platform",
6
6
  "homepage": "https://vk.com",
package/static/Utils.d.ts CHANGED
@@ -62,6 +62,6 @@ declare namespace Utils {
62
62
  function participantMarkerCompare(marker1: ExternalParticipantListMarker | undefined, marker2: ExternalParticipantListMarker | undefined): number;
63
63
  /** убирает все ключи со значением `V` на 1 уровне */
64
64
  function objectFilterOutValues<T extends Record<string, V>, V = unknown>(obj: T, value?: V | V[]): Partial<T>;
65
- function createBlobWorker(workerFunctionData: string, workerArgs?: unknown[]): string;
65
+ function setImmediate(fn: () => void): () => void;
66
66
  }
67
67
  export default Utils;
package/types/Timer.d.ts DELETED
@@ -1,18 +0,0 @@
1
- export declare type IID = string | number;
2
- export declare type ISetTimeout = ReturnType<typeof setTimeout>;
3
- export interface IMessageTimeout {
4
- type: 'timeout';
5
- id: IID;
6
- ms?: number;
7
- }
8
- export interface IMessageThrottle extends Omit<IMessageTimeout, 'type'> {
9
- type: 'throttle';
10
- }
11
- export interface IMessageReady {
12
- type: 'ready';
13
- }
14
- export interface IMessageError {
15
- type: 'error';
16
- data: unknown;
17
- }
18
- export declare type IEventData = IMessageTimeout | IMessageError | IMessageThrottle | IMessageReady;
package/utils/Timer.d.ts DELETED
@@ -1,26 +0,0 @@
1
- import { IID, IMessageError, IMessageReady, IMessageThrottle, IMessageTimeout } from '../types/Timer';
2
- declare type ICallback = (...args: unknown[]) => void;
3
- interface ITimerWorkerParams {
4
- onError?: (data: IMessageError | ErrorEvent) => void;
5
- onTimeout?: (data: IMessageTimeout) => void;
6
- onThrottle?: (data: IMessageThrottle) => void;
7
- onReady?: (data: IMessageReady) => void;
8
- }
9
- export declare class Timer {
10
- _worker: Worker;
11
- _timeouts: Map<IID, ICallback>;
12
- _throttles: Map<IID, ICallback>;
13
- constructor();
14
- initWorker({ onError, onTimeout, onThrottle, onReady }?: ITimerWorkerParams): Promise<void>;
15
- /** отложить коллбек */
16
- postTimeout(id: IID, callback: ICallback, ms?: number): void;
17
- /** throttle коллбек */
18
- postThrottle(id: IID, callback: ICallback, ms?: number): void;
19
- /** вызывает отложенный коллбек */
20
- private _callTimeout;
21
- /** вызывает отложенный throttle коллбек */
22
- private _callThrottle;
23
- /** удаляет воркер */
24
- destroy(): void;
25
- }
26
- export {};
@@ -1,3 +0,0 @@
1
- /// <reference lib="webworker" />
2
- declare const _default: () => void;
3
- export default _default;