@hastehaul/common 3.3.0 → 3.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,7 +32,7 @@ const currentUser = (req, res, next) => __awaiter(void 0, void 0, void 0, functi
32
32
  }
33
33
  try {
34
34
  const jwtKey = (_a = process.env.JWT_KEY) !== null && _a !== void 0 ? _a : "";
35
- console.log("=== jwtKey ===", jwtKey);
35
+ console.log("=== KEYS ===", jwtKey);
36
36
  const token = bearerToken.split(' ')[1];
37
37
  if (token) {
38
38
  const result = jsonwebtoken_1.default.verify(token, jwtKey.split('-').join(''));
@@ -45,6 +45,7 @@ export declare enum AccountStatus {
45
45
  ResourceNotFoundError = 2306,// 2306 => Resource not found Error
46
46
  SystemError = 2307,// 2307 => System Error
47
47
  TooManyRequestError = 2308,// 2308 => Too Many request error
48
+ CustomerNotFound = 2309,// 2306 => Resource not found Error
48
49
  IncorrectOrNotFoundOTP = 2400,// 2400 => Incorrect/Not Found OTP
49
50
  OTPExpired = 2401
50
51
  }
@@ -57,6 +57,7 @@ var AccountStatus;
57
57
  AccountStatus[AccountStatus["ResourceNotFoundError"] = 2306] = "ResourceNotFoundError";
58
58
  AccountStatus[AccountStatus["SystemError"] = 2307] = "SystemError";
59
59
  AccountStatus[AccountStatus["TooManyRequestError"] = 2308] = "TooManyRequestError";
60
+ AccountStatus[AccountStatus["CustomerNotFound"] = 2309] = "CustomerNotFound";
60
61
  AccountStatus[AccountStatus["IncorrectOrNotFoundOTP"] = 2400] = "IncorrectOrNotFoundOTP";
61
62
  AccountStatus[AccountStatus["OTPExpired"] = 2401] = "OTPExpired";
62
63
  })(AccountStatus || (exports.AccountStatus = AccountStatus = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hastehaul/common",
3
- "version": "3.3.0",
3
+ "version": "3.5.0",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",