New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@testrtc/watchrtc-sdk

Package Overview
Dependencies
Maintainers
2
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@testrtc/watchrtc-sdk - npm Package Compare versions

Comparing version 1.38.0-beta.2 to 1.38.0-beta.3

10

lib/interfaces.d.ts

@@ -27,3 +27,5 @@ export interface RTCPeerConnectionInformation {

keys?: any;
/** Enables additional logging */
/**
* @deprecated No longer needed. Use "logLevel" instead.
*/
debug?: boolean;

@@ -43,2 +45,4 @@ rtcToken?: string;

logGetStats?: boolean;
/** Logging level of SDK */
logLevel?: "silent" | "debug" | "info" | "error";
}

@@ -79,2 +83,5 @@ export declare type Rating = 1 | 2 | 3 | 4 | 5;

onClose?: (e: CloseEvent) => void;
options?: {
cleanOldTraces?: boolean;
};
}

@@ -90,3 +97,2 @@ export interface ISocketService {

enableDataCollection: () => void;
toggleDebug: (debug: boolean) => void;
}

@@ -93,0 +99,0 @@ export interface IWatchRTCInitServices {

2

lib/sdk.d.ts
import { IEvent, IStatsCallback, IWatchRTCConfiguration, IWatchRTCInitServices, Rating, StateListener } from "./interfaces";
export declare const sdkLog: (level: "debug" | "info" | "error", message: string, object?: Object | undefined) => void;
export declare const sdkLogWithoutTrace: (level: "debug" | "info" | "error", message: string, object?: Object | undefined) => void;
/**

@@ -3,0 +5,0 @@ * Initialize SDK.

import { IEvent, ISocketTrace, IWatchRTCConfiguration, IWatchrtcIdentifiers, Rating, RTCPeerConnectionInformation } from "./interfaces";
export declare const logPrefix: (type?: "error" | "info") => string[];
export declare const debugLog: (getDebugStatus: () => boolean, prefix: "info" | "error", message: string, object?: Object | undefined) => void;
export declare const debugLogWithoutTrace: (getDebugStatus: () => boolean, prefix: "info" | "error", message: string, object?: Object | undefined) => void;
declare type ConfigLogLevel = Required<IWatchRTCConfiguration>["logLevel"];
declare type LogLevel = Exclude<ConfigLogLevel, "silent">;
export declare const logPrefix: (level?: LogLevel) => string[];
export declare const getSdkLogger: (getLogLevel: () => ConfigLogLevel) => (level: LogLevel, message: string, object?: Object | undefined) => void;
export declare const getSdkLogWithoutTrace: (getLogLevel: () => ConfigLogLevel) => (level: LogLevel, message: string, object?: Object | undefined) => void;
export declare const deltaCompression: (oldStats: any, newStats: any) => any;

@@ -33,1 +35,2 @@ export declare const mangleChromeStats: (pc: any, response: any) => any;

export declare const generateID: () => string;
export {};

@@ -1,2 +0,2 @@

declare const _default: "1.38.0-beta.2";
declare const _default: "1.38.0-beta.3";
export default _default;
import { IHttpService } from "./interfaces";
interface IWatchRTCHttpOptions {
debug?: boolean;
}
export default class WatchRTCHttp implements IHttpService {
static _instance: WatchRTCHttp;
private debug;
constructor(options: IWatchRTCHttpOptions);
constructor();
trace(url: string, projectId?: string, rtcRoomId?: string, rtcPeerId?: string, ...data: any[]): Promise<{} | {

@@ -13,2 +9,1 @@ error: any;

}
export {};
import { ISocketService, ISocketTrace, ISocketConnectOptions } from "./interfaces";
interface IWatchRTCSocketOptions {
debug?: boolean;
}
export default class WatchRTCSocket implements ISocketService {

@@ -12,8 +9,7 @@ static _instance: WatchRTCSocket;

private onClose;
private debug;
private dataCollection;
private sendPromises;
private prevMessageTs;
constructor(options: IWatchRTCSocketOptions);
connect({ url, onData, onError, onOpen, onClose }: ISocketConnectOptions): void;
constructor();
connect({ url, onData, onError, onOpen, onClose, options }: ISocketConnectOptions): void;
trace: ISocketTrace;

@@ -23,4 +19,2 @@ close(nailUpCallEnd?: boolean): void;

enableDataCollection(): void;
toggleDebug(debug: boolean): void;
}
export {};
{
"name": "@testrtc/watchrtc-sdk",
"version": "1.38.0-beta.2",
"version": "1.38.0-beta.3",
"description": "Monitor your WebRTC application by collecting WebRTC statistics from end users",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -309,2 +309,8 @@ # watchRTC JS SDK

### 1.38.0.beta-3 (Oct 09, 2023)
- add `logLevel` configuration property to give more control over logs on SDK initialization.
- deprecated `debug` configuration property in favor of `logLevel`.
- flush any data that is older than the last 10 minutes and not send it to the server before first connection with server
### 1.38.0.beta-2 (Sep 28, 2023)

@@ -311,0 +317,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc