Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@signalwire/js

Package Overview
Dependencies
Maintainers
1
Versions
366
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@signalwire/js - npm Package Compare versions

Comparing version 1.3.0-alpha.9.1 to 1.3.0-alpha.9.2

1

dist/esm/common/src/webrtc/RTCPeer.d.ts

@@ -17,2 +17,3 @@ import { PeerType } from './constants';

getDeviceId(kind: string): string;
getTrackSettings(kind: string): MediaTrackSettings;
getDeviceLabel(kind: string): string;

@@ -19,0 +20,0 @@ applyMediaConstraints(kind: string, constraints: MediaTrackConstraints): Promise<void>;

@@ -90,2 +90,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

}
getTrackSettings(kind) {
try {
const sender = this._getSenderByKind(kind);
if (!sender || !sender.track) {
return null;
}
return sender.track.getSettings();
}
catch (error) {
logger.error('RTCPeer getTrackSettings error', kind, error);
}
}
getDeviceLabel(kind) {

@@ -92,0 +104,0 @@ try {

@@ -113,2 +113,4 @@ import BrowserSession from '../BrowserSession';

dtmf(dtmf: string): void;
sendCurrentMediaSettings(): Promise<any>;
private _sendVertoInfo;
transfer(destination: string, id?: string): void;

@@ -115,0 +117,0 @@ replace(callId: string): void;

@@ -207,2 +207,17 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

}
sendCurrentMediaSettings() {
const params = {
type: 'mediaSettings',
audioinput: this.peer.getTrackSettings('audio'),
videoinput: this.peer.getTrackSettings('video'),
audiooutput: {
deviceId: this.options.speakerId
},
};
return this._sendVertoInfo(params);
}
_sendVertoInfo(params) {
const msg = new Info(Object.assign(Object.assign({}, this.messagePayload), params));
return this._execute(msg);
}
transfer(destination, id) {

@@ -209,0 +224,0 @@ const msg = new Modify(Object.assign(Object.assign({}, this.messagePayload), { action: 'transfer', destination }));

2

dist/esm/js/index.d.ts
import Relay from './src/SignalWire';
import Verto from './src/Verto';
import CantinaAuth from '../common/src/webrtc/CantinaAuth';
export declare const VERSION = "1.3.0-alpha.9.1";
export declare const VERSION = "1.3.0-alpha.9.2";
export { Relay, Verto, CantinaAuth };
export * from '../common/src/util/interfaces';
export * from '../common/src/webrtc/interfaces';

@@ -5,4 +5,4 @@ import Relay from './src/SignalWire';

import CantinaAuth from '../common/src/webrtc/CantinaAuth';
export const VERSION = '1.3.0-alpha.9.1';
export const VERSION = '1.3.0-alpha.9.2';
setAgentName(`JavaScript SDK/${VERSION}`);
export { Relay, Verto, CantinaAuth };
{
"name": "@signalwire/js",
"version": "1.3.0-alpha.9.1",
"version": "1.3.0-alpha.9.2",
"description": "Relay SDK for JavaScript to connect to SignalWire.",

@@ -5,0 +5,0 @@ "author": "SignalWire Team <open.source@signalwire.com>",

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

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