@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.ts +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luvabase/sdk",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
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<Member | null> {
52
+ export async function getSessionInfo(): Promise<Session> {
53
53
  if (overriddenEnv) {
54
- return overriddenEnv.session.user
54
+ return overriddenEnv.session
55
55
  }
56
56
  return fetch("/luvabase/session").then((res) => res.json())
57
57
  }