@ekidpro/bridge
Advanced tools
Comparing version 1.0.23 to 1.0.24
@@ -19,4 +19,4 @@ import { ResponseType, RequestType } from './base-type'; | ||
export declare const SetListWorkspaceStatusChannel = "CHANNEL_SET_LIST_WORKSPACE_STATUS"; | ||
export declare type ListWorkspaceStatus = 'show' | 'hidden'; | ||
export declare type ListWorkspaceStatus = true | false; | ||
export declare type SetListWorkspaceStatusRequest = RequestType<typeof SetListWorkspaceStatusChannel, ListWorkspaceStatus>; | ||
export declare type SetListWorkspaceStatusResponse = ResponseType<typeof SetListWorkspaceStatusChannel, ListWorkspaceStatus>; |
@@ -35,4 +35,9 @@ "use strict"; | ||
}); | ||
const tmp = data.data; | ||
return tmp; | ||
const tmp = data === null || data === void 0 ? void 0 : data.data; | ||
if (tmp) { | ||
return tmp; | ||
} | ||
else { | ||
throw new Error("Can't get data"); | ||
} | ||
}; | ||
@@ -39,0 +44,0 @@ exports.goBack = async () => { |
@@ -19,5 +19,5 @@ declare const _default: { | ||
setMiniAppInfo: (input: import("../..").MiniAppInfo) => Promise<import("../..").MiniAppInfo>; | ||
setListWorkspaceStatus: (input: import("../..").BackButtonStatus) => Promise<import("../..").BackButtonStatus>; | ||
setListWorkspaceStatus: (input: boolean) => Promise<boolean>; | ||
}; | ||
}; | ||
export default _default; |
{ | ||
"name": "@ekidpro/bridge", | ||
"version": "1.0.23", | ||
"version": "1.0.24", | ||
"description": "Bridge between ekidpro app with website", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/ekidpro-vn/bridge", |
Sorry, the diff of this file is not supported yet
59246
912