namirasoft-node 1.4.24 → 1.4.25

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.
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "framework": "npm",
9
9
  "application": "package",
10
10
  "private": false,
11
- "version": "1.4.24",
11
+ "version": "1.4.25",
12
12
  "author": "Amir Abolhasani",
13
13
  "license": "MIT",
14
14
  "main": "./dist/index.js",
@@ -39,6 +39,7 @@ export class OTPOperation
39
39
  let wait_time = this.getWaitTime(x_otp_req_tried_count);
40
40
  let wait_date = TimeOperation.minutesAgo(wait_time, new Date());
41
41
  let next_time = TimeOperation.diffInSecond(x_otp_time ?? new Date("0001-01-01"), wait_date, false);
42
+ console.log({ x_otp, x_otp_time, x_otp_req_tried_count, wait_time, wait_date, next_time })
42
43
  if (next_time > 0)
43
44
  {
44
45
  let mins = Math.min(1, Math.round(next_time / 60));