Skip to content

Commit 1cf58b9

Browse files
committed
Auto-generated commit
1 parent d51f9b6 commit 1cf58b9

File tree

2 files changed

+28
-25
lines changed

2 files changed

+28
-25
lines changed

CHANGELOG.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-09-30)
7+
## Unreleased (2025-10-01)
88

99
<section class="features">
1010

@@ -148,9 +148,9 @@
148148

149149
### Closed Issues
150150

151-
A total of 11 issues were closed in this release:
151+
A total of 12 issues were closed in this release:
152152

153-
[#6004](https://github.com/stdlib-js/stdlib/issues/6004), [#6786](https://github.com/stdlib-js/stdlib/issues/6786), [#6800](https://github.com/stdlib-js/stdlib/issues/6800), [#7060](https://github.com/stdlib-js/stdlib/issues/7060), [#7350](https://github.com/stdlib-js/stdlib/issues/7350), [#7694](https://github.com/stdlib-js/stdlib/issues/7694), [#7914](https://github.com/stdlib-js/stdlib/issues/7914), [#8000](https://github.com/stdlib-js/stdlib/issues/8000), [#8043](https://github.com/stdlib-js/stdlib/issues/8043), [#8061](https://github.com/stdlib-js/stdlib/issues/8061), [#8155](https://github.com/stdlib-js/stdlib/issues/8155)
153+
[#6004](https://github.com/stdlib-js/stdlib/issues/6004), [#6786](https://github.com/stdlib-js/stdlib/issues/6786), [#6800](https://github.com/stdlib-js/stdlib/issues/6800), [#7060](https://github.com/stdlib-js/stdlib/issues/7060), [#7350](https://github.com/stdlib-js/stdlib/issues/7350), [#7694](https://github.com/stdlib-js/stdlib/issues/7694), [#7914](https://github.com/stdlib-js/stdlib/issues/7914), [#8000](https://github.com/stdlib-js/stdlib/issues/8000), [#8043](https://github.com/stdlib-js/stdlib/issues/8043), [#8061](https://github.com/stdlib-js/stdlib/issues/8061), [#8155](https://github.com/stdlib-js/stdlib/issues/8155), [#8169](https://github.com/stdlib-js/stdlib/issues/8169)
154154

155155
</section>
156156

@@ -162,6 +162,7 @@ A total of 11 issues were closed in this release:
162162

163163
<details>
164164

165+
- [`78351b3`](https://github.com/stdlib-js/stdlib/commit/78351b361d25d1abd7741df7a2c68f42968a3247) - **chore:** fix JavaScript lint errors [(#8176)](https://github.com/stdlib-js/stdlib/pull/8176) _(by Payal Goswami, Philipp Burckhardt)_
165166
- [`586b535`](https://github.com/stdlib-js/stdlib/commit/586b5355d0ef01720adc2a4f6549bacf63f2432d) - **docs:** update extended description [(#8167)](https://github.com/stdlib-js/stdlib/pull/8167) _(by stdlib-bot)_
166167
- [`e00e353`](https://github.com/stdlib-js/stdlib/commit/e00e353d8e5861c42098e0322f7ba11ee784529d) - **chore:** resolve javascript lint errors [(#8158)](https://github.com/stdlib-js/stdlib/pull/8158) _(by Zuhair Ahmad, Athan Reines)_
167168
- [`d94514b`](https://github.com/stdlib-js/stdlib/commit/d94514bc9418f5b42df6233204d5005d53af00ca) - **docs:** clean-up TSDoc declaration comments _(by Philipp Burckhardt)_
@@ -254,14 +255,15 @@ A total of 11 issues were closed in this release:
254255

255256
### Contributors
256257

257-
A total of 14 people contributed to this release. Thank you to the following contributors:
258+
A total of 15 people contributed to this release. Thank you to the following contributors:
258259

259260
- Athan Reines
260261
- DUDHAT HEMIL PRAVINKUMAR
261262
- Gururaj Gurram
262263
- Jay Soni
263264
- Lokesh Ranjan
264265
- Neeraj Pathak
266+
- Payal Goswami
265267
- Philipp Burckhardt
266268
- Satyajeet Chavan
267269
- Srinivas Batthula

async/reduce-right/lib/limit.js

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,28 @@ function limit( collection, acc, opts, fcn, done ) {
7474
next(); // eslint-disable-line node/callback-return
7575
}
7676
}
77+
/**
78+
* Callback invoked once a provided function finishes processing a collection element.
79+
*
80+
* @private
81+
* @param {*} [error] - error
82+
* @param {*} [result] - accumulation result
83+
* @returns {void}
84+
*/
85+
function cb( error, result ) {
86+
if ( flg ) {
87+
// Prevent further processing of collection elements:
88+
return;
89+
}
90+
if ( error ) {
91+
flg = true;
92+
return clbk( error );
93+
}
94+
debug( 'Accumulator: %s', JSON.stringify( result ) );
95+
acc = result;
96+
clbk();
97+
}
98+
7799
/**
78100
* Callback to invoke a provided function for the next element in a collection.
79101
*
@@ -89,27 +111,6 @@ function limit( collection, acc, opts, fcn, done ) {
89111
} else {
90112
fcn.call( opts.thisArg, acc, collection[ idx ], idx, collection, cb ); // eslint-disable-line max-len
91113
}
92-
/**
93-
* Callback invoked once a provided function finishes processing a collection element.
94-
*
95-
* @private
96-
* @param {*} [error] - error
97-
* @param {*} [result] - accumulation result
98-
* @returns {void}
99-
*/
100-
function cb( error, result ) {
101-
if ( flg ) {
102-
// Prevent further processing of collection elements:
103-
return;
104-
}
105-
if ( error ) {
106-
flg = true;
107-
return clbk( error );
108-
}
109-
debug( 'Accumulator: %s', JSON.stringify( result ) );
110-
acc = result;
111-
clbk();
112-
}
113114
}
114115

115116
/**

0 commit comments

Comments
 (0)