@stdlib/utils-nary-function 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 +1 -1
- package/README.md +21 -3
- package/SECURITY.md +5 -0
- package/docs/types/index.d.ts +1 -1
- package/package.json +7 -23
- 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
|
@@ -188,6 +188,13 @@ for ( i = 0; i <= x.length; i++ ) {
|
|
|
188
188
|
|
|
189
189
|
<section class="related">
|
|
190
190
|
|
|
191
|
+
* * *
|
|
192
|
+
|
|
193
|
+
## See Also
|
|
194
|
+
|
|
195
|
+
- <span class="package-name">[`@stdlib/utils-mask-arguments`][@stdlib/utils/mask-arguments]</span><span class="delimiter">: </span><span class="description">create a function that invokes a provided function according to an argument mask.</span>
|
|
196
|
+
- <span class="package-name">[`@stdlib/utils-pick-arguments`][@stdlib/utils/pick-arguments]</span><span class="delimiter">: </span><span class="description">create a function that invokes a provided function with specified arguments.</span>
|
|
197
|
+
|
|
191
198
|
</section>
|
|
192
199
|
|
|
193
200
|
<!-- /.related -->
|
|
@@ -218,7 +225,7 @@ See [LICENSE][stdlib-license].
|
|
|
218
225
|
|
|
219
226
|
## Copyright
|
|
220
227
|
|
|
221
|
-
Copyright © 2016-
|
|
228
|
+
Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
222
229
|
|
|
223
230
|
</section>
|
|
224
231
|
|
|
@@ -231,8 +238,8 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
231
238
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/utils-nary-function.svg
|
|
232
239
|
[npm-url]: https://npmjs.org/package/@stdlib/utils-nary-function
|
|
233
240
|
|
|
234
|
-
[test-image]: https://github.com/stdlib-js/utils-nary-function/actions/workflows/test.yml/badge.svg?branch=v0.1
|
|
235
|
-
[test-url]: https://github.com/stdlib-js/utils-nary-function/actions/workflows/test.yml?query=branch:v0.1
|
|
241
|
+
[test-image]: https://github.com/stdlib-js/utils-nary-function/actions/workflows/test.yml/badge.svg?branch=v0.2.1
|
|
242
|
+
[test-url]: https://github.com/stdlib-js/utils-nary-function/actions/workflows/test.yml?query=branch:v0.2.1
|
|
236
243
|
|
|
237
244
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/utils-nary-function/main.svg
|
|
238
245
|
[coverage-url]: https://codecov.io/github/stdlib-js/utils-nary-function?branch=main
|
|
@@ -255,12 +262,23 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
255
262
|
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
256
263
|
|
|
257
264
|
[deno-url]: https://github.com/stdlib-js/utils-nary-function/tree/deno
|
|
265
|
+
[deno-readme]: https://github.com/stdlib-js/utils-nary-function/blob/deno/README.md
|
|
258
266
|
[umd-url]: https://github.com/stdlib-js/utils-nary-function/tree/umd
|
|
267
|
+
[umd-readme]: https://github.com/stdlib-js/utils-nary-function/blob/umd/README.md
|
|
259
268
|
[esm-url]: https://github.com/stdlib-js/utils-nary-function/tree/esm
|
|
269
|
+
[esm-readme]: https://github.com/stdlib-js/utils-nary-function/blob/esm/README.md
|
|
260
270
|
[branches-url]: https://github.com/stdlib-js/utils-nary-function/blob/main/branches.md
|
|
261
271
|
|
|
262
272
|
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/utils-nary-function/main/LICENSE
|
|
263
273
|
|
|
274
|
+
<!-- <related-links> -->
|
|
275
|
+
|
|
276
|
+
[@stdlib/utils/mask-arguments]: https://www.npmjs.com/package/@stdlib/utils-mask-arguments
|
|
277
|
+
|
|
278
|
+
[@stdlib/utils/pick-arguments]: https://www.npmjs.com/package/@stdlib/utils-pick-arguments
|
|
279
|
+
|
|
280
|
+
<!-- </related-links> -->
|
|
281
|
+
|
|
264
282
|
</section>
|
|
265
283
|
|
|
266
284
|
<!-- /.links -->
|
package/SECURITY.md
ADDED
package/docs/types/index.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ import { ArrayLike } from '@stdlib/types/array';
|
|
|
51
51
|
* var out = bar( 1, 2, 3, 4, 5, 6 );
|
|
52
52
|
* // returns 3
|
|
53
53
|
*/
|
|
54
|
-
declare function naryFunction( fcn: Function, arity: number, thisArg?: any ): Function;
|
|
54
|
+
declare function naryFunction( fcn: Function, arity: number, thisArg?: any ): Function;
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
// EXPORTS //
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/utils-nary-function",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Create a function that invokes a provided function with a specified number of arguments.",
|
|
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
|
-
"
|
|
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,20 +30,11 @@
|
|
|
37
30
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
38
31
|
},
|
|
39
32
|
"dependencies": {
|
|
40
|
-
"@stdlib/assert-is-function": "^0.1
|
|
41
|
-
"@stdlib/assert-is-nonnegative-integer": "^0.1
|
|
42
|
-
"@stdlib/string-format": "^0.1
|
|
43
|
-
"@stdlib/types": "^0.1.0",
|
|
44
|
-
"@stdlib/error-tools-fmtprodmsg": "^0.1.0"
|
|
45
|
-
},
|
|
46
|
-
"devDependencies": {
|
|
47
|
-
"@stdlib/array-filled-by": "^0.0.2",
|
|
48
|
-
"@stdlib/assert-is-array": "^0.1.0",
|
|
49
|
-
"@stdlib/bench": "^0.1.0",
|
|
50
|
-
"tape": "git+https://github.com/kgryte/tape.git#fix/globby",
|
|
51
|
-
"istanbul": "^0.4.1",
|
|
52
|
-
"tap-min": "git+https://github.com/Planeshifter/tap-min.git"
|
|
33
|
+
"@stdlib/assert-is-function": "^0.2.1",
|
|
34
|
+
"@stdlib/assert-is-nonnegative-integer": "^0.2.1",
|
|
35
|
+
"@stdlib/string-format": "^0.2.1"
|
|
53
36
|
},
|
|
37
|
+
"devDependencies": {},
|
|
54
38
|
"engines": {
|
|
55
39
|
"node": ">=0.10.0",
|
|
56
40
|
"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
|