@stdlib/utils-async-map-keys 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
@@ -421,7 +421,7 @@ See [LICENSE][stdlib-license].
421
421
 
422
422
  ## Copyright
423
423
 
424
- Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
424
+ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
425
425
 
426
426
  </section>
427
427
 
@@ -434,8 +434,8 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
434
434
  [npm-image]: http://img.shields.io/npm/v/@stdlib/utils-async-map-keys.svg
435
435
  [npm-url]: https://npmjs.org/package/@stdlib/utils-async-map-keys
436
436
 
437
- [test-image]: https://github.com/stdlib-js/utils-async-map-keys/actions/workflows/test.yml/badge.svg?branch=v0.1.0
438
- [test-url]: https://github.com/stdlib-js/utils-async-map-keys/actions/workflows/test.yml?query=branch:v0.1.0
437
+ [test-image]: https://github.com/stdlib-js/utils-async-map-keys/actions/workflows/test.yml/badge.svg?branch=v0.2.1
438
+ [test-url]: https://github.com/stdlib-js/utils-async-map-keys/actions/workflows/test.yml?query=branch:v0.2.1
439
439
 
440
440
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/utils-async-map-keys/main.svg
441
441
  [coverage-url]: https://codecov.io/github/stdlib-js/utils-async-map-keys?branch=main
@@ -458,8 +458,11 @@ Copyright &copy; 2016-2023. The Stdlib [Authors][stdlib-authors].
458
458
  [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
459
459
 
460
460
  [deno-url]: https://github.com/stdlib-js/utils-async-map-keys/tree/deno
461
+ [deno-readme]: https://github.com/stdlib-js/utils-async-map-keys/blob/deno/README.md
461
462
  [umd-url]: https://github.com/stdlib-js/utils-async-map-keys/tree/umd
463
+ [umd-readme]: https://github.com/stdlib-js/utils-async-map-keys/blob/umd/README.md
462
464
  [esm-url]: https://github.com/stdlib-js/utils-async-map-keys/tree/esm
465
+ [esm-readme]: https://github.com/stdlib-js/utils-async-map-keys/blob/esm/README.md
463
466
  [branches-url]: https://github.com/stdlib-js/utils-async-map-keys/blob/main/branches.md
464
467
 
465
468
  [stdlib-license]: https://raw.githubusercontent.com/stdlib-js/utils-async-map-keys/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).
@@ -119,7 +119,7 @@ type TernaryTransform = ( value: any, index: number, next: Callback ) => void;
119
119
  * @param obj - the input object
120
120
  * @param next - a callback to be invoked after processing an object `value`
121
121
  */
122
- type QuaternaryTransform = ( value: any, index: number, obj: any, next: Callback ) => void; // tslint-disable-line max-line-length
122
+ type QuaternaryTransform = ( value: any, index: number, obj: any, next: Callback ) => void;
123
123
 
124
124
  /**
125
125
  * Transform function.
@@ -129,7 +129,7 @@ type QuaternaryTransform = ( value: any, index: number, obj: any, next: Callback
129
129
  * @param obj - the input object
130
130
  * @param next - a callback to be invoked after processing an object `value`
131
131
  */
132
- type Transform = Unary | BinaryTransform | TernaryTransform | QuaternaryTransform; // tslint-disable-line max-line-length
132
+ type Transform = Unary | BinaryTransform | TernaryTransform | QuaternaryTransform;
133
133
 
134
134
  /**
135
135
  * Maps keys from one object to a new object having the same values.
@@ -164,7 +164,7 @@ interface MapKeysAsync {
164
164
  * @throws must provide valid options
165
165
  *
166
166
  * @example
167
- * var readFile = require( `@stdlib/fs/read-file` );
167
+ * var readFile = require( '@stdlib/fs-read-file' );
168
168
  *
169
169
  * function read( key, value, next ) {
170
170
  * var opts = {
@@ -201,7 +201,7 @@ interface MapKeysAsync {
201
201
  * // Process each file in `files`:
202
202
  * mapKeysAsync( files, opts, read, done );
203
203
  */
204
- ( obj: any, options: Options, transform: Transform, done: DoneCallback ): void; // tslint-disable-line max-line-length
204
+ ( obj: any, options: Options, transform: Transform, done: DoneCallback ): void;
205
205
 
206
206
  /**
207
207
  * Maps keys from one object to a new object having the same values.
@@ -219,7 +219,7 @@ interface MapKeysAsync {
219
219
  * @param done - function to invoke upon completion
220
220
  *
221
221
  * @example
222
- * var readFile = require( `@stdlib/fs/read-file` );
222
+ * var readFile = require( '@stdlib/fs-read-file' );
223
223
  *
224
224
  * function read( key, value, next ) {
225
225
  * var opts = {
@@ -274,7 +274,7 @@ interface MapKeysAsync {
274
274
  * @returns function which maps keys from one object to a new object having the same values
275
275
  *
276
276
  * @example
277
- * var readFile = require( `@stdlib/fs/read-file` );
277
+ * var readFile = require( '@stdlib/fs-read-file' );
278
278
  *
279
279
  * function read( key, value, next ) {
280
280
  * var opts = {
@@ -331,7 +331,7 @@ interface MapKeysAsync {
331
331
  * @returns function which maps keys from one object to a new object having the same values
332
332
  *
333
333
  * @example
334
- * var readFile = require( `@stdlib/fs/read-file` );
334
+ * var readFile = require( '@stdlib/fs-read-file' );
335
335
  *
336
336
  * function read( key, value, next ) {
337
337
  * var opts = {
@@ -391,7 +391,7 @@ interface MapKeysAsync {
391
391
  * @throws must provide valid options
392
392
  *
393
393
  * @example
394
- * var readFile = require( `@stdlib/fs/read-file` );
394
+ * var readFile = require( '@stdlib/fs-read-file' );
395
395
  *
396
396
  * function read( key, value, next ) {
397
397
  * var opts = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/utils-async-map-keys",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "Map keys from one object to a new object having the same values.",
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,27 +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-function": "^0.1.0",
43
- "@stdlib/assert-is-plain-object": "^0.1.0",
44
- "@stdlib/assert-is-positive-integer": "^0.1.0",
45
- "@stdlib/constants-float64-pinf": "^0.1.0",
46
- "@stdlib/string-format": "^0.1.0",
47
- "@stdlib/utils-define-nonenumerable-read-only-property": "^0.1.0",
48
- "@stdlib/utils-keys": "^0.1.0",
49
- "debug": "^2.6.9",
50
- "@stdlib/error-tools-fmtprodmsg": "^0.1.0"
51
- },
52
- "devDependencies": {
53
- "@stdlib/bench": "^0.1.0",
54
- "@stdlib/fs-read-file": "^0.1.0",
55
- "@stdlib/random-base-randu": "^0.0.8",
56
- "@stdlib/utils-noop": "^0.1.0",
57
- "tape": "git+https://github.com/kgryte/tape.git#fix/globby",
58
- "istanbul": "^0.4.1",
59
- "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-function": "^0.2.1",
36
+ "@stdlib/assert-is-plain-object": "^0.2.1",
37
+ "@stdlib/assert-is-positive-integer": "^0.2.1",
38
+ "@stdlib/constants-float64-pinf": "^0.2.1",
39
+ "@stdlib/string-format": "^0.2.1",
40
+ "@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.1",
41
+ "@stdlib/utils-keys": "^0.2.1",
42
+ "debug": "^2.6.9"
60
43
  },
44
+ "devDependencies": {},
61
45
  "engines": {
62
46
  "node": ">=0.10.0",
63
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