@stdlib/utils-async-inmap 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 CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2023 The Stdlib Authors.
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-2023. The Stdlib [Authors][stdlib-authors].
479
+ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
480
480
 
481
481
  </section>
482
482
 
@@ -489,8 +489,8 @@ Copyright &copy; 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.1.0
493
- [test-url]: https://github.com/stdlib-js/utils-async-inmap/actions/workflows/test.yml?query=branch:v0.1.0
492
+ [test-image]: https://github.com/stdlib-js/utils-async-inmap/actions/workflows/test.yml/badge.svg?branch=v0.2.1
493
+ [test-url]: https://github.com/stdlib-js/utils-async-inmap/actions/workflows/test.yml?query=branch:v0.2.1
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 &copy; 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
@@ -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).
@@ -160,7 +160,7 @@ interface InMapAsync {
160
160
  * @throws must provide valid options
161
161
  *
162
162
  * @example
163
- * var readFile = require( `@stdlib/fs/read-file` );
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( `@stdlib/fs/read-file` );
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; // tslint:disable-line:no-unnecessary-generics
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( `@stdlib/fs/read-file` );
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( `@stdlib/fs/read-file` );
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>; // tslint:disable-line:no-unnecessary-generics
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( `@stdlib/fs/read-file` );
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.1.0",
3
+ "version": "0.2.1",
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": {
@@ -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
- "test": "./test"
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,18 @@
37
30
  "url": "https://github.com/stdlib-js/stdlib/issues"
38
31
  },
39
32
  "dependencies": {
40
- "@stdlib/assert-has-own-property": "^0.1.0",
41
- "@stdlib/assert-is-boolean": "^0.1.0",
42
- "@stdlib/assert-is-collection": "^0.1.0",
43
- "@stdlib/assert-is-function": "^0.1.0",
44
- "@stdlib/assert-is-plain-object": "^0.1.0",
45
- "@stdlib/assert-is-positive-integer": "^0.1.0",
46
- "@stdlib/constants-float64-pinf": "^0.1.0",
47
- "@stdlib/string-format": "^0.1.0",
48
- "@stdlib/types": "^0.1.0",
49
- "@stdlib/utils-define-nonenumerable-read-only-property": "^0.1.0",
50
- "debug": "^2.6.9",
51
- "@stdlib/error-tools-fmtprodmsg": "^0.1.0"
52
- },
53
- "devDependencies": {
54
- "@stdlib/bench": "^0.1.0",
55
- "@stdlib/constants-float64-eps": "^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
+ "debug": "^2.6.9"
61
43
  },
44
+ "devDependencies": {},
62
45
  "engines": {
63
46
  "node": ">=0.10.0",
64
47
  "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