@urun-sh/core 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/{chunk-FJ3TNCO7.mjs → chunk-2IZQGJA3.mjs} +2 -2
- package/dist/{chunk-R33J74SA.mjs → chunk-PJ3QK656.mjs} +5 -5
- package/dist/index.browser.d.mts +9 -3
- package/dist/index.browser.d.ts +9 -3
- package/dist/index.browser.js +2 -2
- package/dist/index.browser.mjs +1 -1
- package/dist/index.d.mts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +5 -5
- package/dist/index.mjs +1 -1
- package/dist/internal.browser.d.mts +1 -1
- package/dist/internal.browser.d.ts +1 -1
- package/dist/internal.browser.js +2 -2
- package/dist/internal.browser.mjs +1 -1
- package/dist/internal.d.mts +1 -1
- package/dist/internal.d.ts +1 -1
- package/dist/internal.js +3 -3
- package/dist/internal.mjs +1 -1
- package/dist/{stream-data-Cjg0SjId.d.mts → stream-data-DoU_1K17.d.mts} +14 -0
- package/dist/{stream-data-Cjg0SjId.d.ts → stream-data-DoU_1K17.d.ts} +14 -0
- package/package.json +1 -1
package/dist/internal.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __urunCreateRequire } from 'node:module'; const require = globalThis.require ?? __urunCreateRequire(import.meta.url);
|
|
2
|
-
import{H as r,
|
|
2
|
+
import{H as r,O as t,P as n,Q as a,R as s,W as p,X as c,Y as l,a as e,b as o,ba as m,ca as i,da as S,ea as f,fa as x,ga as C,ha as D}from"./chunk-PJ3QK656.mjs";export{e as ChannelMultiplexer,i as DOC_SYNC_WIRE_CONTRACT_VERSION,o as DeferredChannelMultiplexer,x as DeferredDocConnector,p as LoopbackStreamData,C as SessionDocumentImpl,m as TransportSession,r as allocateSession,D as createPresence,f as createWebsocketDocConnector,S as deriveYjsServerUrl,s as ensureNodeWebRTC,t as isNodeRuntime,n as nodeMediasoupHandlerName,a as nodeWebRTCUnavailableReason,l as streamDataLabel,c as transportStreamData};
|
|
@@ -240,6 +240,8 @@ interface SessionPhase {
|
|
|
240
240
|
error?: SessionPhaseError;
|
|
241
241
|
|
|
242
242
|
reason?: string;
|
|
243
|
+
|
|
244
|
+
region?: string | null;
|
|
243
245
|
}
|
|
244
246
|
|
|
245
247
|
interface SessionStatus {
|
|
@@ -268,6 +270,8 @@ interface SessionStatus {
|
|
|
268
270
|
wakingSince?: number;
|
|
269
271
|
|
|
270
272
|
error?: SessionPhaseError;
|
|
273
|
+
|
|
274
|
+
region?: string | null;
|
|
271
275
|
}
|
|
272
276
|
|
|
273
277
|
interface TransportSessionOptions {
|
|
@@ -490,6 +494,8 @@ interface Session {
|
|
|
490
494
|
|
|
491
495
|
readonly status: SessionStatus;
|
|
492
496
|
|
|
497
|
+
readonly region?: string | null;
|
|
498
|
+
|
|
493
499
|
stream(name: string): SessionStream;
|
|
494
500
|
|
|
495
501
|
doc(key: string): SessionDocument;
|
|
@@ -709,6 +715,8 @@ interface SessionGatewayResponse {
|
|
|
709
715
|
location?: string;
|
|
710
716
|
|
|
711
717
|
session_api_base?: string;
|
|
718
|
+
|
|
719
|
+
serving_region?: string | null;
|
|
712
720
|
request_id?: string;
|
|
713
721
|
session_id?: string;
|
|
714
722
|
ws_url?: string;
|
|
@@ -763,6 +771,8 @@ interface AdmissionUpdate {
|
|
|
763
771
|
refusalSource?: string;
|
|
764
772
|
|
|
765
773
|
refusalMessage?: string;
|
|
774
|
+
|
|
775
|
+
region?: string | null;
|
|
766
776
|
}
|
|
767
777
|
interface AllocateSessionOptions {
|
|
768
778
|
baseUrl: string;
|
|
@@ -1404,9 +1414,13 @@ declare class TransportSession {
|
|
|
1404
1414
|
|
|
1405
1415
|
setEndsAt(endsAt: Date | null): void;
|
|
1406
1416
|
|
|
1417
|
+
seedRegion(region: string | null | undefined): void;
|
|
1418
|
+
|
|
1407
1419
|
private _pastDeadline;
|
|
1408
1420
|
|
|
1409
1421
|
get status(): SessionStatus;
|
|
1422
|
+
|
|
1423
|
+
get region(): string | null | undefined;
|
|
1410
1424
|
get sessionId(): string | null;
|
|
1411
1425
|
get tracks(): Map<string, MediaStreamTrack>;
|
|
1412
1426
|
get multiplexer(): ChannelMultiplexer | null;
|
|
@@ -240,6 +240,8 @@ interface SessionPhase {
|
|
|
240
240
|
error?: SessionPhaseError;
|
|
241
241
|
|
|
242
242
|
reason?: string;
|
|
243
|
+
|
|
244
|
+
region?: string | null;
|
|
243
245
|
}
|
|
244
246
|
|
|
245
247
|
interface SessionStatus {
|
|
@@ -268,6 +270,8 @@ interface SessionStatus {
|
|
|
268
270
|
wakingSince?: number;
|
|
269
271
|
|
|
270
272
|
error?: SessionPhaseError;
|
|
273
|
+
|
|
274
|
+
region?: string | null;
|
|
271
275
|
}
|
|
272
276
|
|
|
273
277
|
interface TransportSessionOptions {
|
|
@@ -490,6 +494,8 @@ interface Session {
|
|
|
490
494
|
|
|
491
495
|
readonly status: SessionStatus;
|
|
492
496
|
|
|
497
|
+
readonly region?: string | null;
|
|
498
|
+
|
|
493
499
|
stream(name: string): SessionStream;
|
|
494
500
|
|
|
495
501
|
doc(key: string): SessionDocument;
|
|
@@ -709,6 +715,8 @@ interface SessionGatewayResponse {
|
|
|
709
715
|
location?: string;
|
|
710
716
|
|
|
711
717
|
session_api_base?: string;
|
|
718
|
+
|
|
719
|
+
serving_region?: string | null;
|
|
712
720
|
request_id?: string;
|
|
713
721
|
session_id?: string;
|
|
714
722
|
ws_url?: string;
|
|
@@ -763,6 +771,8 @@ interface AdmissionUpdate {
|
|
|
763
771
|
refusalSource?: string;
|
|
764
772
|
|
|
765
773
|
refusalMessage?: string;
|
|
774
|
+
|
|
775
|
+
region?: string | null;
|
|
766
776
|
}
|
|
767
777
|
interface AllocateSessionOptions {
|
|
768
778
|
baseUrl: string;
|
|
@@ -1404,9 +1414,13 @@ declare class TransportSession {
|
|
|
1404
1414
|
|
|
1405
1415
|
setEndsAt(endsAt: Date | null): void;
|
|
1406
1416
|
|
|
1417
|
+
seedRegion(region: string | null | undefined): void;
|
|
1418
|
+
|
|
1407
1419
|
private _pastDeadline;
|
|
1408
1420
|
|
|
1409
1421
|
get status(): SessionStatus;
|
|
1422
|
+
|
|
1423
|
+
get region(): string | null | undefined;
|
|
1410
1424
|
get sessionId(): string | null;
|
|
1411
1425
|
get tracks(): Map<string, MediaStreamTrack>;
|
|
1412
1426
|
get multiplexer(): ChannelMultiplexer | null;
|