@oxyhq/services 0.0.2 → 0.0.4
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.
|
@@ -17,10 +17,10 @@ type SessionState = {
|
|
|
17
17
|
fetchSessionData: () => void;
|
|
18
18
|
};
|
|
19
19
|
export declare const useSessionStore: import("zustand").UseBoundStore<import("zustand").StoreApi<SessionState>>;
|
|
20
|
-
declare function
|
|
20
|
+
declare function useOxySession(): {
|
|
21
21
|
session: SessionModel | null;
|
|
22
22
|
status: string;
|
|
23
23
|
error: any;
|
|
24
24
|
};
|
|
25
|
-
export default
|
|
25
|
+
export default useOxySession;
|
|
26
26
|
//# sourceMappingURL=usePeableSession.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePeableSession.d.ts","sourceRoot":"","sources":["../../src/hooks/usePeableSession.ts"],"names":[],"mappings":"AAOA,UAAU,YAAY;IACpB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,OAAO,CAAC;QAClB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAED,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,GAAG,CAAC;IACX,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,eAAe,2EAmC1B,CAAC;AAEH,iBAAS,
|
|
1
|
+
{"version":3,"file":"usePeableSession.d.ts","sourceRoot":"","sources":["../../src/hooks/usePeableSession.ts"],"names":[],"mappings":"AAOA,UAAU,YAAY;IACpB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,OAAO,CAAC;QAClB,iBAAiB,EAAE,MAAM,CAAC;QAC1B,UAAU,EAAE,MAAM,CAAC;KACpB,CAAC;CACH;AAED,KAAK,YAAY,GAAG;IAClB,OAAO,EAAE,YAAY,GAAG,IAAI,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,GAAG,CAAC;IACX,gBAAgB,EAAE,MAAM,IAAI,CAAC;CAC9B,CAAC;AAEF,eAAO,MAAM,eAAe,2EAmC1B,CAAC;AAEH,iBAAS,aAAa;;;;EAQrB;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -35,11 +35,11 @@ export const useSessionStore = create((set) => {
|
|
|
35
35
|
},
|
|
36
36
|
};
|
|
37
37
|
});
|
|
38
|
-
function
|
|
38
|
+
function useOxySession() {
|
|
39
39
|
const { session, status, error, fetchSessionData } = useSessionStore();
|
|
40
40
|
useEffect(() => {
|
|
41
41
|
fetchSessionData();
|
|
42
42
|
}, []);
|
|
43
43
|
return { session, status, error };
|
|
44
44
|
}
|
|
45
|
-
export default
|
|
45
|
+
export default useOxySession;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import useOxySession from "./hooks/useOxySession";
|
|
2
2
|
import getUserById from "./hooks/getUserById";
|
|
3
|
-
export {
|
|
3
|
+
export { useOxySession, getUserById };
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,uBAAuB,CAAC;AAClD,OAAO,WAAW,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import useOxySession from "./hooks/useOxySession";
|
|
2
2
|
import getUserById from "./hooks/getUserById";
|
|
3
|
-
export {
|
|
3
|
+
export { useOxySession, getUserById };
|