@konplit-services/common 1.0.336 → 1.0.338

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.
@@ -11,12 +11,10 @@ const validateInputRequest = (req, res, next) => {
11
11
  const query = (0, getobject_keys_1.getAllKeys)(req.query);
12
12
  for (let key of query) {
13
13
  const validate = (0, validateParams_1.validateInput)(key);
14
- console.log("query", key);
15
14
  if (validate)
16
15
  throw new invalid_input_error_1.InvalidInputError(language_1.lang.invalid_input, key, error_codes_1.error_codes.INVALID_INPUT);
17
16
  }
18
17
  for (let key of body) {
19
- console.log("body", key);
20
18
  const validate = (0, validateParams_1.validateInput)(key);
21
19
  if (validate)
22
20
  throw new invalid_input_error_1.InvalidInputError(language_1.lang.invalid_input, key, error_codes_1.error_codes.INVALID_INPUT);
@@ -42,6 +42,7 @@ const errorHandler = (err, req, res, next) => {
42
42
  //@ts-ignore
43
43
  if (err instanceof SyntaxError && err.status === 400 && "body" in err) {
44
44
  // Handle JSON parsing error
45
+ console.log(err);
45
46
  return res.status(400).send({
46
47
  status: helper_1.Status.Failed,
47
48
  errors: [
@@ -11,8 +11,6 @@ const morgan_1 = __importDefault(require("morgan"));
11
11
  // Configure Day.js with plugins
12
12
  dayjs_1.default.extend(utc_1.default);
13
13
  dayjs_1.default.extend(timezone_1.default);
14
- console.log("Current Time in UTC:", (0, dayjs_1.default)().utc().format()); // Debugging line
15
- console.log("Current Time in Lagos:", (0, dayjs_1.default)().tz("Africa/Lagos").format()); // Debugging line
16
14
  // Create a custom Morgan logging function
17
15
  exports.useMorgan = (0, morgan_1.default)((tokens, req, res) => {
18
16
  const timestamp = (0, dayjs_1.default)()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.336",
3
+ "version": "1.0.338",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",