Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ekidpro/bridge

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ekidpro/bridge - npm Package Compare versions

Comparing version 1.0.12 to 1.0.14

build/src/web/command/remote.d.ts

5

build/src/web/command/index.d.ts

@@ -12,3 +12,8 @@ declare const _default: {

};
remote: {
login: (username: string, password: string) => Promise<import("../..").UserInfo>;
fetchUserInfo: (forceReload?: boolean) => Promise<import("../..").UserInfo>;
reset: () => void;
};
};
export default _default;

@@ -6,2 +6,3 @@ "use strict";

const scan_qr_1 = require("./scan-qr");
const remote_1 = require("./remote");
exports.default = {

@@ -18,3 +19,8 @@ device: {

},
remote: {
login: remote_1.login,
fetchUserInfo: remote_1.getUserInfo,
reset: remote_1.reset,
},
};
//# sourceMappingURL=index.js.map

4

package.json
{
"name": "@ekidpro/bridge",
"version": "1.0.12",
"version": "1.0.14",
"description": "Bridge between ekidpro app with website",

@@ -30,2 +30,3 @@ "homepage": "https://github.com/ekidpro-vn/bridge",

"devDependencies": {
"@types/blueimp-md5": "^2.7.0",
"@types/history": "^4.7.6",

@@ -46,2 +47,3 @@ "@types/node": "^13.11.1",

"dependencies": {
"blueimp-md5": "^2.17.0",
"qrcode.react": "^1.0.0",

@@ -48,0 +50,0 @@ "socket.io-client": "^2.3.0",

@@ -155,10 +155,25 @@ ![ekidpro](./documents/image.png 'eKidPro Logo')

- command.device.setButtonStatus() => Promise<'show' | 'hidden'>
- command.device.setButtonStatus(type: 'show' | 'hidden') => Promise<'show' | 'hidden'>
- command.device.setStatusBarStyle() => Promise<'default' | 'light-content' | 'dark-content'>
- command.device.setStatusBarStyle(type: 'default' | 'light-content' | 'dark-content') => Promise<'default' | 'light-content' | 'dark-content'>
- command.device.goBack() => Promise<boolean>
* // TODO: getUserInfo()
- Mini web function
```js
- Đăng nhập, lấy token và thông tin user
command.remote.login(username: string, password: string) => Promise<UserInfo>
- Lấy thông tin mới nhất của user. Nếu forceNew thì sẽ gọi từ api, còn ko lấy dữ liệu từ localStorage
command.remote.fetchUserInfo(forceNew : boolean) => Promise<UserInfo>
- Xoá dữ liệu đã lưu tại localStorage. Clear cache
command.remote.reset()
```
- // TODO: getUserInfo()
4. Lắng nghe thay đổi từ trong app

@@ -165,0 +180,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc