@riocrypto/common 1.0.618 → 1.0.619

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.
@@ -43,7 +43,7 @@ export declare class RioClient {
43
43
  confirmBankPayment(orderId: string, amountFiat?: number): Promise<any>;
44
44
  confirmBankPayout(orderId: string): Promise<any>;
45
45
  getUser(): Promise<User>;
46
- createUser(user: UserInput): Promise<void>;
46
+ createUser(user: UserInput): Promise<User>;
47
47
  getBankPayment(orderId: string): Promise<BankPayment>;
48
48
  verifyBankPayment(orderId: string): Promise<any>;
49
49
  sendPhoneAuthCode(phoneNumber: string): Promise<void>;
@@ -117,7 +117,8 @@ class RioClient {
117
117
  }
118
118
  createUser(user) {
119
119
  return __awaiter(this, void 0, void 0, function* () {
120
- yield this.axios.post("/api/users", user);
120
+ const { data } = yield this.axios.post("/api/users", user);
121
+ return data;
121
122
  });
122
123
  }
123
124
  getBankPayment(orderId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.618",
3
+ "version": "1.0.619",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",