@riocrypto/common 1.0.528 → 1.0.529

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.
@@ -4,12 +4,14 @@ exports.MissingKYCApprovalError = void 0;
4
4
  const custom_error_1 = require("./custom-error");
5
5
  class MissingKYCApprovalError extends custom_error_1.CustomError {
6
6
  constructor() {
7
- super("KYC status is not approved");
7
+ super("KYC status is not approved for this user");
8
8
  this.statusCode = 401;
9
9
  Object.setPrototypeOf(this, MissingKYCApprovalError.prototype);
10
10
  }
11
11
  serializeErrors() {
12
- return [{ message: "KYC status is not approved" }];
12
+ return [
13
+ { message: "KYC status is not approved is not approved for this user" },
14
+ ];
13
15
  }
14
16
  }
15
17
  exports.MissingKYCApprovalError = MissingKYCApprovalError;
@@ -10,7 +10,7 @@ class NotBrokerError extends custom_error_1.CustomError {
10
10
  }
11
11
  serializeErrors() {
12
12
  return [
13
- { message: "To call this endpoint as a user, you must be a broker" },
13
+ { message: "To do this operation as a user, you must be a broker" },
14
14
  ];
15
15
  }
16
16
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.528",
3
+ "version": "1.0.529",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",