triangle-utils 1.4.7 → 1.4.8

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.
@@ -68,7 +68,7 @@ export class UtilsMisc {
68
68
  if (print_indices) {
69
69
  console.log(i + ":" + (index - 1) + "/" + inputs.length);
70
70
  }
71
- await this.safe_run(() => f(inputs[index - 1], index));
71
+ await this.safe_run(() => f(inputs[index - 1], index - 1));
72
72
  }
73
73
  })());
74
74
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triangle-utils",
3
- "version": "1.4.7",
3
+ "version": "1.4.8",
4
4
  "main": "dist/src/index.js",
5
5
  "directories": {
6
6
  "test": "vitest"
package/src/UtilsMisc.ts CHANGED
@@ -79,7 +79,7 @@ export class UtilsMisc {
79
79
  if (print_indices) {
80
80
  console.log(i + ":" + (index - 1) + "/" + inputs.length)
81
81
  }
82
- await this.safe_run(() => f(inputs[index - 1], index))
82
+ await this.safe_run(() => f(inputs[index - 1], index - 1))
83
83
  }
84
84
  })())
85
85
  }