@stdlib/utils-async-inmap 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 +1 -1
- package/README.md +6 -3
- package/SECURITY.md +5 -0
- package/docs/types/index.d.ts +7 -7
- package/package.json +18 -17
- 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
|
@@ -476,7 +476,7 @@ See [LICENSE][stdlib-license].
|
|
|
476
476
|
|
|
477
477
|
## Copyright
|
|
478
478
|
|
|
479
|
-
Copyright © 2016-
|
|
479
|
+
Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
480
480
|
|
|
481
481
|
</section>
|
|
482
482
|
|
|
@@ -489,8 +489,8 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
489
489
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/utils-async-inmap.svg
|
|
490
490
|
[npm-url]: https://npmjs.org/package/@stdlib/utils-async-inmap
|
|
491
491
|
|
|
492
|
-
[test-image]: https://github.com/stdlib-js/utils-async-inmap/actions/workflows/test.yml/badge.svg?branch=v0.
|
|
493
|
-
[test-url]: https://github.com/stdlib-js/utils-async-inmap/actions/workflows/test.yml?query=branch:v0.
|
|
492
|
+
[test-image]: https://github.com/stdlib-js/utils-async-inmap/actions/workflows/test.yml/badge.svg?branch=v0.2.0
|
|
493
|
+
[test-url]: https://github.com/stdlib-js/utils-async-inmap/actions/workflows/test.yml?query=branch:v0.2.0
|
|
494
494
|
|
|
495
495
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/utils-async-inmap/main.svg
|
|
496
496
|
[coverage-url]: https://codecov.io/github/stdlib-js/utils-async-inmap?branch=main
|
|
@@ -513,8 +513,11 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
513
513
|
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
514
514
|
|
|
515
515
|
[deno-url]: https://github.com/stdlib-js/utils-async-inmap/tree/deno
|
|
516
|
+
[deno-readme]: https://github.com/stdlib-js/utils-async-inmap/blob/deno/README.md
|
|
516
517
|
[umd-url]: https://github.com/stdlib-js/utils-async-inmap/tree/umd
|
|
518
|
+
[umd-readme]: https://github.com/stdlib-js/utils-async-inmap/blob/umd/README.md
|
|
517
519
|
[esm-url]: https://github.com/stdlib-js/utils-async-inmap/tree/esm
|
|
520
|
+
[esm-readme]: https://github.com/stdlib-js/utils-async-inmap/blob/esm/README.md
|
|
518
521
|
[branches-url]: https://github.com/stdlib-js/utils-async-inmap/blob/main/branches.md
|
|
519
522
|
|
|
520
523
|
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/utils-async-inmap/main/LICENSE
|
package/SECURITY.md
ADDED
package/docs/types/index.d.ts
CHANGED
|
@@ -160,7 +160,7 @@ interface InMapAsync {
|
|
|
160
160
|
* @throws must provide valid options
|
|
161
161
|
*
|
|
162
162
|
* @example
|
|
163
|
-
* var readFile = require(
|
|
163
|
+
* var readFile = require( '@stdlib/fs-read-file' );
|
|
164
164
|
*
|
|
165
165
|
* function done( error, results ) {
|
|
166
166
|
* if ( error ) {
|
|
@@ -205,7 +205,7 @@ interface InMapAsync {
|
|
|
205
205
|
* @param done - function to invoke upon completion
|
|
206
206
|
*
|
|
207
207
|
* @example
|
|
208
|
-
* var readFile = require(
|
|
208
|
+
* var readFile = require( '@stdlib/fs-read-file' );
|
|
209
209
|
*
|
|
210
210
|
* function done( error, results ) {
|
|
211
211
|
* if ( error ) {
|
|
@@ -235,7 +235,7 @@ interface InMapAsync {
|
|
|
235
235
|
*
|
|
236
236
|
* inmapAsync( files, read, done );
|
|
237
237
|
*/
|
|
238
|
-
<T = unknown, U = unknown, V = unknown>( collection: Collection<T>, fcn: Fcn<T, U, V>, done: Callback<U> ): void;
|
|
238
|
+
<T = unknown, U = unknown, V = unknown>( collection: Collection<T>, fcn: Fcn<T, U, V>, done: Callback<U> ): void;
|
|
239
239
|
|
|
240
240
|
/**
|
|
241
241
|
* Returns a function to invoke a function once for each element in a collection and to update the collection in-place.
|
|
@@ -254,7 +254,7 @@ interface InMapAsync {
|
|
|
254
254
|
* @returns function which invokes the provided function once for each element in a collection
|
|
255
255
|
*
|
|
256
256
|
* @example
|
|
257
|
-
* var readFile = require(
|
|
257
|
+
* var readFile = require( '@stdlib/fs-read-file' );
|
|
258
258
|
*
|
|
259
259
|
* function read( file, next ) {
|
|
260
260
|
* var opts = {
|
|
@@ -309,7 +309,7 @@ interface InMapAsync {
|
|
|
309
309
|
* @returns function which invokes the provided function once for each element in a collection
|
|
310
310
|
*
|
|
311
311
|
* @example
|
|
312
|
-
* var readFile = require(
|
|
312
|
+
* var readFile = require( '@stdlib/fs-read-file' );
|
|
313
313
|
*
|
|
314
314
|
* function read( file, next ) {
|
|
315
315
|
* var opts = {
|
|
@@ -345,7 +345,7 @@ interface InMapAsync {
|
|
|
345
345
|
* // Run `read` for each element in `files`:
|
|
346
346
|
* inmapAsync( files, done );
|
|
347
347
|
*/
|
|
348
|
-
factory<T = unknown, U = unknown, V = unknown>( fcn: Fcn<T, U, V> ): FactoryFunction<T, U>;
|
|
348
|
+
factory<T = unknown, U = unknown, V = unknown>( fcn: Fcn<T, U, V> ): FactoryFunction<T, U>;
|
|
349
349
|
}
|
|
350
350
|
|
|
351
351
|
/**
|
|
@@ -366,7 +366,7 @@ interface InMapAsync {
|
|
|
366
366
|
* @throws must provide valid options
|
|
367
367
|
*
|
|
368
368
|
* @example
|
|
369
|
-
* var readFile = require(
|
|
369
|
+
* var readFile = require( '@stdlib/fs-read-file' );
|
|
370
370
|
*
|
|
371
371
|
* function done( error, results ) {
|
|
372
372
|
* if ( error ) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/utils-async-inmap",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Invoke a function for each element in a collection and update the collection in-place.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -37,27 +37,28 @@
|
|
|
37
37
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@stdlib/assert-has-own-property": "^0.1.
|
|
41
|
-
"@stdlib/assert-is-boolean": "^0.
|
|
42
|
-
"@stdlib/assert-is-collection": "^0.
|
|
43
|
-
"@stdlib/assert-is-function": "^0.
|
|
44
|
-
"@stdlib/assert-is-plain-object": "^0.
|
|
45
|
-
"@stdlib/assert-is-positive-integer": "^0.
|
|
46
|
-
"@stdlib/constants-float64-pinf": "^0.
|
|
47
|
-
"@stdlib/string-format": "^0.
|
|
48
|
-
"@stdlib/types": "^0.1
|
|
49
|
-
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.
|
|
40
|
+
"@stdlib/assert-has-own-property": "^0.1.1",
|
|
41
|
+
"@stdlib/assert-is-boolean": "^0.2.0",
|
|
42
|
+
"@stdlib/assert-is-collection": "^0.2.0",
|
|
43
|
+
"@stdlib/assert-is-function": "^0.2.0",
|
|
44
|
+
"@stdlib/assert-is-plain-object": "^0.2.0",
|
|
45
|
+
"@stdlib/assert-is-positive-integer": "^0.2.0",
|
|
46
|
+
"@stdlib/constants-float64-pinf": "^0.2.0",
|
|
47
|
+
"@stdlib/string-format": "^0.2.0",
|
|
48
|
+
"@stdlib/types": "^0.3.1",
|
|
49
|
+
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.0",
|
|
50
50
|
"debug": "^2.6.9",
|
|
51
|
-
"@stdlib/error-tools-fmtprodmsg": "^0.1.
|
|
51
|
+
"@stdlib/error-tools-fmtprodmsg": "^0.1.1"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@stdlib/
|
|
55
|
-
"@stdlib/
|
|
56
|
-
"@stdlib/
|
|
57
|
-
"@stdlib/utils-noop": "^0.1.0",
|
|
54
|
+
"@stdlib/constants-float64-eps": "^0.1.1",
|
|
55
|
+
"@stdlib/fs-read-file": "^0.1.1",
|
|
56
|
+
"@stdlib/utils-noop": "^0.2.0",
|
|
58
57
|
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
|
|
59
58
|
"istanbul": "^0.4.1",
|
|
60
|
-
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"
|
|
59
|
+
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
|
|
60
|
+
"@stdlib/bench-harness": "^0.1.2",
|
|
61
|
+
"@stdlib/bench": "^0.3.1"
|
|
61
62
|
},
|
|
62
63
|
"engines": {
|
|
63
64
|
"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
|