@stdlib/utils-async-some-by-right 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 +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
|
@@ -443,7 +443,7 @@ See [LICENSE][stdlib-license].
|
|
|
443
443
|
|
|
444
444
|
## Copyright
|
|
445
445
|
|
|
446
|
-
Copyright © 2016-
|
|
446
|
+
Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
447
447
|
|
|
448
448
|
</section>
|
|
449
449
|
|
|
@@ -456,8 +456,8 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
456
456
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/utils-async-some-by-right.svg
|
|
457
457
|
[npm-url]: https://npmjs.org/package/@stdlib/utils-async-some-by-right
|
|
458
458
|
|
|
459
|
-
[test-image]: https://github.com/stdlib-js/utils-async-some-by-right/actions/workflows/test.yml/badge.svg?branch=v0.
|
|
460
|
-
[test-url]: https://github.com/stdlib-js/utils-async-some-by-right/actions/workflows/test.yml?query=branch:v0.
|
|
459
|
+
[test-image]: https://github.com/stdlib-js/utils-async-some-by-right/actions/workflows/test.yml/badge.svg?branch=v0.2.0
|
|
460
|
+
[test-url]: https://github.com/stdlib-js/utils-async-some-by-right/actions/workflows/test.yml?query=branch:v0.2.0
|
|
461
461
|
|
|
462
462
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/utils-async-some-by-right/main.svg
|
|
463
463
|
[coverage-url]: https://codecov.io/github/stdlib-js/utils-async-some-by-right?branch=main
|
|
@@ -480,8 +480,11 @@ Copyright © 2016-2023. The Stdlib [Authors][stdlib-authors].
|
|
|
480
480
|
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
481
481
|
|
|
482
482
|
[deno-url]: https://github.com/stdlib-js/utils-async-some-by-right/tree/deno
|
|
483
|
+
[deno-readme]: https://github.com/stdlib-js/utils-async-some-by-right/blob/deno/README.md
|
|
483
484
|
[umd-url]: https://github.com/stdlib-js/utils-async-some-by-right/tree/umd
|
|
485
|
+
[umd-readme]: https://github.com/stdlib-js/utils-async-some-by-right/blob/umd/README.md
|
|
484
486
|
[esm-url]: https://github.com/stdlib-js/utils-async-some-by-right/tree/esm
|
|
487
|
+
[esm-readme]: https://github.com/stdlib-js/utils-async-some-by-right/blob/esm/README.md
|
|
485
488
|
[branches-url]: https://github.com/stdlib-js/utils-async-some-by-right/blob/main/branches.md
|
|
486
489
|
|
|
487
490
|
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/utils-async-some-by-right/main/LICENSE
|
package/SECURITY.md
ADDED
package/docs/types/index.d.ts
CHANGED
|
@@ -140,7 +140,7 @@ interface SomeByRightAsync {
|
|
|
140
140
|
* @throws must provide valid options
|
|
141
141
|
*
|
|
142
142
|
* @example
|
|
143
|
-
* var readFile = require(
|
|
143
|
+
* var readFile = require( '@stdlib/fs-read-file' );
|
|
144
144
|
*
|
|
145
145
|
* function done( error, bool ) {
|
|
146
146
|
* if ( error ) {
|
|
@@ -192,7 +192,7 @@ interface SomeByRightAsync {
|
|
|
192
192
|
* @throws must provide valid options
|
|
193
193
|
*
|
|
194
194
|
* @example
|
|
195
|
-
* var readFile = require(
|
|
195
|
+
* var readFile = require( '@stdlib/fs-read-file' );
|
|
196
196
|
*
|
|
197
197
|
* function done( error, bool ) {
|
|
198
198
|
* if ( error ) {
|
|
@@ -226,7 +226,7 @@ interface SomeByRightAsync {
|
|
|
226
226
|
*
|
|
227
227
|
* someByRightAsync( files, 2, predicate, done );
|
|
228
228
|
*/
|
|
229
|
-
<T = unknown, V = unknown>( collection: Collection<T>, n: number, predicate: Predicate<T, V>, done: Callback ): void;
|
|
229
|
+
<T = unknown, V = unknown>( collection: Collection<T>, n: number, predicate: Predicate<T, V>, done: Callback ): void;
|
|
230
230
|
|
|
231
231
|
/**
|
|
232
232
|
* Returns a function for testing whether a collection contains at least `n` elements which pass a test implemented by a predicate function, iterating from right to left.
|
|
@@ -245,7 +245,7 @@ interface SomeByRightAsync {
|
|
|
245
245
|
* @returns function which invokes the predicate function once for each element in a collection
|
|
246
246
|
*
|
|
247
247
|
* @example
|
|
248
|
-
* var readFile = require(
|
|
248
|
+
* var readFile = require( '@stdlib/fs-read-file' );
|
|
249
249
|
*
|
|
250
250
|
* function predicate( file, next ) {
|
|
251
251
|
* var opts = {
|
|
@@ -304,7 +304,7 @@ interface SomeByRightAsync {
|
|
|
304
304
|
* @returns function which invokes the predicate function once for each element in a collection
|
|
305
305
|
*
|
|
306
306
|
* @example
|
|
307
|
-
* var readFile = require(
|
|
307
|
+
* var readFile = require( '@stdlib/fs-read-file' );
|
|
308
308
|
*
|
|
309
309
|
* function predicate( file, next ) {
|
|
310
310
|
* var opts = {
|
|
@@ -348,7 +348,7 @@ interface SomeByRightAsync {
|
|
|
348
348
|
* // Try to read each element in `files`:
|
|
349
349
|
* someByRightAsync( files, 2, done );
|
|
350
350
|
*/
|
|
351
|
-
factory<T = unknown, V = unknown>( predicate: Predicate<T, V> ): FactoryFunction<T>;
|
|
351
|
+
factory<T = unknown, V = unknown>( predicate: Predicate<T, V> ): FactoryFunction<T>;
|
|
352
352
|
}
|
|
353
353
|
|
|
354
354
|
/**
|
|
@@ -371,7 +371,7 @@ interface SomeByRightAsync {
|
|
|
371
371
|
* @throws must provide valid options
|
|
372
372
|
*
|
|
373
373
|
* @example
|
|
374
|
-
* var readFile = require(
|
|
374
|
+
* var readFile = require( '@stdlib/fs-read-file' );
|
|
375
375
|
*
|
|
376
376
|
* function done( error, bool ) {
|
|
377
377
|
* if ( error ) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/utils-async-some-by-right",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Test whether a collection contains at least `n` elements which pass a test implemented by a predicate function, iterating from right to left.",
|
|
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-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/utils-noop": "^0.1.0",
|
|
54
|
+
"@stdlib/fs-read-file": "^0.1.1",
|
|
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.1.2",
|
|
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
|