@luvabase/sdk 0.0.12 → 0.0.13
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/package.json +1 -1
- package/src/index.ts +3 -3
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -44,14 +44,14 @@ export function getLunaEnv() {
|
|
|
44
44
|
return luvabaseEnv
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
export function getAdminUrl() {
|
|
47
|
+
export function getAdminUrl(): string {
|
|
48
48
|
const lunaEnv = getLunaEnv()
|
|
49
49
|
return `https://luvabase.com/dash/pods/${lunaEnv.podId}`
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
export async function getSessionInfo(): Promise<
|
|
52
|
+
export async function getSessionInfo(): Promise<Session> {
|
|
53
53
|
if (overriddenEnv) {
|
|
54
|
-
return overriddenEnv.session
|
|
54
|
+
return overriddenEnv.session
|
|
55
55
|
}
|
|
56
56
|
return fetch("/luvabase/session").then((res) => res.json())
|
|
57
57
|
}
|