@stdlib/utils-async-map-keys 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 +8 -8
- package/package.json +17 -16
- 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
|
@@ -421,7 +421,7 @@ See [LICENSE][stdlib-license].
|
|
|
421
421
|
|
|
422
422
|
## Copyright
|
|
423
423
|
|
|
424
|
-
Copyright © 2016-
|
|
424
|
+
Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
425
425
|
|
|
426
426
|
</section>
|
|
427
427
|
|
|
@@ -434,8 +434,8 @@ Copyright © 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.
|
|
438
|
-
[test-url]: https://github.com/stdlib-js/utils-async-map-keys/actions/workflows/test.yml?query=branch:v0.
|
|
437
|
+
[test-image]: https://github.com/stdlib-js/utils-async-map-keys/actions/workflows/test.yml/badge.svg?branch=v0.2.0
|
|
438
|
+
[test-url]: https://github.com/stdlib-js/utils-async-map-keys/actions/workflows/test.yml?query=branch:v0.2.0
|
|
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 © 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
package/docs/types/index.d.ts
CHANGED
|
@@ -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;
|
|
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;
|
|
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(
|
|
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;
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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.
|
|
3
|
+
"version": "0.2.0",
|
|
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": {
|
|
@@ -37,26 +37,27 @@
|
|
|
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-function": "^0.
|
|
43
|
-
"@stdlib/assert-is-plain-object": "^0.
|
|
44
|
-
"@stdlib/assert-is-positive-integer": "^0.
|
|
45
|
-
"@stdlib/constants-float64-pinf": "^0.
|
|
46
|
-
"@stdlib/string-format": "^0.
|
|
47
|
-
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.
|
|
48
|
-
"@stdlib/utils-keys": "^0.
|
|
40
|
+
"@stdlib/assert-has-own-property": "^0.1.1",
|
|
41
|
+
"@stdlib/assert-is-boolean": "^0.2.0",
|
|
42
|
+
"@stdlib/assert-is-function": "^0.2.0",
|
|
43
|
+
"@stdlib/assert-is-plain-object": "^0.2.0",
|
|
44
|
+
"@stdlib/assert-is-positive-integer": "^0.2.0",
|
|
45
|
+
"@stdlib/constants-float64-pinf": "^0.2.0",
|
|
46
|
+
"@stdlib/string-format": "^0.2.0",
|
|
47
|
+
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.0",
|
|
48
|
+
"@stdlib/utils-keys": "^0.2.0",
|
|
49
49
|
"debug": "^2.6.9",
|
|
50
|
-
"@stdlib/error-tools-fmtprodmsg": "^0.1.
|
|
50
|
+
"@stdlib/error-tools-fmtprodmsg": "^0.1.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@stdlib/
|
|
54
|
-
"@stdlib/
|
|
55
|
-
"@stdlib/
|
|
56
|
-
"@stdlib/utils-noop": "^0.1.0",
|
|
53
|
+
"@stdlib/fs-read-file": "^0.1.1",
|
|
54
|
+
"@stdlib/random-base-randu": "^0.1.0",
|
|
55
|
+
"@stdlib/utils-noop": "^0.2.0",
|
|
57
56
|
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
|
|
58
57
|
"istanbul": "^0.4.1",
|
|
59
|
-
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"
|
|
58
|
+
"tap-min": "git+https://github.com/Planeshifter/tap-min.git",
|
|
59
|
+
"@stdlib/bench-harness": "^0.2.0",
|
|
60
|
+
"@stdlib/bench": "^0.3.1"
|
|
60
61
|
},
|
|
61
62
|
"engines": {
|
|
62
63
|
"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
|