@naturalcycles/js-lib 15.50.0 → 15.50.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.
@@ -429,7 +429,7 @@ export function _minMaxOrUndefined(array) {
429
429
  return;
430
430
  let min;
431
431
  let max;
432
- for (let item of array) {
432
+ for (const item of array) {
433
433
  if (item === undefined || item === null)
434
434
  continue;
435
435
  if (min === undefined)
@@ -459,7 +459,7 @@ export function _minMaxByOrUndefined(array, mapper) {
459
459
  let minItem;
460
460
  let max;
461
461
  let maxItem;
462
- for (let item of array) {
462
+ for (const item of array) {
463
463
  if (item === undefined || item === null)
464
464
  continue;
465
465
  const value = mapper(item);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/js-lib",
3
3
  "type": "module",
4
- "version": "15.50.0",
4
+ "version": "15.50.1",
5
5
  "dependencies": {
6
6
  "tslib": "^2",
7
7
  "undici": "^7",
@@ -13,7 +13,7 @@
13
13
  "@types/semver": "^7",
14
14
  "crypto-js": "^4",
15
15
  "dayjs": "^1",
16
- "@naturalcycles/dev-lib": "18.4.2"
16
+ "@naturalcycles/dev-lib": "20.12.10"
17
17
  },
18
18
  "exports": {
19
19
  ".": "./dist/index.js",
@@ -498,7 +498,7 @@ export function _minMaxOrUndefined<T>(
498
498
  let min: T | undefined
499
499
  let max: T | undefined
500
500
 
501
- for (let item of array) {
501
+ for (const item of array) {
502
502
  if (item === undefined || item === null) continue
503
503
  if (min === undefined) min = item
504
504
  if (max === undefined) max = item
@@ -532,7 +532,7 @@ export function _minMaxByOrUndefined<T>(
532
532
  let max: ReturnType<typeof mapper> | undefined
533
533
  let maxItem: T | undefined
534
534
 
535
- for (let item of array) {
535
+ for (const item of array) {
536
536
  if (item === undefined || item === null) continue
537
537
 
538
538
  const value = mapper(item)