@stdlib/utils-async-for-each-right 0.0.7 → 0.0.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.
package/NOTICE CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2021 The Stdlib Authors.
1
+ Copyright (c) 2016-2022 The Stdlib Authors.
package/README.md CHANGED
@@ -20,7 +20,7 @@ limitations under the License.
20
20
 
21
21
  # forEachRightAsync
22
22
 
23
- [![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] [![dependencies][dependencies-image]][dependencies-url]
23
+ [![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
24
24
 
25
25
  > Invoke a function once for each element in a collection, iterating from right to left.
26
26
 
@@ -337,6 +337,21 @@ forEachRightAsync( files, read, done );
337
337
 
338
338
  <!-- /.references -->
339
339
 
340
+ <!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
341
+
342
+ <section class="related">
343
+
344
+ * * *
345
+
346
+ ## See Also
347
+
348
+ - <span class="package-name">[`@stdlib/utils/async/for-each`][@stdlib/utils/async/for-each]</span><span class="delimiter">: </span><span class="description">invoke a function once for each element in a collection.</span>
349
+ - <span class="package-name">[`@stdlib/utils/for-each-right`][@stdlib/utils/for-each-right]</span><span class="delimiter">: </span><span class="description">invoke a function for each element in a collection, iterating from right to left.</span>
350
+
351
+ </section>
352
+
353
+ <!-- /.related -->
354
+
340
355
  <!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
341
356
 
342
357
 
@@ -363,7 +378,7 @@ See [LICENSE][stdlib-license].
363
378
 
364
379
  ## Copyright
365
380
 
366
- Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
381
+ Copyright &copy; 2016-2022. The Stdlib [Authors][stdlib-authors].
367
382
 
368
383
  </section>
369
384
 
@@ -382,9 +397,20 @@ Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
382
397
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/utils-async-for-each-right/main.svg
383
398
  [coverage-url]: https://codecov.io/github/stdlib-js/utils-async-for-each-right?branch=main
384
399
 
400
+ <!--
401
+
385
402
  [dependencies-image]: https://img.shields.io/david/stdlib-js/utils-async-for-each-right.svg
386
403
  [dependencies-url]: https://david-dm.org/stdlib-js/utils-async-for-each-right/main
387
404
 
405
+ -->
406
+
407
+ [umd]: https://github.com/umdjs/umd
408
+ [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
409
+
410
+ [deno-url]: https://github.com/stdlib-js/utils-async-for-each-right/tree/deno
411
+ [umd-url]: https://github.com/stdlib-js/utils-async-for-each-right/tree/umd
412
+ [esm-url]: https://github.com/stdlib-js/utils-async-for-each-right/tree/esm
413
+
388
414
  [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
389
415
  [chat-url]: https://gitter.im/stdlib-js/stdlib/
390
416
 
@@ -400,6 +426,14 @@ Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
400
426
 
401
427
  [mdn-object]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object
402
428
 
429
+ <!-- <related-links> -->
430
+
431
+ [@stdlib/utils/async/for-each]: https://www.npmjs.com/package/@stdlib/utils-async-for-each
432
+
433
+ [@stdlib/utils/for-each-right]: https://www.npmjs.com/package/@stdlib/utils-for-each-right
434
+
435
+ <!-- </related-links> -->
436
+
403
437
  </section>
404
438
 
405
439
  <!-- /.links -->
@@ -76,7 +76,7 @@ type Binary = ( value: any, next: Callback ) => void;
76
76
  * @param index - collection index
77
77
  * @param next - a callback to be invoked after processing a collection `value`
78
78
  */
79
- type Tertiary = ( value: any, index: number, next: Callback ) => void;
79
+ type Ternary = ( value: any, index: number, next: Callback ) => void;
80
80
 
81
81
  /**
82
82
  * Function invoked for each element in a collection.
@@ -96,7 +96,7 @@ type Quaternary = ( value: any, index: number, collection: Collection, next: Cal
96
96
  * @param collection - input collection
97
97
  * @param next - a callback to be invoked after processing a collection `value`
98
98
  */
99
- type Fcn = Binary | Tertiary | Quaternary;
99
+ type Fcn = Binary | Ternary | Quaternary;
100
100
 
101
101
  /**
102
102
  * Function which invokes the provided function once for each element in a collection.
package/lib/limit.js CHANGED
@@ -70,7 +70,7 @@ function limit( collection, opts, fcn, done ) {
70
70
  for ( i = 0; i < lim; i++ ) {
71
71
  // This guard is necessary to protect against synchronous functions which exhaust all collection elements...
72
72
  if ( idx > 0 ) {
73
- next(); // eslint-disable-line callback-return
73
+ next(); // eslint-disable-line node/callback-return
74
74
  }
75
75
  }
76
76
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/utils-async-for-each-right",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Invoke a function once for each element in a collection, iterating from right to left.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {