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

@signalapp/ringrtc

Package Overview
Dependencies
Maintainers
5
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@signalapp/ringrtc - npm Package Compare versions

Comparing version 2.25.2 to 2.26.0

2

dist/index.d.ts
import { RingRTCType } from './ringrtc/Service';
export { AudioDevice, BandwidthMode, Call, CallEndedReason, CallId, CallLogLevel, CallMessageUrgency, CallSettings, CallState, CallingMessage, ConnectionState, DeviceId, GroupCall, GroupCallEndReason, GroupCallObserver, GroupMemberInfo, HangupMessage, HangupType, HttpMethod, JoinState, LocalDeviceState, OfferType, OpaqueMessage, PeekInfo, RemoteDeviceState, RingCancelReason, RingRTCType, RingUpdate, UserId, VideoCapturer, VideoRenderer, VideoRequest, } from './ringrtc/Service';
export { AudioDevice, BandwidthMode, Call, CallEndedReason, CallId, CallLogLevel, CallMessageUrgency, CallSettings, CallState, CallingMessage, ConnectionState, DeviceId, GroupCall, GroupCallEndReason, GroupCallObserver, GroupMemberInfo, HangupMessage, HangupType, HttpMethod, JoinState, LocalDeviceState, OfferType, OpaqueMessage, PeekInfo, RemoteDeviceState, RingCancelReason, RingRTCType, RingUpdate, UserId, VideoCapturer, VideoRenderer, VideoRequest, callIdFromEra, callIdFromRingId, } from './ringrtc/Service';
export { CanvasVideoRenderer, GumVideoCapturer, VideoFrameSource, MAX_VIDEO_CAPTURE_AREA, MAX_VIDEO_CAPTURE_BUFFER_SIZE, MAX_VIDEO_CAPTURE_HEIGHT, MAX_VIDEO_CAPTURE_WIDTH, } from './ringrtc/VideoSupport';
export declare const RingRTC: RingRTCType;

@@ -7,3 +7,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.RingRTC = exports.MAX_VIDEO_CAPTURE_WIDTH = exports.MAX_VIDEO_CAPTURE_HEIGHT = exports.MAX_VIDEO_CAPTURE_BUFFER_SIZE = exports.MAX_VIDEO_CAPTURE_AREA = exports.GumVideoCapturer = exports.CanvasVideoRenderer = exports.VideoRequest = exports.RingUpdate = exports.RingRTCType = exports.RingCancelReason = exports.RemoteDeviceState = exports.PeekInfo = exports.OpaqueMessage = exports.OfferType = exports.LocalDeviceState = exports.JoinState = exports.HttpMethod = exports.HangupType = exports.HangupMessage = exports.GroupMemberInfo = exports.GroupCallEndReason = exports.GroupCall = exports.ConnectionState = exports.CallingMessage = exports.CallState = exports.CallMessageUrgency = exports.CallLogLevel = exports.CallEndedReason = exports.Call = exports.BandwidthMode = void 0;
exports.RingRTC = exports.MAX_VIDEO_CAPTURE_WIDTH = exports.MAX_VIDEO_CAPTURE_HEIGHT = exports.MAX_VIDEO_CAPTURE_BUFFER_SIZE = exports.MAX_VIDEO_CAPTURE_AREA = exports.GumVideoCapturer = exports.CanvasVideoRenderer = exports.callIdFromRingId = exports.callIdFromEra = exports.VideoRequest = exports.RingUpdate = exports.RingRTCType = exports.RingCancelReason = exports.RemoteDeviceState = exports.PeekInfo = exports.OpaqueMessage = exports.OfferType = exports.LocalDeviceState = exports.JoinState = exports.HttpMethod = exports.HangupType = exports.HangupMessage = exports.GroupMemberInfo = exports.GroupCallEndReason = exports.GroupCall = exports.ConnectionState = exports.CallingMessage = exports.CallState = exports.CallMessageUrgency = exports.CallLogLevel = exports.CallEndedReason = exports.Call = exports.BandwidthMode = void 0;
const Service_1 = require("./ringrtc/Service");

@@ -35,2 +35,4 @@ var Service_2 = require("./ringrtc/Service");

Object.defineProperty(exports, "VideoRequest", { enumerable: true, get: function () { return Service_2.VideoRequest; } });
Object.defineProperty(exports, "callIdFromEra", { enumerable: true, get: function () { return Service_2.callIdFromEra; } });
Object.defineProperty(exports, "callIdFromRingId", { enumerable: true, get: function () { return Service_2.callIdFromRingId; } });
var VideoSupport_1 = require("./ringrtc/VideoSupport");

@@ -44,1 +46,2 @@ Object.defineProperty(exports, "CanvasVideoRenderer", { enumerable: true, get: function () { return VideoSupport_1.CanvasVideoRenderer; } });

