@stdlib/utils-async-group-by 0.1.0 → 0.2.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.
- package/NOTICE +1 -1
- package/README.md +6 -3
- package/SECURITY.md +5 -0
- package/docs/types/index.d.ts +11 -11
- package/package.json +15 -31
- package/CITATION.cff +0 -30
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2024 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -505,7 +505,7 @@ See [LICENSE][stdlib-license].
|
|
|
505
505
|
|
|
506
506
|
## Copyright
|
|
507
507
|
|
|
508
|
-
Copyright © 2016-
|
|
508
|
+
Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
509
509
|
|
|
510
510
|
</section>
|
|
511
511
|
|
|
@@ -518,8 +518,8 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
518
518
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/utils-async-group-by.svg
|
|
519
519
|
[npm-url]: https://npmjs.org/package/@stdlib/utils-async-group-by
|
|
520
520
|
|
|
521
|
-
[test-image]: https://github.com/stdlib-js/utils-async-group-by/actions/workflows/test.yml/badge.svg?branch=v0.1
|
|
522
|
-
[test-url]: https://github.com/stdlib-js/utils-async-group-by/actions/workflows/test.yml?query=branch:v0.1
|
|
521
|
+
[test-image]: https://github.com/stdlib-js/utils-async-group-by/actions/workflows/test.yml/badge.svg?branch=v0.2.1
|
|
522
|
+
[test-url]: https://github.com/stdlib-js/utils-async-group-by/actions/workflows/test.yml?query=branch:v0.2.1
|
|
523
523
|
|
|
524
524
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/utils-async-group-by/main.svg
|
|
525
525
|
[coverage-url]: https://codecov.io/github/stdlib-js/utils-async-group-by?branch=main
|
|
@@ -542,8 +542,11 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
542
542
|
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
543
543
|
|
|
544
544
|
[deno-url]: https://github.com/stdlib-js/utils-async-group-by/tree/deno
|
|
545
|
+
[deno-readme]: https://github.com/stdlib-js/utils-async-group-by/blob/deno/README.md
|
|
545
546
|
[umd-url]: https://github.com/stdlib-js/utils-async-group-by/tree/umd
|
|
547
|
+
[umd-readme]: https://github.com/stdlib-js/utils-async-group-by/blob/umd/README.md
|
|
546
548
|
[esm-url]: https://github.com/stdlib-js/utils-async-group-by/tree/esm
|
|
549
|
+
[esm-readme]: https://github.com/stdlib-js/utils-async-group-by/blob/esm/README.md
|
|
547
550
|
[branches-url]: https://github.com/stdlib-js/utils-async-group-by/blob/main/branches.md
|
|
548
551
|
|
|
549
552
|
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/utils-async-group-by/main/LICENSE
|
package/SECURITY.md
ADDED
package/docs/types/index.d.ts
CHANGED
|
@@ -273,7 +273,7 @@ interface GroupByAsync {
|
|
|
273
273
|
* @throws must provide valid options
|
|
274
274
|
*
|
|
275
275
|
* @example
|
|
276
|
-
* var readFile = require(
|
|
276
|
+
* var readFile = require( '@stdlib/fs-read-file' );
|
|
277
277
|
*
|
|
278
278
|
* function done( error, result ) {
|
|
279
279
|
* if ( error ) {
|
|
@@ -323,7 +323,7 @@ interface GroupByAsync {
|
|
|
323
323
|
* @throws must provide valid options
|
|
324
324
|
*
|
|
325
325
|
* @example
|
|
326
|
-
* var readFile = require(
|
|
326
|
+
* var readFile = require( '@stdlib/fs-read-file' );
|
|
327
327
|
*
|
|
328
328
|
* function done( error, result ) {
|
|
329
329
|
* if ( error ) {
|
|
@@ -373,7 +373,7 @@ interface GroupByAsync {
|
|
|
373
373
|
* @throws must provide valid options
|
|
374
374
|
*
|
|
375
375
|
* @example
|
|
376
|
-
* var readFile = require(
|
|
376
|
+
* var readFile = require( '@stdlib/fs-read-file' );
|
|
377
377
|
*
|
|
378
378
|
* function done( error, result ) {
|
|
379
379
|
* if ( error ) {
|
|
@@ -417,7 +417,7 @@ interface GroupByAsync {
|
|
|
417
417
|
* @param done - function to invoke upon completion
|
|
418
418
|
*
|
|
419
419
|
* @example
|
|
420
|
-
* var readFile = require(
|
|
420
|
+
* var readFile = require( '@stdlib/fs-read-file' );
|
|
421
421
|
*
|
|
422
422
|
* function done( error, result ) {
|
|
423
423
|
* if ( error ) {
|
|
@@ -447,7 +447,7 @@ interface GroupByAsync {
|
|
|
447
447
|
*
|
|
448
448
|
* groupByAsync( files, indicator, done );
|
|
449
449
|
*/
|
|
450
|
-
<T = unknown, V = unknown>( collection: Collection<T>, indicator: Indicator<T, V>, done: ValuesCallback<T> ): void;
|
|
450
|
+
<T = unknown, V = unknown>( collection: Collection<T>, indicator: Indicator<T, V>, done: ValuesCallback<T> ): void;
|
|
451
451
|
|
|
452
452
|
/**
|
|
453
453
|
* Returns a function for grouping values according to an indicator function.
|
|
@@ -466,7 +466,7 @@ interface GroupByAsync {
|
|
|
466
466
|
* @returns function which invokes the indicator function once for each element in a collection
|
|
467
467
|
*
|
|
468
468
|
* @example
|
|
469
|
-
* var readFile = require(
|
|
469
|
+
* var readFile = require( '@stdlib/fs-read-file' );
|
|
470
470
|
*
|
|
471
471
|
* function indicator( file, next ) {
|
|
472
472
|
* var opts = {
|
|
@@ -525,7 +525,7 @@ interface GroupByAsync {
|
|
|
525
525
|
* @returns function which invokes the indicator function once for each element in a collection
|
|
526
526
|
*
|
|
527
527
|
* @example
|
|
528
|
-
* var readFile = require(
|
|
528
|
+
* var readFile = require( '@stdlib/fs-read-file' );
|
|
529
529
|
*
|
|
530
530
|
* function indicator( file, next ) {
|
|
531
531
|
* var opts = {
|
|
@@ -584,7 +584,7 @@ interface GroupByAsync {
|
|
|
584
584
|
* @returns function which invokes the indicator function once for each element in a collection
|
|
585
585
|
*
|
|
586
586
|
* @example
|
|
587
|
-
* var readFile = require(
|
|
587
|
+
* var readFile = require( '@stdlib/fs-read-file' );
|
|
588
588
|
*
|
|
589
589
|
* function indicator( file, next ) {
|
|
590
590
|
* var opts = {
|
|
@@ -637,7 +637,7 @@ interface GroupByAsync {
|
|
|
637
637
|
* @returns function which invokes the indicator function once for each element in a collection
|
|
638
638
|
*
|
|
639
639
|
* @example
|
|
640
|
-
* var readFile = require(
|
|
640
|
+
* var readFile = require( '@stdlib/fs-read-file' );
|
|
641
641
|
*
|
|
642
642
|
* function indicator( file, next ) {
|
|
643
643
|
* var opts = {
|
|
@@ -673,7 +673,7 @@ interface GroupByAsync {
|
|
|
673
673
|
* // Try to read each element in `files`:
|
|
674
674
|
* groupByAsync( files, done );
|
|
675
675
|
*/
|
|
676
|
-
factory<T = unknown, V = unknown>( indicator: Indicator<T, V> ): ValuesFactoryFunction<T>;
|
|
676
|
+
factory<T = unknown, V = unknown>( indicator: Indicator<T, V> ): ValuesFactoryFunction<T>;
|
|
677
677
|
}
|
|
678
678
|
|
|
679
679
|
/**
|
|
@@ -694,7 +694,7 @@ interface GroupByAsync {
|
|
|
694
694
|
* @throws must provide valid options
|
|
695
695
|
*
|
|
696
696
|
* @example
|
|
697
|
-
* var readFile = require(
|
|
697
|
+
* var readFile = require( '@stdlib/fs-read-file' );
|
|
698
698
|
*
|
|
699
699
|
* function done( error, result ) {
|
|
700
700
|
* if ( error ) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/utils-async-group-by",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Group values according to an indicator function.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -15,19 +15,12 @@
|
|
|
15
15
|
],
|
|
16
16
|
"main": "./lib",
|
|
17
17
|
"directories": {
|
|
18
|
-
"benchmark": "./benchmark",
|
|
19
18
|
"doc": "./docs",
|
|
20
|
-
"example": "./examples",
|
|
21
19
|
"lib": "./lib",
|
|
22
|
-
"
|
|
20
|
+
"dist": "./dist"
|
|
23
21
|
},
|
|
24
22
|
"types": "./docs/types",
|
|
25
|
-
"scripts": {
|
|
26
|
-
"test": "make test",
|
|
27
|
-
"test-cov": "make test-cov",
|
|
28
|
-
"examples": "make examples",
|
|
29
|
-
"benchmark": "make benchmark"
|
|
30
|
-
},
|
|
23
|
+
"scripts": {},
|
|
31
24
|
"homepage": "https://stdlib.io",
|
|
32
25
|
"repository": {
|
|
33
26
|
"type": "git",
|
|
@@ -37,28 +30,19 @@
|
|
|
37
30
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
38
31
|
},
|
|
39
32
|
"dependencies": {
|
|
40
|
-
"@stdlib/assert-has-own-property": "^0.1
|
|
41
|
-
"@stdlib/assert-is-boolean": "^0.1
|
|
42
|
-
"@stdlib/assert-is-collection": "^0.1
|
|
43
|
-
"@stdlib/assert-is-function": "^0.1
|
|
44
|
-
"@stdlib/assert-is-plain-object": "^0.1
|
|
45
|
-
"@stdlib/assert-is-positive-integer": "^0.1
|
|
46
|
-
"@stdlib/constants-float64-pinf": "^0.1
|
|
47
|
-
"@stdlib/string-format": "^0.1
|
|
48
|
-
"@stdlib/
|
|
49
|
-
"@stdlib/utils-
|
|
50
|
-
"
|
|
51
|
-
"debug": "^2.6.9",
|
|
52
|
-
"@stdlib/error-tools-fmtprodmsg": "^0.1.0"
|
|
53
|
-
},
|
|
54
|
-
"devDependencies": {
|
|
55
|
-
"@stdlib/bench": "^0.1.0",
|
|
56
|
-
"@stdlib/fs-read-file": "^0.1.0",
|
|
57
|
-
"@stdlib/utils-noop": "^0.1.0",
|
|
58
|
-
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
|
|
59
|
-
"istanbul": "^0.4.1",
|
|
60
|
-
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"
|
|
33
|
+
"@stdlib/assert-has-own-property": "^0.2.1",
|
|
34
|
+
"@stdlib/assert-is-boolean": "^0.2.1",
|
|
35
|
+
"@stdlib/assert-is-collection": "^0.2.1",
|
|
36
|
+
"@stdlib/assert-is-function": "^0.2.1",
|
|
37
|
+
"@stdlib/assert-is-plain-object": "^0.2.1",
|
|
38
|
+
"@stdlib/assert-is-positive-integer": "^0.2.1",
|
|
39
|
+
"@stdlib/constants-float64-pinf": "^0.2.1",
|
|
40
|
+
"@stdlib/string-format": "^0.2.1",
|
|
41
|
+
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.1",
|
|
42
|
+
"@stdlib/utils-index-of": "^0.2.1",
|
|
43
|
+
"debug": "^2.6.9"
|
|
61
44
|
},
|
|
45
|
+
"devDependencies": {},
|
|
62
46
|
"engines": {
|
|
63
47
|
"node": ">=0.10.0",
|
|
64
48
|
"npm": ">2.7.0"
|
package/CITATION.cff
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
cff-version: 1.2.0
|
|
2
|
-
title: stdlib
|
|
3
|
-
message: >-
|
|
4
|
-
If you use this software, please cite it using the
|
|
5
|
-
metadata from this file.
|
|
6
|
-
|
|
7
|
-
type: software
|
|
8
|
-
|
|
9
|
-
authors:
|
|
10
|
-
- name: The Stdlib Authors
|
|
11
|
-
url: https://github.com/stdlib-js/stdlib/graphs/contributors
|
|
12
|
-
|
|
13
|
-
repository-code: https://github.com/stdlib-js/stdlib
|
|
14
|
-
url: https://stdlib.io
|
|
15
|
-
|
|
16
|
-
abstract: |
|
|
17
|
-
Standard library for JavaScript and Node.js.
|
|
18
|
-
|
|
19
|
-
keywords:
|
|
20
|
-
- JavaScript
|
|
21
|
-
- Node.js
|
|
22
|
-
- TypeScript
|
|
23
|
-
- standard library
|
|
24
|
-
- scientific computing
|
|
25
|
-
- numerical computing
|
|
26
|
-
- statistical computing
|
|
27
|
-
|
|
28
|
-
license: Apache-2.0 AND BSL-1.0
|
|
29
|
-
|
|
30
|
-
date-released: 2016
|