@redzone/taunt-logins-ui-react 0.0.14 → 0.0.15

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.
@@ -610,10 +610,10 @@ const TauntProvider = ({ children, tauntServiceEndpoint, magicKey })=>{
610
610
  setIsLoading(false);
611
611
  }
612
612
  })(), []);
613
- const getClaimrData = react.useCallback(()=>{
614
- if (!loggedIn) return undefined;
615
- return taunt.getClaimrData();
616
- }, [
613
+ const getClaimrData = react.useCallback(()=>cc._async_to_generator(function*() {
614
+ if (!loggedIn) return undefined;
615
+ return taunt.getClaimrData();
616
+ })(), [
617
617
  loggedIn
618
618
  ]);
619
619
  if (!tauntServiceEndpoint) {
@@ -96,7 +96,7 @@ type ContextProps = {
96
96
  telegramLogin: () => void;
97
97
  metaLogin: () => void;
98
98
  coinbaseLogin: () => void;
99
- getClaimrData?: () => Promise<ClaimrCampaignData | undefined>;
99
+ getClaimrData: () => Promise<ClaimrCampaignData | undefined>;
100
100
  getClaimrToken: () => Promise<string | undefined>;
101
101
  refreshToken: (token: string) => Promise<void>;
102
102
  logout: () => void;
@@ -96,7 +96,7 @@ type ContextProps = {
96
96
  telegramLogin: () => void;
97
97
  metaLogin: () => void;
98
98
  coinbaseLogin: () => void;
99
- getClaimrData?: () => Promise<ClaimrCampaignData | undefined>;
99
+ getClaimrData: () => Promise<ClaimrCampaignData | undefined>;
100
100
  getClaimrToken: () => Promise<string | undefined>;
101
101
  refreshToken: (token: string) => Promise<void>;
102
102
  logout: () => void;
package/dist/es/index.js CHANGED
@@ -610,10 +610,10 @@ const TauntProvider = ({ children, tauntServiceEndpoint, magicKey })=>{
610
610
  setIsLoading(false);
611
611
  }
612
612
  })(), []);
613
- const getClaimrData = useCallback(()=>{
614
- if (!loggedIn) return undefined;
615
- return taunt.getClaimrData();
616
- }, [
613
+ const getClaimrData = useCallback(()=>_async_to_generator(function*() {
614
+ if (!loggedIn) return undefined;
615
+ return taunt.getClaimrData();
616
+ })(), [
617
617
  loggedIn
618
618
  ]);
619
619
  if (!tauntServiceEndpoint) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@redzone/taunt-logins-ui-react",
3
- "version": "0.0.14",
3
+ "version": "0.0.15",
4
4
  "type": "module",
5
5
  "main": "./dist/es/index.js",
6
6
  "module": "./dist/es/index.js",