@signalwire/js
Advanced tools
Comparing version 3.15.0 to 3.16.0-dev.202209221336.8132100.0
@@ -37,2 +37,4 @@ import { PayloadAction } from './redux'; | ||
get status(): SessionStatus; | ||
get idle(): boolean; | ||
get ready(): boolean; | ||
set token(token: string); | ||
@@ -39,0 +41,0 @@ /** |
@@ -17,3 +17,3 @@ import type { SagaIterator } from '@redux-saga/types'; | ||
}): SagaIterator; | ||
export declare function socketClosedWorker({ session, sessionChannel, pubSubChannel, }: { | ||
export declare function socketClosedWorker({ session, pubSubChannel, }: { | ||
session: BaseSession; | ||
@@ -34,2 +34,5 @@ sessionChannel: EventChannel<unknown>; | ||
} | import("./interfaces").MapToPubSubShape<import("..").VideoManagerRoomsSubscribedEvent> | import("./interfaces").MapToPubSubShape<import("..").VideoManagerRoomEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatChannelMessageEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberJoinedEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").ChatMemberLeftEvent> | import("./interfaces").MapToPubSubShape<import("..").PubSubChannelMessageEvent> | import("..").TaskAction | import("./interfaces").MapToPubSubShape<import("..").MessagingStateEvent> | import("./interfaces").MapToPubSubShape<import("..").MessageUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").MessagingReceiveEvent> | import("./interfaces").MapToPubSubShape<import("..").MessageReceivedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallDialEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallStateEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallReceiveEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallPlayEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallRecordEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallCollectEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallTapEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallConnectEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallSendDigitsEvent> | import("./interfaces").MapToPubSubShape<import("..").CallingCallDetectEvent> | import("./interfaces").MapToPubSubShape<import("..").CallReceivedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPlaybackStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPlaybackUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPlaybackEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallRecordingFailedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallPromptFailedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallTapStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallTapEndedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectConnectingEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectConnectedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectDisconnectedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallConnectFailedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallDetectStartedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallDetectUpdatedEvent> | import("./interfaces").MapToPubSubShape<import("..").CallDetectEndedEvent>> | import("@redux-saga/core/effects").CallEffect<void> | import("@redux-saga/core/effects").PutEffect<{ | ||
payload: import("../utils/interfaces").RPCConnectResult; | ||
type: string; | ||
}> | import("@redux-saga/core/effects").PutEffect<{ | ||
payload: { | ||
@@ -36,0 +39,0 @@ error: import("../utils/interfaces").SessionAuthError; |
@@ -1287,3 +1287,3 @@ var __defProp = Object.defineProperty; | ||
__publicField(this, "WebSocketConstructor", WebSocket); | ||
__publicField(this, "agent", "@signalwire/js/browser/3.15.0"); | ||
__publicField(this, "agent", "@signalwire/js/browser/3.16.0-dev.202209221336.8132100.0"); | ||
} | ||
@@ -1367,4 +1367,11 @@ get allowHijack() { | ||
}; | ||
const interceptors = { | ||
_session: client, | ||
disconnect: () => client.disconnect() | ||
}; | ||
return new Proxy(client.chat, { | ||
get(target, prop, receiver) { | ||
if (prop in interceptors) { | ||
return interceptors[prop]; | ||
} | ||
if (INTERCEPTED_METHODS.includes(prop)) { | ||
@@ -1405,4 +1412,11 @@ return createInterceptor(prop); | ||
}; | ||
const interceptors = { | ||
_session: client, | ||
disconnect: () => client.disconnect() | ||
}; | ||
return new Proxy(client.pubSub, { | ||
get(target, prop, receiver) { | ||
if (prop in interceptors) { | ||
return interceptors[prop]; | ||
} | ||
if (INTERCEPTED_METHODS2.includes(prop)) { | ||
@@ -1409,0 +1423,0 @@ return createInterceptor(prop); |
@@ -1292,3 +1292,3 @@ var __create = Object.create; | ||
__publicField(this, "WebSocketConstructor", WebSocket); | ||
__publicField(this, "agent", "@signalwire/js/browser/3.15.0"); | ||
__publicField(this, "agent", "@signalwire/js/browser/3.16.0-dev.202209221336.8132100.0"); | ||
} | ||
@@ -1376,4 +1376,11 @@ get allowHijack() { | ||
}; | ||
const interceptors = { | ||
_session: client, | ||
disconnect: () => client.disconnect() | ||
}; | ||
return new Proxy(client.chat, { | ||
get(target, prop, receiver) { | ||
if (prop in interceptors) { | ||
return interceptors[prop]; | ||
} | ||
if (INTERCEPTED_METHODS.includes(prop)) { | ||
@@ -1414,4 +1421,11 @@ return createInterceptor(prop); | ||
}; | ||
const interceptors = { | ||
_session: client, | ||
disconnect: () => client.disconnect() | ||
}; | ||
return new Proxy(client.pubSub, { | ||
get(target, prop, receiver) { | ||
if (prop in interceptors) { | ||
return interceptors[prop]; | ||
} | ||
if (INTERCEPTED_METHODS2.includes(prop)) { | ||
@@ -1418,0 +1432,0 @@ return createInterceptor(prop); |
@@ -6,3 +6,3 @@ { | ||
"license": "MIT", | ||
"version": "3.15.0", | ||
"version": "3.16.0-dev.202209221336.8132100.0", | ||
"main": "dist/index.js", | ||
@@ -47,4 +47,4 @@ "module": "dist/index.esm.js", | ||
"dependencies": { | ||
"@signalwire/core": "3.12.0", | ||
"@signalwire/webrtc": "3.5.7", | ||
"@signalwire/core": "3.12.1-dev.202209221336.8132100.0", | ||
"@signalwire/webrtc": "3.5.8-dev.202209221336.8132100.0", | ||
"jwt-decode": "^3.1.2" | ||
@@ -51,0 +51,0 @@ }, |
@@ -17,3 +17,2 @@ import type { | ||
/** @ignore */ | ||
@@ -77,4 +76,14 @@ export interface ClientOptions extends UserOptions {} | ||
const interceptors = { | ||
_session: client, | ||
disconnect: () => client.disconnect(), | ||
} as const | ||
return new Proxy<Client>(client.chat, { | ||
get(target: Client, prop: keyof Client, receiver: any) { | ||
if (prop in interceptors) { | ||
// @ts-expect-error | ||
return interceptors[prop] | ||
} | ||
if (INTERCEPTED_METHODS.includes(prop)) { | ||
@@ -81,0 +90,0 @@ return createInterceptor(prop) |
@@ -71,4 +71,14 @@ import type { | ||
const interceptors = { | ||
_session: client, | ||
disconnect: () => client.disconnect(), | ||
} as const | ||
return new Proxy<Client>(client.pubSub, { | ||
get(target: Client, prop: keyof Client, receiver: any) { | ||
if (prop in interceptors) { | ||
// @ts-expect-error | ||
return interceptors[prop] | ||
} | ||
if (INTERCEPTED_METHODS.includes(prop)) { | ||
@@ -75,0 +85,0 @@ return createInterceptor(prop) |
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
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 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
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2208250
22070
1
+ Added@signalwire/core@3.12.1-dev.202209221336.8132100.0(transitive)
+ Added@signalwire/webrtc@3.5.8-dev.202209221336.8132100.0(transitive)
- Removed@signalwire/core@3.12.0(transitive)
- Removed@signalwire/webrtc@3.5.7(transitive)