exports.RingRTC = new Service_1.RingRTCType();
//# sourceMappingURL=index.js.map
/// <reference types="node" />
import { GumVideoCaptureOptions, VideoPixelFormatEnum } from './VideoSupport';
export declare const callIdFromEra: (era: string) => CallId;
export declare function callIdFromRingId(ringId: bigint): CallId;
declare class Config {

@@ -350,3 +352,7 @@ use_new_audio_device_module: boolean;

export type DeviceId = number;
export type CallId = any;
export type CallId = {
high: number;
low: number;
unsigned: boolean;
};
export declare class CallingMessage {

@@ -428,3 +434,3 @@ offer?: OfferMessage;

receiveVideoFrame(buffer: Buffer, maxWidth: number, maxHeight: number): [number, number] | undefined;
receivedOffer(remoteUserId: UserId, remoteDeviceId: DeviceId, messageAgeSec: number, callId: CallId, offerType: OfferType, localDeviceId: DeviceId, opaque: Buffer, senderIdentityKey: Buffer, receiverIdentityKey: Buffer): void;
receivedOffer(remoteUserId: UserId, remoteDeviceId: DeviceId, localDeviceId: DeviceId, messageAgeSec: number, callId: CallId, offerType: OfferType, opaque: Buffer, senderIdentityKey: Buffer, receiverIdentityKey: Buffer): void;
receivedAnswer(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, opaque: Buffer, senderIdentityKey: Buffer, receiverIdentityKey: Buffer): void;

@@ -431,0 +437,0 @@ receivedIceCandidates(remoteUserId: UserId, remoteDeviceId: DeviceId, callId: CallId, candidates: Array<Buffer>): void;

@@ -39,3 +39,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.CallLogLevel = exports.CallEndedReason = exports.CallState = exports.RingCancelReason = exports.BandwidthMode = exports.HangupType = exports.OpaqueMessage = exports.HangupMessage = exports.BusyMessage = exports.IceCandidateMessage = exports.AnswerMessage = exports.OfferType = exports.OfferMessage = exports.CallingMessage = exports.GroupCall = exports.VideoRequest = exports.GroupMemberInfo = exports.RemoteDeviceState = exports.LocalDeviceState = exports.HttpMethod = exports.RingUpdate = exports.CallMessageUrgency = exports.GroupCallEndReason = exports.JoinState = exports.ConnectionState = exports.Call = exports.RingRTCType = exports.ReceivedAudioLevel = exports.NetworkRoute = exports.PeekInfo = exports.PeekDeviceInfo = void 0;
exports.CallLogLevel = exports.CallEndedReason = exports.CallState = exports.RingCancelReason = exports.BandwidthMode = exports.HangupType = exports.OpaqueMessage = exports.HangupMessage = exports.BusyMessage = exports.IceCandidateMessage = exports.AnswerMessage = exports.OfferType = exports.OfferMessage = exports.CallingMessage = exports.GroupCall = exports.VideoRequest = exports.GroupMemberInfo = exports.RemoteDeviceState = exports.LocalDeviceState = exports.HttpMethod = exports.RingUpdate = exports.CallMessageUrgency = exports.GroupCallEndReason = exports.JoinState = exports.ConnectionState = exports.Call = exports.RingRTCType = exports.ReceivedAudioLevel = exports.NetworkRoute = exports.PeekInfo = exports.PeekDeviceInfo = exports.callIdFromRingId = exports.callIdFromEra = void 0;
/* eslint-disable max-classes-per-file */

@@ -46,2 +46,11 @@ const os = __importStar(require("os"));

const Native = require(`../../build/${os.platform()}/libringrtc-${process.arch}.node`);
exports.callIdFromEra = Native.callIdFromEra;
function callIdFromRingId(ringId) {
return {
low: Number(BigInt.asIntN(32, ringId)),
high: Number(BigInt.asIntN(32, ringId >> BigInt(32))),
unsigned: true,
};
}
exports.callIdFromRingId = callIdFromRingId;
class Config {

@@ -245,3 +254,6 @@ constructor() {

// CallId is u64 so use a string key instead.
return `${callId.high}${callId.low}`;
// Note that the representation is not padded, so we include a separator.
// Otherwise {1, 123} and {11, 23} would have the same key.
// (We could use Long.toString as well, but it doesn't matter what the key is.)
return `${callId.high} ${callId.low}`;
}

@@ -775,2 +787,6 @@ constructor() {

}
if (!callId) {
this.logWarn('handleCallingMessage(): No call ID in ice message');
return;
}
this.callManager.receivedIceCandidates(remoteUserId, remoteDeviceId, callId, candidates);

@@ -1523,1 +1539,2 @@ }

}
//# sourceMappingURL=Service.js.map

@@ -429,1 +429,2 @@ "use strict";

exports.CanvasVideoRenderer = CanvasVideoRenderer;
//# sourceMappingURL=VideoSupport.js.map
{
"name": "@signalapp/ringrtc",
"version": "2.25.2",
"version": "2.26.0",
"description": "Signal Messenger voice and video calling library.",

@@ -8,3 +8,6 @@ "main": "dist/index.js",

"files": [
"dist/*",
"dist/*.js",
"dist/*.d.ts",
"dist/ringrtc/*.js",
"dist/ringrtc/*.d.ts",
"scripts/fetch-prebuild.js"

@@ -15,3 +18,3 @@ ],

"clean": "rimraf dist",
"test": "electron-mocha --renderer --recursive dist/test --timeout 10000",
"test": "electron-mocha --renderer --recursive dist/test --timeout 10000 --require source-map-support/register",
"eslint": "eslint --cache .",

@@ -25,3 +28,3 @@ "lint": "yarn format --list-different && yarn eslint",

"prebuildUrl": "https://build-artifacts.signal.org/libraries/ringrtc-desktop-build-v${npm_package_version}.tar.gz",
"prebuildChecksum": "b953fd21380c7025b5004bd0db99274737be1aeec1c76133f08568adcfd5adaf"
"prebuildChecksum": "1e55feb92467730da4b2481e390d4f6257b88e70dcd47c4feff27925f44443a3"
},

@@ -58,2 +61,3 @@ "author": "",

"sinon-chai": "^3.7.0",
"source-map-support": "^0.5.19",
"typescript": "4.9.3",

@@ -60,0 +64,0 @@ "yarn-audit-fix": "^9.3.9"

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