@konplit-services/common 1.0.213 → 1.0.215

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.
@@ -7,5 +7,6 @@ export interface TransactionAbortedEvent {
7
7
  merchantId: string;
8
8
  transactionId: string;
9
9
  amount: number;
10
+ additionalData?: any;
10
11
  };
11
12
  }
@@ -7,5 +7,6 @@ export interface TransactionCancelledEvent {
7
7
  merchantId: string;
8
8
  transactionId: string;
9
9
  amount: number;
10
+ additionalData?: any;
10
11
  };
11
12
  }
@@ -10,5 +10,6 @@ export interface TransactionCompletedEvent {
10
10
  transactionId: string;
11
11
  trasactionType?: TRANSACTION_CHARGES_TYPE;
12
12
  amount: number;
13
+ additionalData?: any;
13
14
  };
14
15
  }
@@ -7,5 +7,6 @@ export interface TransactionDeclinedEvent {
7
7
  merchantId: string;
8
8
  transactionId: string;
9
9
  amount: number;
10
+ additionalData?: any;
10
11
  };
11
12
  }
@@ -7,5 +7,6 @@ export interface TransactionFailedEvent {
7
7
  merchantId: string;
8
8
  transactionId: string;
9
9
  amount: number;
10
+ additionalData?: any;
10
11
  };
11
12
  }
@@ -7,5 +7,6 @@ export interface TransactionProcessingEvent {
7
7
  merchantId: string;
8
8
  transactionId: string;
9
9
  amount: number;
10
+ additionalData?: any;
10
11
  };
11
12
  }
@@ -16,6 +16,7 @@ const constants_1 = require("../redis/constants");
16
16
  const notAuthorized_1 = require("../errors/notAuthorized");
17
17
  const language_1 = require("../helper/lang/language");
18
18
  const error_codes_1 = require("../helper/errorCodes/error-codes");
19
+ const app_configs_1 = require("../app.configs");
19
20
  const currentUser = (req, res, next) => __awaiter(void 0, void 0, void 0, function* () {
20
21
  if (!req.headers["authorization"])
21
22
  return next();
@@ -34,7 +35,9 @@ const currentUser = (req, res, next) => __awaiter(void 0, void 0, void 0, functi
34
35
  }
35
36
  }
36
37
  catch (error) {
37
- console.log(error);
38
+ if (app_configs_1.appConfigs.getNODE_ENV() !== "production") {
39
+ console.log(error);
40
+ }
38
41
  }
39
42
  next();
40
43
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.213",
3
+ "version": "1.0.215",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",