@signalwire/js
Advanced tools
Comparing version 3.21.0 to 3.21.1-internal.202306281052.4a17f39.0
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2464032
484
23000
1
+ Added@signalwire/core@3.16.1-internal.202306281052.4a17f39.0(transitive)
+ Added@signalwire/webrtc@3.7.1-internal.202306281052.4a17f39.0(transitive)
+ Addedeventemitter3@5.0.1(transitive)
+ Addeduuid@9.0.1(transitive)
- Removed@signalwire/core@3.16.0(transitive)
- Removed@signalwire/webrtc@3.7.0(transitive)
- Removedeventemitter3@4.0.7(transitive)
- Removeduuid@8.3.2(transitive)
Updated@signalwire/core@3.16.1-internal.202306281052.4a17f39.0
Updated@signalwire/webrtc@3.7.1-internal.202306281052.4a17f39.0