@urun-sh/core 0.6.29 → 0.6.31
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/dist/adapter/index.js +2 -2
- package/dist/adapter/index.mjs +1 -1
- package/dist/{app-RSRN5JAF.mjs → app-6KXZKUQI.mjs} +1 -1
- package/dist/{backoff-CR4PB7JI.d.mts → backoff-CxNgrGjM.d.mts} +6 -0
- package/dist/{backoff-CR4PB7JI.d.ts → backoff-CxNgrGjM.d.ts} +6 -0
- package/dist/{backoff-CuV-S2ty.d.ts → backoff-DFozWV6R.d.mts} +6 -0
- package/dist/{backoff-CuV-S2ty.d.mts → backoff-DFozWV6R.d.ts} +6 -0
- package/dist/{chunk-LIGXGD7T.mjs → chunk-JPYOAW2I.mjs} +1 -1
- package/dist/{chunk-SAKVBT4A.mjs → chunk-SISRUO4N.mjs} +2 -2
- package/dist/{chunk-NHNMEXDR.mjs → chunk-V5CROHD4.mjs} +1 -1
- 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 +2 -2
- package/dist/index.d.mts +9 -3
- package/dist/index.d.ts +9 -3
- package/dist/index.js +4 -4
- 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 +1 -1
- 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 +1 -1
- package/dist/internal.mjs +1 -1
- package/package.json +1 -1
package/dist/adapter/index.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"../chunk-NLAOQUYQ.mjs";var p="serve";function d(n,o){let e=`[urun/${o.adapter}]`,r=n.baseUrl!==void 0||n.orgId!==void 0||n.app!==void 0||n.functionName!==void 0;if(n.session&&r)throw new Error(`${e} pass EITHER a \`session\` (BYO) OR connection settings (\`baseUrl\`/\`orgId\`/\`app\`) \u2014 not both.`);let u,c=()=>{if(n.session){let s=n.session;return Promise.resolve(typeof s=="function"?s():s)}let{baseUrl:i,orgId:t,app:a}=n;if(!i||!t||!a)throw new Error(`${e} missing connection settings: \`baseUrl\`, \`orgId\` and \`app\` are required (or pass a \`session\`).`);return l({...n,baseUrl:i,orgId:t,app:a})};return()=>u??=c()}async function l(n){let{App:o}=await import("../app-
|
|
2
|
+
import"../chunk-NLAOQUYQ.mjs";var p="serve";function d(n,o){let e=`[urun/${o.adapter}]`,r=n.baseUrl!==void 0||n.orgId!==void 0||n.app!==void 0||n.functionName!==void 0;if(n.session&&r)throw new Error(`${e} pass EITHER a \`session\` (BYO) OR connection settings (\`baseUrl\`/\`orgId\`/\`app\`) \u2014 not both.`);let u,c=()=>{if(n.session){let s=n.session;return Promise.resolve(typeof s=="function"?s():s)}let{baseUrl:i,orgId:t,app:a}=n;if(!i||!t||!a)throw new Error(`${e} missing connection settings: \`baseUrl\`, \`orgId\` and \`app\` are required (or pass a \`session\`).`);return l({...n,baseUrl:i,orgId:t,app:a})};return()=>u??=c()}async function l(n){let{App:o}=await import("../app-6KXZKUQI.mjs"),e=o(n.app,{baseUrl:n.baseUrl,orgId:n.orgId,jwt:n.jwt,getAccessToken:n.getAccessToken,authProvider:n.authProvider}),r=n.functionName??p;return e[r]()}export{d as createSessionResolver};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __urunCreateRequire } from 'node:module'; const require = globalThis.require ?? __urunCreateRequire(import.meta.url);
|
|
2
|
-
import{ea as a,fa as b}from"./chunk-
|
|
2
|
+
import{ea as a,fa as b}from"./chunk-SISRUO4N.mjs";import"./chunk-JPYOAW2I.mjs";import"./chunk-NLAOQUYQ.mjs";export{b as App,a as sessionDirectory};
|
|
@@ -438,6 +438,8 @@ interface SessionStream {
|
|
|
438
438
|
|
|
439
439
|
readonly track: MediaStreamTrack | null;
|
|
440
440
|
|
|
441
|
+
readonly directOut: boolean;
|
|
442
|
+
|
|
441
443
|
attach(track: MediaStreamTrack): Promise<void>;
|
|
442
444
|
|
|
443
445
|
attachVideo(track: MediaStreamTrack): Promise<void>;
|
|
@@ -1297,6 +1299,8 @@ interface NegotiatorOptions {
|
|
|
1297
1299
|
webRtcFailoverDeadlineMs?: number;
|
|
1298
1300
|
|
|
1299
1301
|
onMediaTransportLost?: (reason: string) => void;
|
|
1302
|
+
|
|
1303
|
+
onWtLegDeath?: (reason: string) => void;
|
|
1300
1304
|
}
|
|
1301
1305
|
declare class TransportNegotiator {
|
|
1302
1306
|
private signaling;
|
|
@@ -1604,6 +1608,8 @@ declare class TransportSession {
|
|
|
1604
1608
|
|
|
1605
1609
|
noteQuicMediaFlowing(): void;
|
|
1606
1610
|
|
|
1611
|
+
noteMediaLegDeath(): void;
|
|
1612
|
+
|
|
1607
1613
|
dispatchQuicStreamData(name: string, payload: unknown): void;
|
|
1608
1614
|
|
|
1609
1615
|
raiseQuicStreamDataError(err: Error): void;
|
|
@@ -438,6 +438,8 @@ interface SessionStream {
|
|
|
438
438
|
|
|
439
439
|
readonly track: MediaStreamTrack | null;
|
|
440
440
|
|
|
441
|
+
readonly directOut: boolean;
|
|
442
|
+
|
|
441
443
|
attach(track: MediaStreamTrack): Promise<void>;
|
|
442
444
|
|
|
443
445
|
attachVideo(track: MediaStreamTrack): Promise<void>;
|
|
@@ -1297,6 +1299,8 @@ interface NegotiatorOptions {
|
|
|
1297
1299
|
webRtcFailoverDeadlineMs?: number;
|
|
1298
1300
|
|
|
1299
1301
|
onMediaTransportLost?: (reason: string) => void;
|
|
1302
|
+
|
|
1303
|
+
onWtLegDeath?: (reason: string) => void;
|
|
1300
1304
|
}
|
|
1301
1305
|
declare class TransportNegotiator {
|
|
1302
1306
|
private signaling;
|
|
@@ -1604,6 +1608,8 @@ declare class TransportSession {
|
|
|
1604
1608
|
|
|
1605
1609
|
noteQuicMediaFlowing(): void;
|
|
1606
1610
|
|
|
1611
|
+
noteMediaLegDeath(): void;
|
|
1612
|
+
|
|
1607
1613
|
dispatchQuicStreamData(name: string, payload: unknown): void;
|
|
1608
1614
|
|
|
1609
1615
|
raiseQuicStreamDataError(err: Error): void;
|
|
@@ -438,6 +438,8 @@ interface SessionStream {
|
|
|
438
438
|
|
|
439
439
|
readonly track: MediaStreamTrack | null;
|
|
440
440
|
|
|
441
|
+
readonly directOut: boolean;
|
|
442
|
+
|
|
441
443
|
attach(track: MediaStreamTrack): Promise<void>;
|
|
442
444
|
|
|
443
445
|
attachVideo(track: MediaStreamTrack): Promise<void>;
|
|
@@ -1297,6 +1299,8 @@ interface NegotiatorOptions {
|
|
|
1297
1299
|
webRtcFailoverDeadlineMs?: number;
|
|
1298
1300
|
|
|
1299
1301
|
onMediaTransportLost?: (reason: string) => void;
|
|
1302
|
+
|
|
1303
|
+
onWtLegDeath?: (reason: string) => void;
|
|
1300
1304
|
}
|
|
1301
1305
|
declare class TransportNegotiator {
|
|
1302
1306
|
private signaling;
|
|
@@ -1604,6 +1608,8 @@ declare class TransportSession {
|
|
|
1604
1608
|
|
|
1605
1609
|
noteQuicMediaFlowing(): void;
|
|
1606
1610
|
|
|
1611
|
+
noteMediaLegDeath(): void;
|
|
1612
|
+
|
|
1607
1613
|
dispatchQuicStreamData(name: string, payload: unknown): void;
|
|
1608
1614
|
|
|
1609
1615
|
raiseQuicStreamDataError(err: Error): void;
|
|
@@ -438,6 +438,8 @@ interface SessionStream {
|
|
|
438
438
|
|
|
439
439
|
readonly track: MediaStreamTrack | null;
|
|
440
440
|
|
|
441
|
+
readonly directOut: boolean;
|
|
442
|
+
|
|
441
443
|
attach(track: MediaStreamTrack): Promise<void>;
|
|
442
444
|
|
|
443
445
|
attachVideo(track: MediaStreamTrack): Promise<void>;
|
|
@@ -1297,6 +1299,8 @@ interface NegotiatorOptions {
|
|
|
1297
1299
|
webRtcFailoverDeadlineMs?: number;
|
|
1298
1300
|
|
|
1299
1301
|
onMediaTransportLost?: (reason: string) => void;
|
|
1302
|
+
|
|
1303
|
+
onWtLegDeath?: (reason: string) => void;
|
|
1300
1304
|
}
|
|
1301
1305
|
declare class TransportNegotiator {
|
|
1302
1306
|
private signaling;
|
|
@@ -1604,6 +1608,8 @@ declare class TransportSession {
|
|
|
1604
1608
|
|
|
1605
1609
|
noteQuicMediaFlowing(): void;
|
|
1606
1610
|
|
|
1611
|
+
noteMediaLegDeath(): void;
|
|
1612
|
+
|
|
1607
1613
|
dispatchQuicStreamData(name: string, payload: unknown): void;
|
|
1608
1614
|
|
|
1609
1615
|
raiseQuicStreamDataError(err: Error): void;
|