@urun-sh/core 0.6.37 → 0.6.38
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 +5 -5
- package/dist/adapter/index.mjs +1 -1
- package/dist/{app-U7LBEKWS.mjs → app-X5AIPZM6.mjs} +1 -1
- package/dist/{backoff-C60lcU4l.d.ts → backoff-ByTp2Mje.d.mts} +4 -0
- package/dist/{backoff-C60lcU4l.d.mts → backoff-ByTp2Mje.d.ts} +4 -0
- package/dist/{backoff-C36bg4oV.d.mts → backoff-CUDoxMRr.d.mts} +4 -0
- package/dist/{backoff-C36bg4oV.d.ts → backoff-CUDoxMRr.d.ts} +4 -0
- package/dist/{chunk-W52BJWP6.mjs → chunk-CI4SPS6T.mjs} +2 -2
- package/dist/{chunk-N7XWLJO5.mjs → chunk-MTZRCKDF.mjs} +4 -4
- package/dist/chunk-PIXUSDYT.mjs +30 -0
- package/dist/index.browser.d.mts +4 -2
- package/dist/index.browser.d.ts +4 -2
- package/dist/index.browser.js +4 -4
- package/dist/index.browser.mjs +2 -2
- package/dist/index.d.mts +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +1 -1
- package/dist/internal.browser.d.mts +2 -2
- package/dist/internal.browser.d.ts +2 -2
- package/dist/internal.browser.js +2 -2
- package/dist/internal.browser.mjs +1 -1
- package/dist/internal.d.mts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +5 -5
- package/dist/internal.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-VHDCUDOI.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-X5AIPZM6.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-PIXUSDYT.mjs";import"./chunk-MTZRCKDF.mjs";import"./chunk-NLAOQUYQ.mjs";export{b as App,a as sessionDirectory};
|
|
@@ -144,6 +144,8 @@ interface AllocateSessionOptions {
|
|
|
144
144
|
jwt?: string;
|
|
145
145
|
getAccessToken?: (options?: AccessTokenOptions$1) => string | null | undefined | Promise<string | null | undefined>;
|
|
146
146
|
authProvider?: string;
|
|
147
|
+
|
|
148
|
+
shape?: string;
|
|
147
149
|
idempotencyKey: string;
|
|
148
150
|
|
|
149
151
|
onAdmission?: (update: AdmissionUpdate) => void;
|
|
@@ -845,6 +847,8 @@ interface AppOptions {
|
|
|
845
847
|
|
|
846
848
|
authProvider?: string;
|
|
847
849
|
|
|
850
|
+
shape?: string;
|
|
851
|
+
|
|
848
852
|
diagnosticSink?: (diagnostic: SessionDiagnostic) => void;
|
|
849
853
|
|
|
850
854
|
functionsUrl?: string;
|
|
@@ -144,6 +144,8 @@ interface AllocateSessionOptions {
|
|
|
144
144
|
jwt?: string;
|
|
145
145
|
getAccessToken?: (options?: AccessTokenOptions$1) => string | null | undefined | Promise<string | null | undefined>;
|
|
146
146
|
authProvider?: string;
|
|
147
|
+
|
|
148
|
+
shape?: string;
|
|
147
149
|
idempotencyKey: string;
|
|
148
150
|
|
|
149
151
|
onAdmission?: (update: AdmissionUpdate) => void;
|
|
@@ -845,6 +847,8 @@ interface AppOptions {
|
|
|
845
847
|
|
|
846
848
|
authProvider?: string;
|
|
847
849
|
|
|
850
|
+
shape?: string;
|
|
851
|
+
|
|
848
852
|
diagnosticSink?: (diagnostic: SessionDiagnostic) => void;
|
|
849
853
|
|
|
850
854
|
functionsUrl?: string;
|
|
@@ -144,6 +144,8 @@ interface AllocateSessionOptions {
|
|
|
144
144
|
jwt?: string;
|
|
145
145
|
getAccessToken?: (options?: AccessTokenOptions$1) => string | null | undefined | Promise<string | null | undefined>;
|
|
146
146
|
authProvider?: string;
|
|
147
|
+
|
|
148
|
+
shape?: string;
|
|
147
149
|
idempotencyKey: string;
|
|
148
150
|
|
|
149
151
|
onAdmission?: (update: AdmissionUpdate) => void;
|
|
@@ -845,6 +847,8 @@ interface AppOptions {
|
|
|
845
847
|
|
|
846
848
|
authProvider?: string;
|
|
847
849
|
|
|
850
|
+
shape?: string;
|
|
851
|
+
|
|
848
852
|
diagnosticSink?: (diagnostic: SessionDiagnostic) => void;
|
|
849
853
|
|
|
850
854
|
functionsUrl?: string;
|
|
@@ -144,6 +144,8 @@ interface AllocateSessionOptions {
|
|
|
144
144
|
jwt?: string;
|
|
145
145
|
getAccessToken?: (options?: AccessTokenOptions$1) => string | null | undefined | Promise<string | null | undefined>;
|
|
146
146
|
authProvider?: string;
|
|
147
|
+
|
|
148
|
+
shape?: string;
|
|
147
149
|
idempotencyKey: string;
|
|
148
150
|
|
|
149
151
|
onAdmission?: (update: AdmissionUpdate) => void;
|
|
@@ -845,6 +847,8 @@ interface AppOptions {
|
|
|
845
847
|
|
|
846
848
|
authProvider?: string;
|
|
847
849
|
|
|
850
|
+
shape?: string;
|
|
851
|
+
|
|
848
852
|
diagnosticSink?: (diagnostic: SessionDiagnostic) => void;
|
|
849
853
|
|
|
850
854
|
functionsUrl?: string;
|