Skip to content

Commit

Permalink
Merge pull request #13 from CookieGMVN/1.5.2-hf1
Browse files Browse the repository at this point in the history
1.5.2 Hotfix 1
  • Loading branch information
CookieGMVN authored Jul 10, 2024
2 parents 7961718 + f04cd84 commit 38e926c
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
3 changes: 3 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ declare class MB {
* Undici client. Use it for sending the request to API.
*/
client: Client;
/**
* WASM Buffer, downloaded from MB.
*/
private wasmData;
/**
* Login to your MB account via username and password.
Expand Down
4 changes: 3 additions & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mbbank",
"version": "1.5.0",
"version": "1.5.2",
"description": "An promise-based unofficial API wrapper for Vietnam Military Commercial Joint Stock Bank (MBBank, MB)",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
4 changes: 3 additions & 1 deletion src/MB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ export default class MB {
*/
public client = new Client("https://online.mbbank.com.vn");

/**
* WASM Buffer, downloaded from MB.
*/
private wasmData!: Buffer;

/**
Expand All @@ -87,7 +90,6 @@ export default class MB {
* A private function to process MB's captcha and get Session ID.
*/
private async login(): Promise<boolean> {
if (this.sessionId) return Promise.resolve(true);
// Request ID/Ref ID for MB
const rId = getTimeNow();

Expand Down

0 comments on commit 38e926c

Please sign in to comment.