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

@signalwire/js

Package Overview
Dependencies
Maintainers
2
Versions
368
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 3.21.0 to 3.21.1-internal.202306281052.4a17f39.0

dist/js/src/utils/CloseEvent.d.ts

6

dist/core/src/testUtils.d.ts

@@ -60,5 +60,5 @@ /// <reference types="jest" />

};
connect: jest.Mock<any, any>;
disconnect: jest.Mock<any, any>;
execute: jest.Mock<any, any>;
connect: jest.Mock<any, any, any>;
disconnect: jest.Mock<any, any, any>;
execute: jest.Mock<any, any, any>;
};

@@ -65,0 +65,0 @@ emitter: EventEmitter<string | symbol, any>;

/**
* Polyfill the Event class for React Native platform
*/
declare class SwEvent {
type: string;
options?: EventInit | undefined;
constructor(type: string, options?: EventInit | undefined);
}
declare const CloseEvent_base: {
new (type: string, eventInitDict?: EventInit | undefined): Event;
prototype: Event;
readonly AT_TARGET: number;
readonly BUBBLING_PHASE: number;
readonly CAPTURING_PHASE: number;
readonly NONE: number;
} | typeof SwEvent;
/**
* Class representing a close event.

@@ -7,3 +23,3 @@ * The `ws` package does not expose it so we can easily create one in here.

*/
export declare class CloseEvent extends Event {
export declare class CloseEvent extends CloseEvent_base implements Event {
code: number;

@@ -17,3 +33,26 @@ reason: string;

});
bubbles: boolean;
cancelBubble: boolean;
cancelable: boolean;
composed: boolean;
currentTarget: EventTarget | null;
defaultPrevented: boolean;
eventPhase: number;
isTrusted: boolean;
returnValue: boolean;
srcElement: EventTarget | null;
target: EventTarget | null;
timeStamp: number;
type: string;
composedPath(): EventTarget[];
initEvent(_type: string, _bubbles?: boolean | undefined, _cancelable?: boolean | undefined): void;
preventDefault(): void;
stopImmediatePropagation(): void;
stopPropagation(): void;
NONE: 0;
CAPTURING_PHASE: 1;
AT_TARGET: 2;
BUBBLING_PHASE: 3;
}
export {};
//# sourceMappingURL=CloseEvent.d.ts.map

@@ -56,5 +56,5 @@ /// <reference types="jest" />

};
connect: jest.Mock<any, any>;
disconnect: jest.Mock<any, any>;
execute: jest.Mock<any, any>;
connect: jest.Mock<any, any, any>;
disconnect: jest.Mock<any, any, any>;
execute: jest.Mock<any, any, any>;
};

@@ -61,0 +61,0 @@ emitter: EventEmitter<string | symbol, any>;

@@ -26,2 +26,3 @@ import { EventEmitter } from '@signalwire/core';

private _remoteStream?;
private rtcConfigPolyfill;
private get logger();

@@ -89,3 +90,15 @@ constructor(call: BaseConnection<EventTypes>, type: RTCSdpType);

private emitMediaConnected;
/**
* React Native does not support getConfiguration
* so we polyfill it using a local `rtcConfigPolyfill` object.
* @see https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/setConfiguration#parameters
*/
private setConfiguration;
/**
* React Native does not support getConfiguration
* so we polyfill it using a local config object.
* @see https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/getConfiguration
*/
private getConfiguration;
}
//# sourceMappingURL=RTCPeer.d.ts.map

@@ -6,3 +6,3 @@ {

"license": "MIT",
"version": "3.21.0",
"version": "3.21.1-internal.202306281052.4a17f39.0",
"main": "dist/index.js",

@@ -40,11 +40,7 @@ "module": "dist/index.esm.js",

"example": "(cd examples && npm run dev)",
"docs": "npm run docs:md && npm run docs:html",
"docs:md": "typedoc --options typedoc.md.js",
"docs:html": "typedoc --options typedoc.html.js",
"docs:watch": "npm run docs -- --watch",
"prepublishOnly": "npm run build"
},
"dependencies": {
"@signalwire/core": "3.16.0",
"@signalwire/webrtc": "3.7.0",
"@signalwire/core": "3.16.1-internal.202306281052.4a17f39.0",
"@signalwire/webrtc": "3.7.1-internal.202306281052.4a17f39.0",
"jwt-decode": "^3.1.2"

@@ -51,0 +47,0 @@ },

@@ -9,6 +9,7 @@ import jwtDecode from 'jwt-decode'

import { getStorage, CALL_ID } from './utils/storage'
import { SwCloseEvent } from './utils/CloseEvent'
export class JWTSession extends BaseJWTSession {
public WebSocketConstructor = WebSocket
public CloseEventConstructor = CloseEvent
public CloseEventConstructor = SwCloseEvent
public agent = process.env.SDK_PKG_AGENT!

@@ -15,0 +16,0 @@

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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