@riocrypto/common 1.0.514 → 1.0.516

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.
@@ -48,7 +48,10 @@ export declare class RioClient {
48
48
  createUser(user: UserInput): Promise<void>;
49
49
  createBusinessUser(businessUser: BusinessUserInput): Promise<BusinessUser>;
50
50
  sendPhoneAuthCode(phoneNumber: string): Promise<void>;
51
- getAuth(): Promise<Auth>;
51
+ getAuth(): Promise<{
52
+ auth: Auth;
53
+ missing: string[];
54
+ }>;
52
55
  signout(): Promise<void>;
53
56
  verifyPhoneCode(phoneNumber: string, code: string): Promise<void>;
54
57
  createOrder(order: OrderInput): Promise<Order>;
@@ -43,7 +43,7 @@ class RioClient {
43
43
  }
44
44
  updateUser(update, userId) {
45
45
  return __awaiter(this, void 0, void 0, function* () {
46
- const { data } = yield this.axios.patch(`/api/users/${userId}`, update);
46
+ const { data } = yield this.axios.patch(`/api/users/${userId || ""}`, update);
47
47
  return data;
48
48
  });
49
49
  }
@@ -261,7 +261,7 @@ class RioClient {
261
261
  }
262
262
  updateAuth(update, id) {
263
263
  return __awaiter(this, void 0, void 0, function* () {
264
- const { data } = yield this.axios.patch(`/api/auth/${id}`, update);
264
+ const { data } = yield this.axios.patch(`/api/auth/${id || ""}`, update);
265
265
  return data;
266
266
  });
267
267
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.514",
3
+ "version": "1.0.516",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",