@ejfdelgado/ejflab-common 1.8.0 → 1.8.1

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ejfdelgado/ejflab-common",
3
3
  "type": "commonjs",
4
- "version": "1.8.0",
4
+ "version": "1.8.1",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ejfdelgado/ejflab-common.git"
@@ -36,7 +36,7 @@ class StepBasic {
36
36
  this.startTime = new Date().getTime();
37
37
  }
38
38
  toc() {
39
- const MAX_TIME_DATA = 10;
39
+ let MAX_TIME_DATA = 10;
40
40
  this.endTime = new Date().getTime();
41
41
  this.duration = this.endTime - this.startTime;
42
42
  // Read the performance object
@@ -44,6 +44,9 @@ class StepBasic {
44
44
  if (performance.track !== true) {
45
45
  return;
46
46
  }
47
+ if (typeof performance.n == "number") {
48
+ MAX_TIME_DATA = performance.n;
49
+ }
47
50
  // Notify
48
51
  const idTxt = `${this.commandName}«${this.argsTxtIndividual}»`;
49
52
  const id = "d" + Buffer.from(idTxt).toString('base64');