@stdlib/utils-async-inmap-right 0.0.4 → 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
  # inmapRightAsync
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 for each element in a collection and update the collection in-place, iterating from right to left.
26
26
 
@@ -422,6 +422,22 @@ inmapRightAsync( files, read, done );
422
422
 
423
423
  <!-- /.references -->
424
424
 
425
+ <!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
426
+
427
+ <section class="related">
428
+
429
+ * * *
430
+
431
+ ## See Also
432
+
433
+ - <span class="package-name">[`@stdlib/utils/async/for-each-right`][@stdlib/utils/async/for-each-right]</span><span class="delimiter">: </span><span class="description">invoke a function once for each element in a collection, iterating from right to left.</span>
434
+ - <span class="package-name">[`@stdlib/utils/async/inmap`][@stdlib/utils/async/inmap]</span><span class="delimiter">: </span><span class="description">invoke a function for each element in a collection and update the collection in-place.</span>
435
+ - <span class="package-name">[`@stdlib/utils/inmap-right`][@stdlib/utils/inmap-right]</span><span class="delimiter">: </span><span class="description">invoke a function for each element in a collection and update the collection in-place, iterating from right to left.</span>
436
+
437
+ </section>
438
+
439
+ <!-- /.related -->
440
+
425
441
  <!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
426
442
 
427
443
 
@@ -448,7 +464,7 @@ See [LICENSE][stdlib-license].
448
464
 
449
465
  ## Copyright
450
466
 
451
- Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
467
+ Copyright &copy; 2016-2022. The Stdlib [Authors][stdlib-authors].
452
468
 
453
469
  </section>
454
470
 
@@ -467,9 +483,20 @@ Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
467
483
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/utils-async-inmap-right/main.svg
468
484
  [coverage-url]: https://codecov.io/github/stdlib-js/utils-async-inmap-right?branch=main
469
485
 
486
+ <!--
487
+
470
488
  [dependencies-image]: https://img.shields.io/david/stdlib-js/utils-async-inmap-right.svg
471
489
  [dependencies-url]: https://david-dm.org/stdlib-js/utils-async-inmap-right/main
472
490
 
491
+ -->
492
+
493
+ [umd]: https://github.com/umdjs/umd
494
+ [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
495
+
496
+ [deno-url]: https://github.com/stdlib-js/utils-async-inmap-right/tree/deno
497
+ [umd-url]: https://github.com/stdlib-js/utils-async-inmap-right/tree/umd
498
+ [esm-url]: https://github.com/stdlib-js/utils-async-inmap-right/tree/esm
499
+
473
500
  [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
474
501
  [chat-url]: https://gitter.im/stdlib-js/stdlib/
475
502
 
@@ -485,6 +512,16 @@ Copyright &copy; 2016-2021. The Stdlib [Authors][stdlib-authors].
485
512
 
486
513
  [mdn-object]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object
487
514
 
515
+ <!-- <related-links> -->
516
+
517
+ [@stdlib/utils/async/for-each-right]: https://www.npmjs.com/package/@stdlib/utils-async-for-each-right
518
+
519
+ [@stdlib/utils/async/inmap]: https://www.npmjs.com/package/@stdlib/utils-async-inmap
520
+
521
+ [@stdlib/utils/inmap-right]: https://www.npmjs.com/package/@stdlib/utils-inmap-right
522
+
523
+ <!-- </related-links> -->
524
+
488
525
  </section>
489
526
 
490
527
  <!-- /.links -->
@@ -109,7 +109,7 @@ type BinaryFcn = ( value: any, next: Callback ) => void;
109
109
  * @param index - collection index
110
110
  * @param next - a callback to be invoked after processing a collection `value`
111
111
  */
112
- type TertiaryFcn = ( value: any, index: number, next: Callback ) => void;
112
+ type TernaryFcn = ( value: any, index: number, next: Callback ) => void;
113
113
 
114
114
  /**
115
115
  * Function invoked for each element in a collection.
@@ -129,7 +129,7 @@ type QuaternaryFcn = ( value: any, index: number, collection: Collection, next:
129
129
  * @param collection - input collection
130
130
  * @param next - a callback to be invoked after processing a collection `value`
131
131
  */
132
- type Fcn = BinaryFcn | TertiaryFcn | QuaternaryFcn;
132
+ type Fcn = BinaryFcn | TernaryFcn | QuaternaryFcn;
133
133
 
134
134
  /**
135
135
  * Invokes the provided function for each element in a collection and updates a collection in-place.
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-inmap-right",
3
- "version": "0.0.4",
3
+ "version": "0.0.8",
4
4
  "description": "Invoke a function for each element in a collection and update the collection in-place, iterating from right to left.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
package/CHANGELOG.md DELETED
@@ -1,5 +0,0 @@
1
- # CHANGELOG
2
-
3
- > Package changelog.
4
-
5
- See [GitHub Releases](https://github.com/stdlib-js/utils-async-inmap-right/releases) for the changelog.