@stdlib/utils-async 0.1.0 → 0.2.0

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-2023 The Stdlib Authors.
1
+ Copyright (c) 2016-2024 The Stdlib Authors.
package/README.md CHANGED
@@ -160,7 +160,7 @@ See [LICENSE][stdlib-license].
160
160
 
161
161
  ## Copyright
162
162
 
163
- Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
163
+ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
164
164
 
165
165
  </section>
166
166
 
@@ -173,8 +173,8 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
173
173
  [npm-image]: http://img.shields.io/npm/v/@stdlib/utils-async.svg
174
174
  [npm-url]: https://npmjs.org/package/@stdlib/utils-async
175
175
 
176
- [test-image]: https://github.com/stdlib-js/utils-async/actions/workflows/test.yml/badge.svg?branch=v0.1.0
177
- [test-url]: https://github.com/stdlib-js/utils-async/actions/workflows/test.yml?query=branch:v0.1.0
176
+ [test-image]: https://github.com/stdlib-js/utils-async/actions/workflows/test.yml/badge.svg?branch=v0.2.0
177
+ [test-url]: https://github.com/stdlib-js/utils-async/actions/workflows/test.yml?query=branch:v0.2.0
178
178
 
179
179
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/utils-async/main.svg
180
180
  [coverage-url]: https://codecov.io/github/stdlib-js/utils-async?branch=main
