@urun-sh/core 0.6.22 → 0.6.23
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-WNVATBIT.mjs → app-PWYF3C4G.mjs} +1 -1
- package/dist/{backoff-B_BGpdq-.d.mts → backoff-B-7BpoP1.d.mts} +25 -0
- package/dist/{backoff-B_BGpdq-.d.ts → backoff-B-7BpoP1.d.ts} +25 -0
- package/dist/{backoff-Cf2wXdcn.d.ts → backoff-cCrN-3Sd.d.mts} +25 -0
- package/dist/{backoff-Cf2wXdcn.d.mts → backoff-cCrN-3Sd.d.ts} +25 -0
- package/dist/{chunk-S6ATVRZ3.mjs → chunk-LSNPKZNL.mjs} +2 -2
- package/dist/index.browser.d.mts +2 -2
- package/dist/index.browser.d.ts +2 -2
- package/dist/index.browser.js +2 -2
- package/dist/index.browser.mjs +4 -4
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- 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.d.mts +1 -1
- package/dist/internal.d.ts +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-PWYF3C4G.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-LSNPKZNL.mjs";import"./chunk-NK7JCY66.mjs";import"./chunk-NLAOQUYQ.mjs";export{b as App,a as sessionDirectory};
|
|
@@ -304,6 +304,8 @@ interface TransportSessionOptions {
|
|
|
304
304
|
interface AudioPlayoutOptions {
|
|
305
305
|
|
|
306
306
|
jitterBufferTargetMs?: number;
|
|
307
|
+
|
|
308
|
+
audioContext?: AudioContext;
|
|
307
309
|
}
|
|
308
310
|
|
|
309
311
|
interface VideoPlayoutOptions {
|
|
@@ -1189,6 +1191,8 @@ interface WtAudioLaneSeam {
|
|
|
1189
1191
|
onTrack: (track: MediaStreamTrack | null) => void;
|
|
1190
1192
|
|
|
1191
1193
|
renderHop?: WtAudioRenderHop;
|
|
1194
|
+
|
|
1195
|
+
ctx?: AudioContextLike;
|
|
1192
1196
|
}
|
|
1193
1197
|
|
|
1194
1198
|
interface WtAudioRenderHop {
|
|
@@ -1197,6 +1201,27 @@ interface WtAudioRenderHop {
|
|
|
1197
1201
|
|
|
1198
1202
|
onRemote(cb: (track: MediaStreamTrack | null) => void): void;
|
|
1199
1203
|
}
|
|
1204
|
+
interface AudioContextLike {
|
|
1205
|
+
currentTime: number;
|
|
1206
|
+
sampleRate: number;
|
|
1207
|
+
destination: unknown;
|
|
1208
|
+
state?: string;
|
|
1209
|
+
resume?: () => Promise<void>;
|
|
1210
|
+
close(): Promise<void>;
|
|
1211
|
+
createBuffer(channels: number, frames: number, sampleRate: number): AudioBufferLike;
|
|
1212
|
+
createBufferSource(): AudioBufferSourceLike;
|
|
1213
|
+
createMediaStreamDestination(): {
|
|
1214
|
+
stream: MediaStream;
|
|
1215
|
+
};
|
|
1216
|
+
}
|
|
1217
|
+
interface AudioBufferLike {
|
|
1218
|
+
copyToChannel(src: Float32Array, channel: number): void;
|
|
1219
|
+
}
|
|
1220
|
+
interface AudioBufferSourceLike {
|
|
1221
|
+
buffer: AudioBufferLike | null;
|
|
1222
|
+
connect(node: unknown): void;
|
|
1223
|
+
start(when: number): void;
|
|
1224
|
+
}
|
|
1200
1225
|
|
|
1201
1226
|
interface WtDataUplinkTransport {
|
|
1202
1227
|
openUniStream(): Promise<{
|
|
@@ -304,6 +304,8 @@ interface TransportSessionOptions {
|
|
|
304
304
|
interface AudioPlayoutOptions {
|
|
305
305
|
|
|
306
306
|
jitterBufferTargetMs?: number;
|
|
307
|
+
|
|
308
|
+
audioContext?: AudioContext;
|
|
307
309
|
}
|
|
308
310
|
|
|
309
311
|
interface VideoPlayoutOptions {
|
|
@@ -1189,6 +1191,8 @@ interface WtAudioLaneSeam {
|
|
|
1189
1191
|
onTrack: (track: MediaStreamTrack | null) => void;
|
|
1190
1192
|
|
|
1191
1193
|
renderHop?: WtAudioRenderHop;
|
|
1194
|
+
|
|
1195
|
+
ctx?: AudioContextLike;
|
|
1192
1196
|
}
|
|
1193
1197
|
|
|
1194
1198
|
interface WtAudioRenderHop {
|
|
@@ -1197,6 +1201,27 @@ interface WtAudioRenderHop {
|
|
|
1197
1201
|
|
|
1198
1202
|
onRemote(cb: (track: MediaStreamTrack | null) => void): void;
|
|
1199
1203
|
}
|
|
1204
|
+
interface AudioContextLike {
|
|
1205
|
+
currentTime: number;
|
|
1206
|
+
sampleRate: number;
|
|
1207
|
+
destination: unknown;
|
|
1208
|
+
state?: string;
|
|
1209
|
+
resume?: () => Promise<void>;
|
|
1210
|
+
close(): Promise<void>;
|
|
1211
|
+
createBuffer(channels: number, frames: number, sampleRate: number): AudioBufferLike;
|
|
1212
|
+
createBufferSource(): AudioBufferSourceLike;
|
|
1213
|
+
createMediaStreamDestination(): {
|
|
1214
|
+
stream: MediaStream;
|
|
1215
|
+
};
|
|
1216
|
+
}
|
|
1217
|
+
interface AudioBufferLike {
|
|
1218
|
+
copyToChannel(src: Float32Array, channel: number): void;
|
|
1219
|
+
}
|
|
1220
|
+
interface AudioBufferSourceLike {
|
|
1221
|
+
buffer: AudioBufferLike | null;
|
|
1222
|
+
connect(node: unknown): void;
|
|
1223
|
+
start(when: number): void;
|
|
1224
|
+
}
|
|
1200
1225
|
|
|
1201
1226
|
interface WtDataUplinkTransport {
|
|
1202
1227
|
openUniStream(): Promise<{
|
|
@@ -304,6 +304,8 @@ interface TransportSessionOptions {
|
|
|
304
304
|
interface AudioPlayoutOptions {
|
|
305
305
|
|
|
306
306
|
jitterBufferTargetMs?: number;
|
|
307
|
+
|
|
308
|
+
audioContext?: AudioContext;
|
|
307
309
|
}
|
|
308
310
|
|
|
309
311
|
interface VideoPlayoutOptions {
|
|
@@ -1189,6 +1191,8 @@ interface WtAudioLaneSeam {
|
|
|
1189
1191
|
onTrack: (track: MediaStreamTrack | null) => void;
|
|
1190
1192
|
|
|
1191
1193
|
renderHop?: WtAudioRenderHop;
|
|
1194
|
+
|
|
1195
|
+
ctx?: AudioContextLike;
|
|
1192
1196
|
}
|
|
1193
1197
|
|
|
1194
1198
|
interface WtAudioRenderHop {
|
|
@@ -1197,6 +1201,27 @@ interface WtAudioRenderHop {
|
|
|
1197
1201
|
|
|
1198
1202
|
onRemote(cb: (track: MediaStreamTrack | null) => void): void;
|
|
1199
1203
|
}
|
|
1204
|
+
interface AudioContextLike {
|
|
1205
|
+
currentTime: number;
|
|
1206
|
+
sampleRate: number;
|
|
1207
|
+
destination: unknown;
|
|
1208
|
+
state?: string;
|
|
1209
|
+
resume?: () => Promise<void>;
|
|
1210
|
+
close(): Promise<void>;
|
|
1211
|
+
createBuffer(channels: number, frames: number, sampleRate: number): AudioBufferLike;
|
|
1212
|
+
createBufferSource(): AudioBufferSourceLike;
|
|
1213
|
+
createMediaStreamDestination(): {
|
|
1214
|
+
stream: MediaStream;
|
|
1215
|
+
};
|
|
1216
|
+
}
|
|
1217
|
+
interface AudioBufferLike {
|
|
1218
|
+
copyToChannel(src: Float32Array, channel: number): void;
|
|
1219
|
+
}
|
|
1220
|
+
interface AudioBufferSourceLike {
|
|
1221
|
+
buffer: AudioBufferLike | null;
|
|
1222
|
+
connect(node: unknown): void;
|
|
1223
|
+
start(when: number): void;
|
|
1224
|
+
}
|
|
1200
1225
|
|
|
1201
1226
|
interface WtDataUplinkTransport {
|
|
1202
1227
|
openUniStream(): Promise<{
|
|
@@ -304,6 +304,8 @@ interface TransportSessionOptions {
|
|
|
304
304
|
interface AudioPlayoutOptions {
|
|
305
305
|
|
|
306
306
|
jitterBufferTargetMs?: number;
|
|
307
|
+
|
|
308
|
+
audioContext?: AudioContext;
|
|
307
309
|
}
|
|
308
310
|
|
|
309
311
|
interface VideoPlayoutOptions {
|
|
@@ -1189,6 +1191,8 @@ interface WtAudioLaneSeam {
|
|
|
1189
1191
|
onTrack: (track: MediaStreamTrack | null) => void;
|
|
1190
1192
|
|
|
1191
1193
|
renderHop?: WtAudioRenderHop;
|
|
1194
|
+
|
|
1195
|
+
ctx?: AudioContextLike;
|
|
1192
1196
|
}
|
|
1193
1197
|
|
|
1194
1198
|
interface WtAudioRenderHop {
|
|
@@ -1197,6 +1201,27 @@ interface WtAudioRenderHop {
|
|
|
1197
1201
|
|
|
1198
1202
|
onRemote(cb: (track: MediaStreamTrack | null) => void): void;
|
|
1199
1203
|
}
|
|
1204
|
+
interface AudioContextLike {
|
|
1205
|
+
currentTime: number;
|
|
1206
|
+
sampleRate: number;
|
|
1207
|
+
destination: unknown;
|
|
1208
|
+
state?: string;
|
|
1209
|
+
resume?: () => Promise<void>;
|
|
1210
|
+
close(): Promise<void>;
|
|
1211
|
+
createBuffer(channels: number, frames: number, sampleRate: number): AudioBufferLike;
|
|
1212
|
+
createBufferSource(): AudioBufferSourceLike;
|
|
1213
|
+
createMediaStreamDestination(): {
|
|
1214
|
+
stream: MediaStream;
|
|
1215
|
+
};
|
|
1216
|
+
}
|
|
1217
|
+
interface AudioBufferLike {
|
|
1218
|
+
copyToChannel(src: Float32Array, channel: number): void;
|
|
1219
|
+
}
|
|
1220
|
+
interface AudioBufferSourceLike {
|
|
1221
|
+
buffer: AudioBufferLike | null;
|
|
1222
|
+
connect(node: unknown): void;
|
|
1223
|
+
start(when: number): void;
|
|
1224
|
+
}
|
|
1200
1225
|
|
|
1201
1226
|
interface WtDataUplinkTransport {
|
|
1202
1227
|
openUniStream(): Promise<{
|