@urun-sh/core 0.6.20 → 0.6.22
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 +7 -7
- package/dist/adapter/index.mjs +1 -1
- package/dist/{app-UBAS4IX2.mjs → app-WNVATBIT.mjs} +1 -1
- package/dist/{backoff-UYyVBxo6.d.mts → backoff-B_BGpdq-.d.mts} +6 -0
- package/dist/{backoff-UYyVBxo6.d.ts → backoff-B_BGpdq-.d.ts} +6 -0
- package/dist/{backoff-gRmh4z6F.d.ts → backoff-Cf2wXdcn.d.mts} +6 -0
- package/dist/{backoff-gRmh4z6F.d.mts → backoff-Cf2wXdcn.d.ts} +6 -0
- package/dist/{chunk-M5GYSEH4.mjs → chunk-NK7JCY66.mjs} +3 -3
- package/dist/{chunk-XYC7JMAJ.mjs → chunk-PM5RRWY3.mjs} +1 -1
- package/dist/chunk-S6ATVRZ3.mjs +30 -0
- package/dist/index.browser.d.mts +8 -2
- package/dist/index.browser.d.ts +8 -2
- package/dist/index.browser.js +3 -3
- package/dist/index.browser.mjs +3 -3
- package/dist/index.d.mts +8 -2
- package/dist/index.d.ts +8 -2
- package/dist/index.js +6 -6
- 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/chunk-DI5DG2VN.mjs +0 -30
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-WNVATBIT.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-S6ATVRZ3.mjs";import"./chunk-NK7JCY66.mjs";import"./chunk-NLAOQUYQ.mjs";export{b as App,a as sessionDirectory};
|
|
@@ -502,6 +502,8 @@ interface Session {
|
|
|
502
502
|
|
|
503
503
|
readonly mediaTransport: 'webtransport' | 'webrtc' | null;
|
|
504
504
|
|
|
505
|
+
readonly mediaTransportAttempted?: boolean;
|
|
506
|
+
|
|
505
507
|
watchDownlinkStall(opts?: {
|
|
506
508
|
stallMs?: number;
|
|
507
509
|
}): () => void;
|
|
@@ -699,6 +701,8 @@ interface StartSessionOptions {
|
|
|
699
701
|
|
|
700
702
|
sharedApp?: boolean;
|
|
701
703
|
|
|
704
|
+
concurrencyKey?: string;
|
|
705
|
+
|
|
702
706
|
activity?: ActivitySignalMode;
|
|
703
707
|
}
|
|
704
708
|
|
|
@@ -806,6 +810,8 @@ interface AllocateSessionOptions {
|
|
|
806
810
|
|
|
807
811
|
sessionKey?: string;
|
|
808
812
|
|
|
813
|
+
concurrencyKey?: string;
|
|
814
|
+
|
|
809
815
|
label?: string;
|
|
810
816
|
|
|
811
817
|
priority?: 'preempt';
|
|
@@ -502,6 +502,8 @@ interface Session {
|
|
|
502
502
|
|
|
503
503
|
readonly mediaTransport: 'webtransport' | 'webrtc' | null;
|
|
504
504
|
|
|
505
|
+
readonly mediaTransportAttempted?: boolean;
|
|
506
|
+
|
|
505
507
|
watchDownlinkStall(opts?: {
|
|
506
508
|
stallMs?: number;
|
|
507
509
|
}): () => void;
|
|
@@ -699,6 +701,8 @@ interface StartSessionOptions {
|
|
|
699
701
|
|
|
700
702
|
sharedApp?: boolean;
|
|
701
703
|
|
|
704
|
+
concurrencyKey?: string;
|
|
705
|
+
|
|
702
706
|
activity?: ActivitySignalMode;
|
|
703
707
|
}
|
|
704
708
|
|
|
@@ -806,6 +810,8 @@ interface AllocateSessionOptions {
|
|
|
806
810
|
|
|
807
811
|
sessionKey?: string;
|
|
808
812
|
|
|
813
|
+
concurrencyKey?: string;
|
|
814
|
+
|
|
809
815
|
label?: string;
|
|
810
816
|
|
|
811
817
|
priority?: 'preempt';
|
|
@@ -502,6 +502,8 @@ interface Session {
|
|
|
502
502
|
|
|
503
503
|
readonly mediaTransport: 'webtransport' | 'webrtc' | null;
|
|
504
504
|
|
|
505
|
+
readonly mediaTransportAttempted?: boolean;
|
|
506
|
+
|
|
505
507
|
watchDownlinkStall(opts?: {
|
|
506
508
|
stallMs?: number;
|
|
507
509
|
}): () => void;
|
|
@@ -699,6 +701,8 @@ interface StartSessionOptions {
|
|
|
699
701
|
|
|
700
702
|
sharedApp?: boolean;
|
|
701
703
|
|
|
704
|
+
concurrencyKey?: string;
|
|
705
|
+
|
|
702
706
|
activity?: ActivitySignalMode;
|
|
703
707
|
}
|
|
704
708
|
|
|
@@ -806,6 +810,8 @@ interface AllocateSessionOptions {
|
|
|
806
810
|
|
|
807
811
|
sessionKey?: string;
|
|
808
812
|
|
|
813
|
+
concurrencyKey?: string;
|
|
814
|
+
|
|
809
815
|
label?: string;
|
|
810
816
|
|
|
811
817
|
priority?: 'preempt';
|
|
@@ -502,6 +502,8 @@ interface Session {
|
|
|
502
502
|
|
|
503
503
|
readonly mediaTransport: 'webtransport' | 'webrtc' | null;
|
|
504
504
|
|
|
505
|
+
readonly mediaTransportAttempted?: boolean;
|
|
506
|
+
|
|
505
507
|
watchDownlinkStall(opts?: {
|
|
506
508
|
stallMs?: number;
|
|
507
509
|
}): () => void;
|
|
@@ -699,6 +701,8 @@ interface StartSessionOptions {
|
|
|
699
701
|
|
|
700
702
|
sharedApp?: boolean;
|
|
701
703
|
|
|
704
|
+
concurrencyKey?: string;
|
|
705
|
+
|
|
702
706
|
activity?: ActivitySignalMode;
|
|
703
707
|
}
|
|
704
708
|
|
|
@@ -806,6 +810,8 @@ interface AllocateSessionOptions {
|
|
|
806
810
|
|
|
807
811
|
sessionKey?: string;
|
|
808
812
|
|
|
813
|
+
concurrencyKey?: string;
|
|
814
|
+
|
|
809
815
|
label?: string;
|
|
810
816
|
|
|
811
817
|
priority?: 'preempt';
|