@konplit-services/common 1.0.335 → 1.0.337

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);
@@ -13,8 +13,11 @@ dayjs_1.default.extend(utc_1.default);
13
13
  dayjs_1.default.extend(timezone_1.default);
14
14
  // Create a custom Morgan logging function
15
15
  exports.useMorgan = (0, morgan_1.default)((tokens, req, res) => {
16
+ const timestamp = (0, dayjs_1.default)()
17
+ .tz("Africa/Lagos")
18
+ .format("YYYY-MM-DD HH:mm:ss.SSS");
16
19
  return [
17
- (0, dayjs_1.default)().tz("Africa/Lagos").format("YYYY-MM-DD HH:mm:ss.SSS"),
20
+ timestamp,
18
21
  tokens["remote-addr"](req, res),
19
22
  tokens.method(req, res),
20
23
  tokens.url(req, res),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konplit-services/common",
3
- "version": "1.0.335",
3
+ "version": "1.0.337",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",