@@ -197,8 +197,11 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
197
197
  [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
198
198
 
199
199
  [deno-url]: https://github.com/stdlib-js/utils-async/tree/deno
200
+ [deno-readme]: https://github.com/stdlib-js/utils-async/blob/deno/README.md
200
201
  [umd-url]: https://github.com/stdlib-js/utils-async/tree/umd
202
+ [umd-readme]: https://github.com/stdlib-js/utils-async/blob/umd/README.md
201
203
  [esm-url]: https://github.com/stdlib-js/utils-async/tree/esm
204
+ [esm-readme]: https://github.com/stdlib-js/utils-async/blob/esm/README.md
202
205
  [branches-url]: https://github.com/stdlib-js/utils-async/blob/main/branches.md
203
206
 
204
207
  [stdlib-license]: https://raw.githubusercontent.com/stdlib-js/utils-async/main/LICENSE
package/SECURITY.md ADDED
@@ -0,0 +1,5 @@
1
+ # Security
2
+
3
+ > Policy for reporting security vulnerabilities.
4
+
5
+ See the security policy [in the main project repository](https://github.com/stdlib-js/stdlib/security).
@@ -18,8 +18,7 @@
18
18
 
19
19
  // TypeScript Version: 4.1
20
20
 
21
- /* tslint:disable:max-line-length */
22
- /* tslint:disable:max-file-line-count */
21
+ /* eslint-disable max-lines */
23
22
 
24
23
  import anyByAsync = require( '@stdlib/utils-async-any-by' );
25
24
  import anyByRightAsync = require( '@stdlib/utils-async-any-by-right' );
@@ -76,7 +75,7 @@ interface Namespace {
76
75
  * @throws must provide valid options
77
76
  *
78
77
  * @example
79
- * var readFile = require( `@stdlib/fs/read-file` );
78
+ * var readFile = require( '@stdlib/fs-read-file' );
80
79
  *
81
80
  * function done( error, bool ) {
82
81
  * if ( error ) {
@@ -130,7 +129,7 @@ interface Namespace {
130
129
  * @throws must provide valid options
131
130
  *
132
131
  * @example
133
- * var readFile = require( `@stdlib/fs/read-file` );
132
+ * var readFile = require( '@stdlib/fs-read-file' );
134
133
  *
135
134
  * function done( error, bool ) {
136
135
  * if ( error ) {
@@ -184,7 +183,7 @@ interface Namespace {
184
183
  * @throws must provide valid options
185
184
  *
186
185
  * @example
187
- * var readFile = require( `@stdlib/fs/read-file` );
186
+ * var readFile = require( '@stdlib/fs-read-file' );
188
187
  *
189
188
  * function done( error, result ) {
190
189
  * if ( error ) {
@@ -281,7 +280,7 @@ interface Namespace {
281
280
  * @throws must provide valid options
282
281
  *
283
282
  * @example
284
- * var readFile = require( `@stdlib/fs/read-file` );
283
+ * var readFile = require( '@stdlib/fs-read-file' );
285
284
  *
286
285
  * function done( error, result ) {
287
286
  * if ( error ) {
@@ -393,7 +392,7 @@ interface Namespace {
393
392
  * @throws must provide valid options
394
393
  *
395
394
  * @example
396
- * var readFile = require( `@stdlib/fs/read-file` );
395
+ * var readFile = require( '@stdlib/fs-read-file' );
397
396
  *
398
397
  * function done( error, bool ) {
399
398
  * if ( error ) {
@@ -447,7 +446,7 @@ interface Namespace {
447
446
  * @throws must provide valid options
448
447
  *
449
448
  * @example
450
- * var readFile = require( `@stdlib/fs/read-file` );
449
+ * var readFile = require( '@stdlib/fs-read-file' );
451
450
  *
452
451
  * function done( error, bool ) {
453
452
  * if ( error ) {
@@ -501,7 +500,7 @@ interface Namespace {
501
500
  * @throws must provide valid options
502
501
  *
503
502
  * @example
504
- * var readFile = require( `@stdlib/fs/read-file` );
503
+ * var readFile = require( '@stdlib/fs-read-file' );
505
504
  *
506
505
  * function done( error ) {
507
506
  * if ( error ) {
@@ -552,7 +551,7 @@ interface Namespace {
552
551
  * @throws must provide valid options
553
552
  *
554
553
  * @example
555
- * var readFile = require( `@stdlib/fs/read-file` );
554
+ * var readFile = require( '@stdlib/fs-read-file' );
556
555
  *
557
556
  * function done( error ) {
558
557
  * if ( error ) {
@@ -647,7 +646,7 @@ interface Namespace {
647
646
  * @throws must provide valid options
648
647
  *
649
648
  * @example
650
- * var readFile = require( `@stdlib/fs/read-file` );
649
+ * var readFile = require( '@stdlib/fs-read-file' );
651
650
  *
652
651
  * function done( error, result ) {
653
652
  * if ( error ) {
@@ -688,7 +687,7 @@ interface Namespace {
688
687
  * @param done - callback to invoke upon completion
689
688
  *
690
689
  * @example
691
- * var randu = require( `@stdlib/random/base/randu` );
690
+ * var randu = require( '@stdlib/random-base-randu' );
692
691
  *
693
692
  * function predicate( clbk ) {
694
693
  * setTimeout( onTimeout, 0 );
@@ -716,7 +715,7 @@ interface Namespace {
716
715
  * @param done - callback to invoke upon completion
717
716
  *
718
717
  * @example
719
- * var randu = require( `@stdlib/random/base/randu` );
718
+ * var randu = require( '@stdlib/random-base-randu' );
720
719
  *
721
720
  * function predicate( clbk ) {
722
721
  * setTimeout( onTimeout, 0 );
@@ -767,7 +766,7 @@ interface Namespace {
767
766
  * @throws must provide valid options
768
767
  *
769
768
  * @example
770
- * var readFile = require( `@stdlib/fs/read-file` );
769
+ * var readFile = require( '@stdlib/fs-read-file' );
771
770
  *
772
771
  * function done( error, results ) {
773
772
  * if ( error ) {
@@ -817,7 +816,7 @@ interface Namespace {
817
816
  * @throws must provide valid options
818
817
  *
819
818
  * @example
820
- * var readFile = require( `@stdlib/fs/read-file` );
819
+ * var readFile = require( '@stdlib/fs-read-file' );
821
820
  *
822
821
  * function done( error, results ) {
823
822
  * if ( error ) {
@@ -909,7 +908,7 @@ interface Namespace {
909
908
  * @throws must provide valid options
910
909
  *
911
910
  * @example
912
- * var readFile = require( `@stdlib/fs/read-file` );
911
+ * var readFile = require( '@stdlib/fs-read-file' );
913
912
  *
914
913
  * function read( key, value, next ) {
915
914
  * var opts = {
@@ -969,7 +968,7 @@ interface Namespace {
969
968
  * @throws must provide valid options
970
969
  *
971
970
  * @example
972
- * var stat = require( `fs` ).stat;
971
+ * var stat = require( 'fs' ).stat;
973
972
  *
974
973
  * function getStats( file, next ) {
975
974
  * stat( file, onStats );
@@ -1023,7 +1022,7 @@ interface Namespace {
1023
1022
  * @throws must provide valid options
1024
1023
  *
1025
1024
  * @example
1026
- * var readFile = require( `@stdlib/fs/read-file` );
1025
+ * var readFile = require( '@stdlib/fs-read-file' );
1027
1026
  *
1028
1027
  * function done( error, bool ) {
1029
1028
  * if ( error ) {
@@ -1077,7 +1076,7 @@ interface Namespace {
1077
1076
  * @throws must provide valid options
1078
1077
  *
1079
1078
  * @example
1080
- * var readFile = require( `@stdlib/fs/read-file` );
1079
+ * var readFile = require( '@stdlib/fs-read-file' );
1081
1080
  *
1082
1081
  * function done( error, bool ) {
1083
1082
  * if ( error ) {
@@ -1132,7 +1131,7 @@ interface Namespace {
1132
1131
  * @throws must provide valid options
1133
1132
  *
1134
1133
  * @example
1135
- * var readFile = require( `@stdlib/fs/read-file` );
1134
+ * var readFile = require( '@stdlib/fs-read-file' );
1136
1135
  *
1137
1136
  * function done( error, acc ) {
1138
1137
  * if ( error ) {
@@ -1186,7 +1185,7 @@ interface Namespace {
1186
1185
  * @throws must provide valid options
1187
1186
  *
1188
1187
  * @example
1189
- * var readFile = require( `@stdlib/fs/read-file` );
1188
+ * var readFile = require( '@stdlib/fs-read-file' );
1190
1189
  *
1191
1190
  * function done( error, acc ) {
1192
1191
  * if ( error ) {
@@ -1272,7 +1271,7 @@ interface Namespace {
1272
1271
  * @throws must provide valid options
1273
1272
  *
1274
1273
  * @example
1275
- * var readFile = require( `@stdlib/fs/read-file` );
1274
+ * var readFile = require( '@stdlib/fs-read-file' );
1276
1275
  *
1277
1276
  * function done( error, bool ) {
1278
1277
  * if ( error ) {
@@ -1328,7 +1327,7 @@ interface Namespace {
1328
1327
  * @throws must provide valid options
1329
1328
  *
1330
1329
  * @example
1331
- * var readFile = require( `@stdlib/fs/read-file` );
1330
+ * var readFile = require( '@stdlib/fs-read-file' );
1332
1331
  *
1333
1332
  * function done( error, bool ) {
1334
1333
  * if ( error ) {
@@ -1387,7 +1386,7 @@ interface Namespace {
1387
1386
  * @throws must provide valid options
1388
1387
  *
1389
1388
  * @example
1390
- * var readFile = require( `@stdlib/fs/read-file` );
1389
+ * var readFile = require( '@stdlib/fs-read-file' );
1391
1390
  *
1392
1391
  * function done( error, result ) {
1393
1392
  * if ( error ) {
@@ -1427,7 +1426,7 @@ interface Namespace {
1427
1426
  * @param done - callback to invoke upon completion
1428
1427
  *
1429
1428
  * @example
1430
- * var randu = require( `@stdlib/random/base/randu` );
1429
+ * var randu = require( '@stdlib/random-base-randu' );
1431
1430
  *
1432
1431
  * function x( clbk ) {
1433
1432
  * setTimeout( onTimeout, 0 );
@@ -1458,7 +1457,7 @@ interface Namespace {
1458
1457
  * @param done - callback to invoke upon completion
1459
1458
  *
1460
1459
  * @example
1461
- * var randu = require( `@stdlib/random/base/randu` );
1460
+ * var randu = require( '@stdlib/random-base-randu' );
1462
1461
  *
1463
1462
  * function x( clbk ) {
1464
1463
  * setTimeout( onTimeout, 0 );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/utils-async",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Standard async utilities.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -36,68 +36,69 @@
36
36
  "url": "https://github.com/stdlib-js/stdlib/issues"
37
37
  },
38
38
  "dependencies": {
39
- "@stdlib/utils-async-any-by": "^0.1.0",
40
- "@stdlib/utils-async-any-by-right": "^0.1.0",
41
- "@stdlib/utils-async-bifurcate-by": "^0.1.0",
42
- "@stdlib/utils-async-compose": "^0.1.0",
43
- "@stdlib/utils-async-count-by": "^0.1.0",
44
- "@stdlib/utils-async-do-until": "^0.1.0",
45
- "@stdlib/utils-async-do-while": "^0.1.0",
46
- "@stdlib/utils-async-every-by": "^0.1.0",
47
- "@stdlib/utils-async-every-by-right": "^0.1.0",
48
- "@stdlib/utils-async-for-each": "^0.1.0",
49
- "@stdlib/utils-async-for-each-right": "^0.1.0",
50
- "@stdlib/utils-async-function-sequence": "^0.1.0",
51
- "@stdlib/utils-async-group-by": "^0.1.0",
52
- "@stdlib/utils-async-if-else": "^0.1.0",
53
- "@stdlib/utils-async-if-then": "^0.1.0",
54
- "@stdlib/utils-async-inmap": "^0.1.0",
55
- "@stdlib/utils-async-inmap-right": "^0.1.0",
56
- "@stdlib/utils-async-map-function": "^0.1.0",
57
- "@stdlib/utils-async-map-keys": "^0.0.8",
58
- "@stdlib/utils-async-map-values": "^0.0.8",
59
- "@stdlib/utils-async-none-by": "^0.1.0",
60
- "@stdlib/utils-async-none-by-right": "^0.1.0",
61
- "@stdlib/utils-async-reduce": "^0.1.0",
62
- "@stdlib/utils-async-reduce-right": "^0.1.0",
63
- "@stdlib/utils-async-series-waterfall": "^0.1.0",
64
- "@stdlib/utils-async-some-by": "^0.1.0",
65
- "@stdlib/utils-async-some-by-right": "^0.1.0",
66
- "@stdlib/utils-async-tabulate-by": "^0.1.0",
67
- "@stdlib/utils-async-try-catch": "^0.1.0",
68
- "@stdlib/utils-async-try-then": "^0.1.0",
69
- "@stdlib/utils-async-until": "^0.1.0",
70
- "@stdlib/utils-async-while": "^0.1.0",
71
- "@stdlib/utils-define-read-only-property": "^0.1.0"
39
+ "@stdlib/utils-async-any-by": "^0.2.0",
40
+ "@stdlib/utils-async-any-by-right": "^0.2.0",
41
+ "@stdlib/utils-async-bifurcate-by": "^0.2.0",
42
+ "@stdlib/utils-async-compose": "^0.2.0",
43
+ "@stdlib/utils-async-count-by": "^0.2.0",
44
+ "@stdlib/utils-async-do-until": "^0.2.0",
45
+ "@stdlib/utils-async-do-while": "^0.2.0",
46
+ "@stdlib/utils-async-every-by": "^0.2.0",
47
+ "@stdlib/utils-async-every-by-right": "^0.2.0",
48
+ "@stdlib/utils-async-for-each": "^0.2.0",
49
+ "@stdlib/utils-async-for-each-right": "^0.2.0",
50
+ "@stdlib/utils-async-function-sequence": "^0.2.0",
51
+ "@stdlib/utils-async-group-by": "^0.2.0",
52
+ "@stdlib/utils-async-if-else": "^0.2.0",
53
+ "@stdlib/utils-async-if-then": "^0.2.0",
54
+ "@stdlib/utils-async-inmap": "^0.2.0",
55
+ "@stdlib/utils-async-inmap-right": "^0.2.0",
56
+ "@stdlib/utils-async-map-function": "^0.2.0",
57
+ "@stdlib/utils-async-map-keys": "^0.2.0",
58
+ "@stdlib/utils-async-map-values": "^0.2.0",
59
+ "@stdlib/utils-async-none-by": "^0.2.0",
60
+ "@stdlib/utils-async-none-by-right": "^0.2.0",
61
+ "@stdlib/utils-async-reduce": "^0.2.0",
62
+ "@stdlib/utils-async-reduce-right": "^0.2.0",
63
+ "@stdlib/utils-async-series-waterfall": "^0.2.0",
64
+ "@stdlib/utils-async-some-by": "^0.2.0",
65
+ "@stdlib/utils-async-some-by-right": "^0.2.0",
66
+ "@stdlib/utils-async-tabulate-by": "^0.2.0",
67
+ "@stdlib/utils-async-try-catch": "^0.2.0",
68
+ "@stdlib/utils-async-try-then": "^0.2.0",
69
+ "@stdlib/utils-async-until": "^0.2.0",
70
+ "@stdlib/utils-async-while": "^0.2.0",
71
+ "@stdlib/utils-define-read-only-property": "^0.2.0"
72
72
  },
73
73
  "devDependencies": {
74
- "@stdlib/assert-has-own-property": "^0.1.0",
75
- "@stdlib/assert-is-array": "^0.1.0",
76
- "@stdlib/assert-is-boolean": "^0.1.0",
74
+ "@stdlib/assert-has-own-property": "^0.1.1",
75
+ "@stdlib/assert-is-array": "^0.1.1",
76
+ "@stdlib/assert-is-boolean": "^0.1.1",
77
77
  "@stdlib/assert-is-collection": "^0.1.0",
78
- "@stdlib/assert-is-function": "^0.1.0",
79
- "@stdlib/assert-is-function-array": "^0.1.0",
80
- "@stdlib/assert-is-nan": "^0.1.0",
78
+ "@stdlib/assert-is-function": "^0.1.1",
79
+ "@stdlib/assert-is-function-array": "^0.2.0",
80
+ "@stdlib/assert-is-nan": "^0.1.1",
81
81
  "@stdlib/assert-is-nonnegative-integer": "^0.1.0",
82
- "@stdlib/assert-is-plain-object": "^0.1.0",
82
+ "@stdlib/assert-is-plain-object": "^0.1.1",
83
83
  "@stdlib/assert-is-positive-integer": "^0.1.0",
84
- "@stdlib/bench": "^0.1.0",
85
- "@stdlib/constants-float64-eps": "^0.1.0",
86
- "@stdlib/constants-float64-pinf": "^0.1.0",
87
- "@stdlib/fs-read-file": "^0.1.0",
88
- "@stdlib/math-base-assert-is-nan": "^0.1.0",
89
- "@stdlib/math-base-special-ceil": "^0.0.8",
90
- "@stdlib/random-base-randu": "^0.0.8",
91
- "@stdlib/string-format": "^0.1.0",
84
+ "@stdlib/constants-float64-eps": "^0.1.1",
85
+ "@stdlib/constants-float64-pinf": "^0.1.1",
86
+ "@stdlib/fs-read-file": "^0.1.1",
87
+ "@stdlib/math-base-assert-is-nan": "^0.1.1",
88
+ "@stdlib/math-base-special-ceil": "^0.1.1",
89
+ "@stdlib/random-base-randu": "^0.1.0",
90
+ "@stdlib/string-format": "^0.2.0",
92
91
  "@stdlib/string-repeat": "^0.1.0",
93
- "@stdlib/string-replace": "^0.1.0",
94
- "@stdlib/utils-define-nonenumerable-read-only-property": "^0.1.0",
92
+ "@stdlib/string-replace": "^0.1.1",
93
+ "@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.0",
95
94
  "@stdlib/utils-index-of": "^0.1.0",
96
95
  "@stdlib/utils-keys": "^0.1.0",
97
- "@stdlib/utils-noop": "^0.1.0",
96
+ "@stdlib/utils-noop": "^0.2.0",
98
97
  "tape": "git+https://github.com/kgryte/tape.git#fix/globby",
99
98
  "istanbul": "^0.4.1",
100
- "tap-min": "git+https://github.com/Planeshifter/tap-min.git"
99
+ "tap-min": "git+https://github.com/Planeshifter/tap-min.git",
100
+ "@stdlib/bench-harness": "^0.2.0",
101
+ "@stdlib/bench": "^0.3.1"
101
102
  },
102
103
  "engines": {
103
104
  "node": ">=0.10.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