@stdlib/utils-async 0.0.7 → 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/LICENSE CHANGED
@@ -175,307 +175,3 @@
175
175
  of your accepting any such warranty or additional liability.
176
176
 
177
177
  END OF TERMS AND CONDITIONS
178
-
179
-
180
-
181
- Boost Software License - Version 1.0 - August 17th, 2003
182
-
183
- Permission is hereby granted, free of charge, to any person or organization
184
- obtaining a copy of the software and accompanying documentation covered by this
185
- license (the "Software") to use, reproduce, display, distribute, execute, and
186
- transmit the Software, and to prepare derivative works of the Software, and to
187
- permit third-parties to whom the Software is furnished to do so, all subject to
188
- the following:
189
-
190
- The copyright notices in the Software and this entire statement, including the
191
- above license grant, this restriction and the following disclaimer, must be
192
- included in all copies of the Software, in whole or in part, and all derivative
193
- works of the Software, unless such copies or derivative works are solely in the
194
- form of machine-executable object code generated by a source language processor.
195
-
196
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
197
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
198
- FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE
199
- COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE FOR ANY DAMAGES
200
- OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
201
- OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
202
-
203
-
204
-
205
-
206
- DEPENDENCIES
207
-
208
- The library links against the following external libraries, which have their own
209
- licenses:
210
-
211
- * OpenBLAS <https://raw.githubusercontent.com/xianyi/OpenBLAS/
212
- def146efed8d5908ea04e22668feeab7099599a0/LICENSE>
213
-
214
- Copyright (c) 2011-2014, The OpenBLAS Project
215
- All rights reserved.
216
-
217
- Redistribution and use in source and binary forms, with or without
218
- modification, are permitted provided that the following conditions are
219
- met:
220
-
221
- 1. Redistributions of source code must retain the above copyright
222
- notice, this list of conditions and the following disclaimer.
223
-
224
- 2. Redistributions in binary form must reproduce the above copyright
225
- notice, this list of conditions and the following disclaimer in
226
- the documentation and/or other materials provided with the
227
- distribution.
228
-
229
- 3. Neither the name of the OpenBLAS project nor the names of
230
- its contributors may be used to endorse or promote products
231
- derived from this software without specific prior written
232
- permission.
233
-
234
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
235
- AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
236
- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
237
- ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
238
- LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
239
- CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
240
- GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
241
- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
242
- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
243
- THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
244
-
245
-
246
- * Electron <https://raw.githubusercontent.com/electron/electron/
247
- c4cfb3e7110266b9d7ad80e1ae097c4db564501c/LICENSE>
248
-
249
- Copyright (c) 2013-2017 GitHub Inc.
250
-
251
- Permission is hereby granted, free of charge, to any person obtaining
252
- a copy of this software and associated documentation files (the
253
- "Software"), to deal in the Software without restriction, including
254
- without limitation the rights to use, copy, modify, merge, publish,
255
- distribute, sublicense, and/or sell copies of the Software, and to
256
- permit persons to whom the Software is furnished to do so, subject to
257
- the following conditions:
258
-
259
- The above copyright notice and this permission notice shall be
260
- included in all copies or substantial portions of the Software.
261
-
262
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
263
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
264
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
265
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
266
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
267
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
268
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
269
-
270
-
271
- * Boost <http://www.boost.org/LICENSE_1_0.txt>
272
-
273
- Boost Software License - Version 1.0 - August 17th, 2003
274
-
275
- Permission is hereby granted, free of charge, to any person or organization
276
- obtaining a copy of the software and accompanying documentation covered by
277
- this license (the "Software") to use, reproduce, display, distribute,
278
- execute, and transmit the Software, and to prepare derivative works of the
279
- Software, and to permit third-parties to whom the Software is furnished to
280
- do so, all subject to the following:
281
-
282
- The copyright notices in the Software and this entire statement, including
283
- the above license grant, this restriction and the following disclaimer,
284
- must be included in all copies of the Software, in whole or in part, and
285
- all derivative works of the Software, unless such copies or derivative
286
- works are solely in the form of machine-executable object code generated by
287
- a source language processor.
288
-
289
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
290
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
291
- FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
292
- SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
293
- FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
294
- ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
295
- DEALINGS IN THE SOFTWARE.
296
-
297
-
298
- * Cephes <http://www.netlib.org/cephes/readme>
299
-
300
- Copyright (c) 1984-2000 Stephen L. Moshier
301
-
302
- Some software in this archive may be from the book _Methods and Programs for
303
- Mathematical Functions_ (Prentice-Hall or Simon & Schuster International, 1989)
304
- or from the Cephes Mathematical Library, a commercial product. In either event,
305
- it is copyrighted by the author. What you see here may be used freely but it
306
- comes with no support or guarantee.
307
-
308
- Stephen L. Moshier
309
- moshier@na-net.ornl.gov
310
-
311
-
312
-
313
- ATTRIBUTION
314
-
315
- The library contains implementations from the following external libraries,
316
- which have their own licenses:
317
-
318
- * FreeBSD <https://svnweb.freebsd.org/>
319
-
320
- Copyright (C) 1993-2004 by Sun Microsystems, Inc. All rights reserved.
321
-
322
- Developed at SunPro, a Sun Microsystems, Inc. business.
323
- Permission to use, copy, modify, and distribute this
324
- software is freely granted, provided that this notice
325
- is preserved.
326
-
327
-
328
- * FDLIBM <http://www.netlib.org/fdlibm/>
329
-
330
- Copyright (C) 2004 by Sun Microsystems, Inc. All rights reserved.
331
-
332
- Developed at SunPro, a Sun Microsystems, Inc. business.
333
- Permission to use, copy, modify, and distribute this
334
- software is freely granted, provided that this notice
335
- is preserved.
336
-
337
-
338
- * Go <https://raw.githubusercontent.com/golang/go/master/LICENSE>
339
-
340
- Copyright (c) 2009 The Go Authors. All rights reserved.
341
-
342
- Redistribution and use in source and binary forms, with or without
343
- modification, are permitted provided that the following conditions are
344
- met:
345
-
346
- * Redistributions of source code must retain the above copyright
347
- notice, this list of conditions and the following disclaimer.
348
- * Redistributions in binary form must reproduce the above
349
- copyright notice, this list of conditions and the following disclaimer
350
- in the documentation and/or other materials provided with the
351
- distribution.
352
- * Neither the name of Google Inc. nor the names of its
353
- contributors may be used to endorse or promote products derived from
354
- this software without specific prior written permission.
355
-
356
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
357
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
358
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
359
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
360
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
361
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
362
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
363
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
364
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
365
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
366
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
367
-
368
-
369
- * SLATEC Common Mathematical Library <http://www.netlib.no/netlib/slatec/>
370
-
371
- Public domain.
372
-
373
-
374
- * ESLint <https://raw.githubusercontent.com/eslint/eslint/master/LICENSE>
375
-
376
- Copyright JS Foundation and other contributors, https://js.foundation
377
-
378
- Permission is hereby granted, free of charge, to any person obtaining a copy
379
- of this software and associated documentation files (the "Software"), to deal
380
- in the Software without restriction, including without limitation the rights
381
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
382
- copies of the Software, and to permit persons to whom the Software is
383
- furnished to do so, subject to the following conditions:
384
-
385
- The above copyright notice and this permission notice shall be included in
386
- all copies or substantial portions of the Software.
387
-
388
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
389
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
390
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
391
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
392
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
393
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
394
- THE SOFTWARE.
395
-
396
-
397
- * StatsFuns.jl <https://raw.githubusercontent.com/JuliaStats/StatsFuns.jl/
398
- e66dd973650c375bc1739c820e5b96bb5bd000a8/LICENSE.md>
399
-
400
- Copyright (c) 2015: Dahua Lin.
401
-
402
- Permission is hereby granted, free of charge, to any person obtaining
403
- a copy of this software and associated documentation files (the
404
- "Software"), to deal in the Software without restriction, including
405
- without limitation the rights to use, copy, modify, merge, publish,
406
- distribute, sublicense, and/or sell copies of the Software, and to
407
- permit persons to whom the Software is furnished to do so, subject to
408
- the following conditions:
409
-
410
- The above copyright notice and this permission notice shall be
411
- included in all copies or substantial portions of the Software.
412
-
413
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
414
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
415
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
416
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
417
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
418
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
419
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
420
-
421
-
422
- * SpecialFunctions.jl <https://raw.githubusercontent.com/JuliaMath/
423
- SpecialFunctions.jl/02a173fbe24a61c4b392aec17a9764ac5727feb1/LICENSE>
424
-
425
- The MIT License (MIT)
426
-
427
- Copyright (c) 2017 Jeff Bezanson, Stefan Karpinski, Viral B. Shah, and others:
428
-
429
- https://github.com/JuliaMath/SpecialFunctions.jl/graphs/contributors
430
-
431
- Permission is hereby granted, free of charge, to any person obtaining a copy
432
- of this software and associated documentation files (the "Software"), to deal
433
- in the Software without restriction, including without limitation the rights
434
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
435
- copies of the Software, and to permit persons to whom the Software is
436
- furnished to do so, subject to the following conditions:
437
-
438
- The above copyright notice and this permission notice shall be included in all
439
- copies or substantial portions of the Software.
440
-
441
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
442
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
443
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
444
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
445
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
446
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
447
- SOFTWARE.
448
-
449
-
450
- * MT19937 <http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/CODES/
451
- mt19937ar.c>
452
-
453
- Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura,
454
- All rights reserved.
455
-
456
- Redistribution and use in source and binary forms, with or without
457
- modification, are permitted provided that the following conditions
458
- are met:
459
-
460
- 1. Redistributions of source code must retain the above copyright
461
- notice, this list of conditions and the following disclaimer.
462
-
463
- 2. Redistributions in binary form must reproduce the above copyright
464
- notice, this list of conditions and the following disclaimer in the
465
- documentation and/or other materials provided with the distribution.
466
-
467
- 3. The names of its contributors may not be used to endorse or promote
468
- products derived from this software without specific prior written
469
- permission.
470
-
471
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
472
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
473
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
474
- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
475
- OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
476
- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
477
- LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
478
- DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
479
- THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
480
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
481
- OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
package/NOTICE CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2022 The Stdlib Authors.
1
+ Copyright (c) 2016-2024 The Stdlib Authors.
package/README.md CHANGED
@@ -18,6 +18,17 @@ limitations under the License.
18
18
 
19
19
  -->
20
20
 
21
+
22
+ <details>
23
+ <summary>
24
+ About stdlib...
25
+ </summary>
26
+ <p>We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.</p>
27
+ <p>The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.</p>
28
+ <p>When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.</p>
29
+ <p>To join us in bringing numerical computing to the web, get started by checking us out on <a href="https://github.com/stdlib-js/stdlib">GitHub</a>, and please consider <a href="https://opencollective.com/stdlib">financially supporting stdlib</a>. We greatly appreciate your continued support!</p>
30
+ </details>
31
+
21
32
  # Async
22
33
 
23
34
  [![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
@@ -149,7 +160,7 @@ See [LICENSE][stdlib-license].
149
160
 
150
161
  ## Copyright
151
162
 
152
- Copyright &copy; 2016-2022. The Stdlib [Authors][stdlib-authors].
163
+ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
153
164
 
154
165
  </section>
155
166
 
@@ -162,8 +173,8 @@ Copyright &copy; 2016-2022. The Stdlib [Authors][stdlib-authors].
162
173
  [npm-image]: http://img.shields.io/npm/v/@stdlib/utils-async.svg
163
174
  [npm-url]: https://npmjs.org/package/@stdlib/utils-async
164
175
 
165
- [test-image]: https://github.com/stdlib-js/utils-async/actions/workflows/test.yml/badge.svg
166
- [test-url]: https://github.com/stdlib-js/utils-async/actions/workflows/test.yml
176
+ [test-image]: https://github.com/stdlib-js/utils-async/actions/workflows/test.yml/badge.svg?branch=v0.2.0
177
+ [test-url]: https://github.com/stdlib-js/utils-async/actions/workflows/test.yml?query=branch:v0.2.0
167
178
 
168
179
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/utils-async/main.svg
169
180
  [coverage-url]: https://codecov.io/github/stdlib-js/utils-async?branch=main
@@ -175,19 +186,23 @@ Copyright &copy; 2016-2022. The Stdlib [Authors][stdlib-authors].
175
186
 
176
187
  -->
177
188
 
189
+ [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
190
+ [chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im
191
+
192
+ [stdlib]: https://github.com/stdlib-js/stdlib
193
+
194
+ [stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors
195
+
178
196
  [umd]: https://github.com/umdjs/umd
179
197
  [es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
180
198
 
181
199
  [deno-url]: https://github.com/stdlib-js/utils-async/tree/deno
200
+ [deno-readme]: https://github.com/stdlib-js/utils-async/blob/deno/README.md
182
201
  [umd-url]: https://github.com/stdlib-js/utils-async/tree/umd
202
+ [umd-readme]: https://github.com/stdlib-js/utils-async/blob/umd/README.md
183
203
  [esm-url]: https://github.com/stdlib-js/utils-async/tree/esm
184
-
185
- [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
186
- [chat-url]: https://gitter.im/stdlib-js/stdlib/
187
-
188
- [stdlib]: https://github.com/stdlib-js/stdlib
189
-
190
- [stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors
204
+ [esm-readme]: https://github.com/stdlib-js/utils-async/blob/esm/README.md
205
+ [branches-url]: https://github.com/stdlib-js/utils-async/blob/main/branches.md
191
206
 
192
207
  [stdlib-license]: https://raw.githubusercontent.com/stdlib-js/utils-async/main/LICENSE
193
208
 
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).
@@ -0,0 +1,3 @@
1
+ /// <reference path="../docs/types/index.d.ts" />
2
+ import ns from '../docs/types/index';
3
+ export = ns;
package/dist/index.js ADDED
@@ -0,0 +1,3 @@
1
+ "use strict";var r=require('@stdlib/utils-define-read-only-property/dist'),e={};r(e,"anyByAsync",require('@stdlib/utils-async-any-by/dist'));r(e,"anyByRightAsync",require('@stdlib/utils-async-any-by-right/dist'));r(e,"bifurcateByAsync",require('@stdlib/utils-async-bifurcate-by/dist'));r(e,"composeAsync",require('@stdlib/utils-async-compose/dist'));r(e,"countByAsync",require('@stdlib/utils-async-count-by/dist'));r(e,"doUntilAsync",require('@stdlib/utils-async-do-until/dist'));r(e,"doWhileAsync",require('@stdlib/utils-async-do-while/dist'));r(e,"everyByAsync",require('@stdlib/utils-async-every-by/dist'));r(e,"everyByRightAsync",require('@stdlib/utils-async-every-by-right/dist'));r(e,"forEachAsync",require('@stdlib/utils-async-for-each/dist'));r(e,"forEachRightAsync",require('@stdlib/utils-async-for-each-right/dist'));r(e,"functionSequenceAsync",require('@stdlib/utils-async-function-sequence/dist'));r(e,"groupByAsync",require('@stdlib/utils-async-group-by/dist'));r(e,"ifelseAsync",require('@stdlib/utils-async-if-else/dist'));r(e,"ifthenAsync",require('@stdlib/utils-async-if-then/dist'));r(e,"inmapAsync",require('@stdlib/utils-async-inmap/dist'));r(e,"inmapRightAsync",require('@stdlib/utils-async-inmap-right/dist'));r(e,"mapFunAsync",require('@stdlib/utils-async-map-function/dist'));r(e,"mapKeysAsync",require('@stdlib/utils-async-map-keys/dist'));r(e,"mapValuesAsync",require('@stdlib/utils-async-map-values/dist'));r(e,"noneByAsync",require('@stdlib/utils-async-none-by/dist'));r(e,"noneByRightAsync",require('@stdlib/utils-async-none-by-right/dist'));r(e,"reduceAsync",require('@stdlib/utils-async-reduce/dist'));r(e,"reduceRightAsync",require('@stdlib/utils-async-reduce-right/dist'));r(e,"waterfall",require('@stdlib/utils-async-series-waterfall/dist'));r(e,"someByAsync",require('@stdlib/utils-async-some-by/dist'));r(e,"someByRightAsync",require('@stdlib/utils-async-some-by-right/dist'));r(e,"tabulateByAsync",require('@stdlib/utils-async-tabulate-by/dist'));r(e,"trycatchAsync",require('@stdlib/utils-async-try-catch/dist'));r(e,"trythenAsync",require('@stdlib/utils-async-try-then/dist'));r(e,"untilAsync",require('@stdlib/utils-async-until/dist'));r(e,"whileAsync",require('@stdlib/utils-async-while/dist'));module.exports=e;
2
+ /** @license Apache-2.0 */
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../lib/index.js"],
4
+ "sourcesContent": ["/**\n* @license Apache-2.0\n*\n* Copyright (c) 2018 The Stdlib Authors.\n*\n* Licensed under the Apache License, Version 2.0 (the \"License\");\n* you may not use this file except in compliance with the License.\n* You may obtain a copy of the License at\n*\n* http://www.apache.org/licenses/LICENSE-2.0\n*\n* Unless required by applicable law or agreed to in writing, software\n* distributed under the License is distributed on an \"AS IS\" BASIS,\n* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n* See the License for the specific language governing permissions and\n* limitations under the License.\n*/\n\n'use strict';\n\n/*\n* When adding modules to the namespace, ensure that they are added in alphabetical order according to module name.\n*/\n\n// MODULES //\n\nvar setReadOnly = require( '@stdlib/utils-define-read-only-property' );\n\n\n// MAIN //\n\n/**\n* Top-level namespace.\n*\n* @namespace ns\n*/\nvar ns = {};\n\n/**\n* @name anyByAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/any-by}\n*/\nsetReadOnly( ns, 'anyByAsync', require( '@stdlib/utils-async-any-by' ) );\n\n/**\n* @name anyByRightAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/any-by-right}\n*/\nsetReadOnly( ns, 'anyByRightAsync', require( '@stdlib/utils-async-any-by-right' ) );\n\n/**\n* @name bifurcateByAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/bifurcate-by}\n*/\nsetReadOnly( ns, 'bifurcateByAsync', require( '@stdlib/utils-async-bifurcate-by' ) );\n\n/**\n* @name composeAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/compose}\n*/\nsetReadOnly( ns, 'composeAsync', require( '@stdlib/utils-async-compose' ) );\n\n/**\n* @name countByAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/count-by}\n*/\nsetReadOnly( ns, 'countByAsync', require( '@stdlib/utils-async-count-by' ) );\n\n/**\n* @name doUntilAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/do-until}\n*/\nsetReadOnly( ns, 'doUntilAsync', require( '@stdlib/utils-async-do-until' ) );\n\n/**\n* @name doWhileAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/do-while}\n*/\nsetReadOnly( ns, 'doWhileAsync', require( '@stdlib/utils-async-do-while' ) );\n\n/**\n* @name everyByAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/every-by}\n*/\nsetReadOnly( ns, 'everyByAsync', require( '@stdlib/utils-async-every-by' ) );\n\n/**\n* @name everyByRightAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/every-by-right}\n*/\nsetReadOnly( ns, 'everyByRightAsync', require( '@stdlib/utils-async-every-by-right' ) );\n\n/**\n* @name forEachAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/for-each}\n*/\nsetReadOnly( ns, 'forEachAsync', require( '@stdlib/utils-async-for-each' ) );\n\n/**\n* @name forEachRightAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/for-each-right}\n*/\nsetReadOnly( ns, 'forEachRightAsync', require( '@stdlib/utils-async-for-each-right' ) );\n\n/**\n* @name functionSequenceAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/function-sequence}\n*/\nsetReadOnly( ns, 'functionSequenceAsync', require( '@stdlib/utils-async-function-sequence' ) );\n\n/**\n* @name groupByAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/group-by}\n*/\nsetReadOnly( ns, 'groupByAsync', require( '@stdlib/utils-async-group-by' ) );\n\n/**\n* @name ifelseAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/if-else}\n*/\nsetReadOnly( ns, 'ifelseAsync', require( '@stdlib/utils-async-if-else' ) );\n\n/**\n* @name ifthenAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/if-then}\n*/\nsetReadOnly( ns, 'ifthenAsync', require( '@stdlib/utils-async-if-then' ) );\n\n/**\n* @name inmapAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/inmap}\n*/\nsetReadOnly( ns, 'inmapAsync', require( '@stdlib/utils-async-inmap' ) );\n\n/**\n* @name inmapRightAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/inmap-right}\n*/\nsetReadOnly( ns, 'inmapRightAsync', require( '@stdlib/utils-async-inmap-right' ) );\n\n/**\n* @name mapFunAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/map-function}\n*/\nsetReadOnly( ns, 'mapFunAsync', require( '@stdlib/utils-async-map-function' ) );\n\n/**\n* @name mapKeysAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/map-keys}\n*/\nsetReadOnly( ns, 'mapKeysAsync', require( '@stdlib/utils-async-map-keys' ) );\n\n/**\n* @name mapValuesAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/map-values}\n*/\nsetReadOnly( ns, 'mapValuesAsync', require( '@stdlib/utils-async-map-values' ) );\n\n/**\n* @name noneByAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/none-by}\n*/\nsetReadOnly( ns, 'noneByAsync', require( '@stdlib/utils-async-none-by' ) );\n\n/**\n* @name noneByRightAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/none-by-right}\n*/\nsetReadOnly( ns, 'noneByRightAsync', require( '@stdlib/utils-async-none-by-right' ) );\n\n/**\n* @name reduceAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/reduce}\n*/\nsetReadOnly( ns, 'reduceAsync', require( '@stdlib/utils-async-reduce' ) );\n\n/**\n* @name reduceRightAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/reduce-right}\n*/\nsetReadOnly( ns, 'reduceRightAsync', require( '@stdlib/utils-async-reduce-right' ) );\n\n/**\n* @name waterfall\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/series-waterfall}\n*/\nsetReadOnly( ns, 'waterfall', require( '@stdlib/utils-async-series-waterfall' ) );\n\n/**\n* @name someByAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/some-by}\n*/\nsetReadOnly( ns, 'someByAsync', require( '@stdlib/utils-async-some-by' ) );\n\n/**\n* @name someByRightAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/some-by-right}\n*/\nsetReadOnly( ns, 'someByRightAsync', require( '@stdlib/utils-async-some-by-right' ) );\n\n/**\n* @name tabulateByAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/tabulate-by}\n*/\nsetReadOnly( ns, 'tabulateByAsync', require( '@stdlib/utils-async-tabulate-by' ) );\n\n/**\n* @name trycatchAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/try-catch}\n*/\nsetReadOnly( ns, 'trycatchAsync', require( '@stdlib/utils-async-try-catch' ) );\n\n/**\n* @name trythenAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/try-then}\n*/\nsetReadOnly( ns, 'trythenAsync', require( '@stdlib/utils-async-try-then' ) );\n\n/**\n* @name untilAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/until}\n*/\nsetReadOnly( ns, 'untilAsync', require( '@stdlib/utils-async-until' ) );\n\n/**\n* @name whileAsync\n* @memberof ns\n* @readonly\n* @type {Function}\n* @see {@link module:@stdlib/utils/async/while}\n*/\nsetReadOnly( ns, 'whileAsync', require( '@stdlib/utils-async-while' ) );\n\n\n// EXPORTS //\n\nmodule.exports = ns;\n"],
5
+ "mappings": "aA0BA,IAAIA,EAAc,QAAS,yCAA0C,EAUjEC,EAAK,CAAC,EASVD,EAAaC,EAAI,aAAc,QAAS,4BAA6B,CAAE,EASvED,EAAaC,EAAI,kBAAmB,QAAS,kCAAmC,CAAE,EASlFD,EAAaC,EAAI,mBAAoB,QAAS,kCAAmC,CAAE,EASnFD,EAAaC,EAAI,eAAgB,QAAS,6BAA8B,CAAE,EAS1ED,EAAaC,EAAI,eAAgB,QAAS,8BAA+B,CAAE,EAS3ED,EAAaC,EAAI,eAAgB,QAAS,8BAA+B,CAAE,EAS3ED,EAAaC,EAAI,eAAgB,QAAS,8BAA+B,CAAE,EAS3ED,EAAaC,EAAI,eAAgB,QAAS,8BAA+B,CAAE,EAS3ED,EAAaC,EAAI,oBAAqB,QAAS,oCAAqC,CAAE,EAStFD,EAAaC,EAAI,eAAgB,QAAS,8BAA+B,CAAE,EAS3ED,EAAaC,EAAI,oBAAqB,QAAS,oCAAqC,CAAE,EAStFD,EAAaC,EAAI,wBAAyB,QAAS,uCAAwC,CAAE,EAS7FD,EAAaC,EAAI,eAAgB,QAAS,8BAA+B,CAAE,EAS3ED,EAAaC,EAAI,cAAe,QAAS,6BAA8B,CAAE,EASzED,EAAaC,EAAI,cAAe,QAAS,6BAA8B,CAAE,EASzED,EAAaC,EAAI,aAAc,QAAS,2BAA4B,CAAE,EAStED,EAAaC,EAAI,kBAAmB,QAAS,iCAAkC,CAAE,EASjFD,EAAaC,EAAI,cAAe,QAAS,kCAAmC,CAAE,EAS9ED,EAAaC,EAAI,eAAgB,QAAS,8BAA+B,CAAE,EAS3ED,EAAaC,EAAI,iBAAkB,QAAS,gCAAiC,CAAE,EAS/ED,EAAaC,EAAI,cAAe,QAAS,6BAA8B,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,mCAAoC,CAAE,EASpFD,EAAaC,EAAI,cAAe,QAAS,4BAA6B,CAAE,EASxED,EAAaC,EAAI,mBAAoB,QAAS,kCAAmC,CAAE,EASnFD,EAAaC,EAAI,YAAa,QAAS,sCAAuC,CAAE,EAShFD,EAAaC,EAAI,cAAe,QAAS,6BAA8B,CAAE,EASzED,EAAaC,EAAI,mBAAoB,QAAS,mCAAoC,CAAE,EASpFD,EAAaC,EAAI,kBAAmB,QAAS,iCAAkC,CAAE,EASjFD,EAAaC,EAAI,gBAAiB,QAAS,+BAAgC,CAAE,EAS7ED,EAAaC,EAAI,eAAgB,QAAS,8BAA+B,CAAE,EAS3ED,EAAaC,EAAI,aAAc,QAAS,2BAA4B,CAAE,EAStED,EAAaC,EAAI,aAAc,QAAS,2BAA4B,CAAE,EAKtE,OAAO,QAAUA",
6
+ "names": ["setReadOnly", "ns"]
7
+ }
@@ -16,10 +16,9 @@
16
16
  * limitations under the License.
17
17
  */
18
18
 
19
- // TypeScript Version: 2.0
19
+ // TypeScript Version: 4.1
20
20
 
21
- /* tslint:disable:max-line-length */
22
- /* tslint:disable:max-file-line-count */
21
+ /* eslint-disable max-lines */
23
22
 
24
23
  import anyByAsync = require( '@stdlib/utils-async-any-by' );
25
24
  import anyByRightAsync = require( '@stdlib/utils-async-any-by-right' );
@@ -66,7 +65,6 @@ interface Namespace {
66
65
  * - If a predicate function calls the provided callback with a truthy error argument, the function suspends execution and immediately calls the `done` callback for subsequent error handling.
67
66
  * - This function does **not** guarantee that execution is asynchronous. To do so, wrap the `done` callback in a function which either executes at the end of the current stack (e.g., `nextTick`) or during a subsequent turn of the event loop (e.g., `setImmediate`, `setTimeout`).
68
67
  *
69
- *
70
68
  * @param collection - input collection
71
69
  * @param options - function options
72
70
  * @param options.thisArg - execution context
@@ -77,7 +75,7 @@ interface Namespace {
77
75
  * @throws must provide valid options
78
76
  *
79
77
  * @example
80
- * var readFile = require( `@stdlib/fs/read-file` );
78
+ * var readFile = require( '@stdlib/fs-read-file' );
81
79
  *
82
80
  * function done( error, bool ) {
83
81
  * if ( error ) {
@@ -121,7 +119,6 @@ interface Namespace {
121
119
  * - If a predicate function calls the provided callback with a truthy error argument, the function suspends execution and immediately calls the `done` callback for subsequent error handling.
122
120
  * - This function does **not** guarantee that execution is asynchronous. To do so, wrap the `done` callback in a function which either executes at the end of the current stack (e.g., `nextTick`) or during a subsequent turn of the event loop (e.g., `setImmediate`, `setTimeout`).
123
121
  *
124
- *
125
122
  * @param collection - input collection
126
123
  * @param options - function options
127
124
  * @param options.thisArg - execution context
@@ -132,7 +129,7 @@ interface Namespace {
132
129
  * @throws must provide valid options
133
130
  *
134
131
  * @example
135
- * var readFile = require( `@stdlib/fs/read-file` );
132
+ * var readFile = require( '@stdlib/fs-read-file' );
136
133
  *
137
134
  * function done( error, bool ) {
138
135
  * if ( error ) {
@@ -175,7 +172,6 @@ interface Namespace {
175
172
  *
176
173
  * - This function does **not** guarantee that execution is asynchronous. To do so, wrap the `done` callback in a function which either executes at the end of the current stack (e.g., `nextTick`) or during a subsequent turn of the event loop (e.g., `setImmediate`, `setTimeout`).
177
174
  *
178
- *
179
175
  * @param collection - input collection
180
176
  * @param options - function options
181
177
  * @param options.thisArg - execution context
@@ -187,7 +183,7 @@ interface Namespace {
187
183
  * @throws must provide valid options
188
184
  *
189
185
  * @example
190
- * var readFile = require( `@stdlib/fs/read-file` );
186
+ * var readFile = require( '@stdlib/fs-read-file' );
191
187
  *
192
188
  * function done( error, result ) {
193
189
  * if ( error ) {
@@ -274,7 +270,6 @@ interface Namespace {
274
270
  *
275
271
  * - This function does **not** guarantee that execution is asynchronous. To do so, wrap the `done` callback in a function which either executes at the end of the current stack (e.g., `nextTick`) or during a subsequent turn of the event loop (e.g., `setImmediate`, `setTimeout`).
276
272
  *
277
- *
278
273
  * @param collection - input collection
279
274
  * @param options - function options
280
275
  * @param options.thisArg - execution context
@@ -285,7 +280,7 @@ interface Namespace {
285
280
  * @throws must provide valid options
286
281
  *
287
282
  * @example
288
- * var readFile = require( `@stdlib/fs/read-file` );
283
+ * var readFile = require( '@stdlib/fs-read-file' );
289
284
  *
290
285
  * function done( error, result ) {
291
286
  * if ( error ) {
@@ -387,7 +382,6 @@ interface Namespace {
387
382
  * - If a predicate function calls the provided callback with a truthy error argument, the function suspends execution and immediately calls the `done` callback for subsequent error handling.
388
383
  * - This function does **not** guarantee that execution is asynchronous. To do so, wrap the `done` callback in a function which either executes at the end of the current stack (e.g., `nextTick`) or during a subsequent turn of the event loop (e.g., `setImmediate`, `setTimeout`).
389
384
  *
390
- *
391
385
  * @param collection - input collection
392
386
  * @param options - function options
393
387
  * @param options.thisArg - execution context
@@ -398,7 +392,7 @@ interface Namespace {
398
392
  * @throws must provide valid options
399
393
  *
400
394
  * @example
401
- * var readFile = require( `@stdlib/fs/read-file` );
395
+ * var readFile = require( '@stdlib/fs-read-file' );
402
396
  *
403
397
  * function done( error, bool ) {
404
398
  * if ( error ) {
@@ -442,7 +436,6 @@ interface Namespace {
442
436
  * - If a predicate function calls the provided callback with a truthy error argument, the function suspends execution and immediately calls the `done` callback for subsequent error handling.
443
437
  * - This function does **not** guarantee that execution is asynchronous. To do so, wrap the `done` callback in a function which either executes at the end of the current stack (e.g., `nextTick`) or during a subsequent turn of the event loop (e.g., `setImmediate`, `setTimeout`).
444
438
  *
445
- *
446
439
  * @param collection - input collection
447
440
  * @param options - function options
448
441
  * @param options.thisArg - execution context
@@ -453,7 +446,7 @@ interface Namespace {
453
446
  * @throws must provide valid options
454
447
  *
455
448
  * @example
456
- * var readFile = require( `@stdlib/fs/read-file` );
449
+ * var readFile = require( '@stdlib/fs-read-file' );
457
450
  *
458
451
  * function done( error, bool ) {
459
452
  * if ( error ) {
@@ -497,7 +490,6 @@ interface Namespace {
497
490
  * - If a provided function calls the provided callback with a truthy error argument, the function suspends execution and immediately calls the `done` callback for subsequent error handling.
498
491
  * - This function does **not** guarantee that execution is asynchronous. To do so, wrap the `done` callback in a function which either executes at the end of the current stack (e.g., `nextTick`) or during a subsequent turn of the event loop (e.g., `setImmediate`, `setTimeout`).
499
492
  *
500
- *
501
493
  * @param collection - input collection
502
494
  * @param options - function options
503
495
  * @param options.thisArg - execution context
@@ -508,7 +500,7 @@ interface Namespace {
508
500
  * @throws must provide valid options
509
501
  *
510
502
  * @example
511
- * var readFile = require( `@stdlib/fs/read-file` );
503
+ * var readFile = require( '@stdlib/fs-read-file' );
512
504
  *
513
505
  * function done( error ) {
514
506
  * if ( error ) {
@@ -549,7 +541,6 @@ interface Namespace {
549
541
  * - If a provided function calls the provided callback with a truthy error argument, the function suspends execution and immediately calls the `done` callback for subsequent error handling.
550
542
  * - This function does **not** guarantee that execution is asynchronous. To do so, wrap the `done` callback in a function which either executes at the end of the current stack (e.g., `nextTick`) or during a subsequent turn of the event loop (e.g., `setImmediate`, `setTimeout`).
551
543
  *
552
- *
553
544
  * @param collection - input collection
554
545
  * @param options - function options
555
546
  * @param options.thisArg - execution context
@@ -560,7 +551,7 @@ interface Namespace {
560
551
  * @throws must provide valid options
561
552
  *
562
553
  * @example
563
- * var readFile = require( `@stdlib/fs/read-file` );
554
+ * var readFile = require( '@stdlib/fs-read-file' );
564
555
  *
565
556
  * function done( error ) {
566
557
  * if ( error ) {
@@ -644,7 +635,6 @@ interface Namespace {
644
635
  *
645
636
  * - This function does **not** guarantee that execution is asynchronous. To do so, wrap the `done` callback in a function which either executes at the end of the current stack (e.g., `nextTick`) or during a subsequent turn of the event loop (e.g., `setImmediate`, `setTimeout`).
646
637
  *
647
- *
648
638
  * @param collection - input collection
649
639
  * @param options - function options
650
640
  * @param options.thisArg - execution context
@@ -656,7 +646,7 @@ interface Namespace {
656
646
  * @throws must provide valid options
657
647
  *
658
648
  * @example
659
- * var readFile = require( `@stdlib/fs/read-file` );
649
+ * var readFile = require( '@stdlib/fs-read-file' );
660
650
  *
661
651
  * function done( error, result ) {
662
652
  * if ( error ) {
@@ -697,7 +687,7 @@ interface Namespace {
697
687
  * @param done - callback to invoke upon completion
698
688
  *
699
689
  * @example
700
- * var randu = require( `@stdlib/random/base/randu` );
690
+ * var randu = require( '@stdlib/random-base-randu' );
701
691
  *
702
692
  * function predicate( clbk ) {
703
693
  * setTimeout( onTimeout, 0 );
@@ -725,7 +715,7 @@ interface Namespace {
725
715
  * @param done - callback to invoke upon completion
726
716
  *
727
717
  * @example
728
- * var randu = require( `@stdlib/random/base/randu` );
718
+ * var randu = require( '@stdlib/random-base-randu' );
729
719
  *
730
720
  * function predicate( clbk ) {
731
721
  * setTimeout( onTimeout, 0 );
@@ -766,7 +756,6 @@ interface Namespace {
766
756
  * - If a provided function calls the provided callback with a truthy error argument, the function suspends execution and immediately calls the `done` callback for subsequent error handling. Note, however, that the function may have mutated an input collection during prior invocations, resulting in a partially mutated collection.
767
757
  * - This function does **not** guarantee that execution is asynchronous. To do so, wrap the `done` callback in a function which either executes at the end of the current stack (e.g., `nextTick`) or during a subsequent turn of the event loop (e.g., `setImmediate`, `setTimeout`).
768
758
  *
769
- *
770
759
  * @param collection - input collection
771
760
  * @param options - function options
772
761
  * @param options.thisArg - execution context
@@ -777,7 +766,7 @@ interface Namespace {
777
766
  * @throws must provide valid options
778
767
  *
779
768
  * @example
780
- * var readFile = require( `@stdlib/fs/read-file` );
769
+ * var readFile = require( '@stdlib/fs-read-file' );
781
770
  *
782
771
  * function done( error, results ) {
783
772
  * if ( error ) {
@@ -817,7 +806,6 @@ interface Namespace {
817
806
  * - If a provided function calls the provided callback with a truthy error argument, the function suspends execution and immediately calls the `done` callback for subsequent error handling. Note, however, that the function may have mutated an input collection during prior invocations, resulting in a partially mutated collection.
818
807
  * - This function does **not** guarantee that execution is asynchronous. To do so, wrap the `done` callback in a function which either executes at the end of the current stack (e.g., `nextTick`) or during a subsequent turn of the event loop (e.g., `setImmediate`, `setTimeout`).
819
808
  *
820
- *
821
809
  * @param collection - input collection
822
810
  * @param options - function options
823
811
  * @param options.thisArg - execution context
@@ -828,7 +816,7 @@ interface Namespace {
828
816
  * @throws must provide valid options
829
817
  *
830
818
  * @example
831
- * var readFile = require( `@stdlib/fs/read-file` );
819
+ * var readFile = require( '@stdlib/fs-read-file' );
832
820
  *
833
821
  * function done( error, results ) {
834
822
  * if ( error ) {
@@ -920,7 +908,7 @@ interface Namespace {
920
908
  * @throws must provide valid options
921
909
  *
922
910
  * @example
923
- * var readFile = require( `@stdlib/fs/read-file` );
911
+ * var readFile = require( '@stdlib/fs-read-file' );
924
912
  *
925
913
  * function read( key, value, next ) {
926
914
  * var opts = {
@@ -980,7 +968,7 @@ interface Namespace {
980
968
  * @throws must provide valid options
981
969
  *
982
970
  * @example
983
- * var stat = require( `fs` ).stat;
971
+ * var stat = require( 'fs' ).stat;
984
972
  *
985
973
  * function getStats( file, next ) {
986
974
  * stat( file, onStats );
@@ -1024,7 +1012,6 @@ interface Namespace {
1024
1012
  * - If a predicate function calls the provided callback with a truthy error argument, the function suspends execution and immediately calls the `done` callback for subsequent error handling.
1025
1013
  * - This function does **not** guarantee that execution is asynchronous. To do so, wrap the `done` callback in a function which either executes at the end of the current stack (e.g., `nextTick`) or during a subsequent turn of the event loop (e.g., `setImmediate`, `setTimeout`).
1026
1014
  *
1027
- *
1028
1015
  * @param collection - input collection
1029
1016
  * @param options - function options
1030
1017
  * @param options.thisArg - execution context
@@ -1035,7 +1022,7 @@ interface Namespace {
1035
1022
  * @throws must provide valid options
1036
1023
  *
1037
1024
  * @example
1038
- * var readFile = require( `@stdlib/fs/read-file` );
1025
+ * var readFile = require( '@stdlib/fs-read-file' );
1039
1026
  *
1040
1027
  * function done( error, bool ) {
1041
1028
  * if ( error ) {
@@ -1079,7 +1066,6 @@ interface Namespace {
1079
1066
  * - If a predicate function calls the provided callback with a truthy error argument, the function suspends execution and immediately calls the `done` callback for subsequent error handling.
1080
1067
  * - This function does **not** guarantee that execution is asynchronous. To do so, wrap the `done` callback in a function which either executes at the end of the current stack (e.g., `nextTick`) or during a subsequent turn of the event loop (e.g., `setImmediate`, `setTimeout`).
1081
1068
  *
1082
- *
1083
1069
  * @param collection - input collection
1084
1070
  * @param options - function options
1085
1071
  * @param options.thisArg - execution context
@@ -1090,7 +1076,7 @@ interface Namespace {
1090
1076
  * @throws must provide valid options
1091
1077
  *
1092
1078
  * @example
1093
- * var readFile = require( `@stdlib/fs/read-file` );
1079
+ * var readFile = require( '@stdlib/fs-read-file' );
1094
1080
  *
1095
1081
  * function done( error, bool ) {
1096
1082
  * if ( error ) {
@@ -1134,7 +1120,6 @@ interface Namespace {
1134
1120
  * - If a provided function calls the provided callback with a truthy error argument, the function suspends execution and immediately calls the `done` callback for subsequent error handling.
1135
1121
  * - This function does **not** guarantee that execution is asynchronous. To do so, wrap the `done` callback in a function which either executes at the end of the current stack (e.g., `nextTick`) or during a subsequent turn of the event loop (e.g., `setImmediate`, `setTimeout`).
1136
1122
  *
1137
- *
1138
1123
  * @param collection - input collection
1139
1124
  * @param initial - initial value
1140
1125
  * @param options - function options
@@ -1146,7 +1131,7 @@ interface Namespace {
1146
1131
  * @throws must provide valid options
1147
1132
  *
1148
1133
  * @example
1149
- * var readFile = require( `@stdlib/fs/read-file` );
1134
+ * var readFile = require( '@stdlib/fs-read-file' );
1150
1135
  *
1151
1136
  * function done( error, acc ) {
1152
1137
  * if ( error ) {
@@ -1189,7 +1174,6 @@ interface Namespace {
1189
1174
  * - If a provided function calls the provided callback with a truthy error argument, the function suspends execution and immediately calls the `done` callback for subsequent error handling.
1190
1175
  * - This function does **not** guarantee that execution is asynchronous. To do so, wrap the `done` callback in a function which either executes at the end of the current stack (e.g., `nextTick`) or during a subsequent turn of the event loop (e.g., `setImmediate`, `setTimeout`).
1191
1176
  *
1192
- *
1193
1177
  * @param collection - input collection
1194
1178
  * @param initial - initial value
1195
1179
  * @param options - function options
@@ -1201,7 +1185,7 @@ interface Namespace {
1201
1185
  * @throws must provide valid options
1202
1186
  *
1203
1187
  * @example
1204
- * var readFile = require( `@stdlib/fs/read-file` );
1188
+ * var readFile = require( '@stdlib/fs-read-file' );
1205
1189
  *
1206
1190
  * function done( error, acc ) {
1207
1191
  * if ( error ) {
@@ -1275,7 +1259,6 @@ interface Namespace {
1275
1259
  * - If a predicate function calls the provided callback with a truthy error argument, the function suspends execution and immediately calls the `done` callback for subsequent error handling.
1276
1260
  * - This function does **not** guarantee that execution is asynchronous. To do so, wrap the `done` callback in a function which either executes at the end of the current stack (e.g., `nextTick`) or during a subsequent turn of the event loop (e.g., `setImmediate`, `setTimeout`).
1277
1261
  *
1278
- *
1279
1262
  * @param collection - input collection
1280
1263
  * @param n - number of elements
1281
1264
  * @param options - function options
@@ -1288,7 +1271,7 @@ interface Namespace {
1288
1271
  * @throws must provide valid options
1289
1272
  *
1290
1273
  * @example
1291
- * var readFile = require( `@stdlib/fs/read-file` );
1274
+ * var readFile = require( '@stdlib/fs-read-file' );
1292
1275
  *
1293
1276
  * function done( error, bool ) {
1294
1277
  * if ( error ) {
@@ -1332,7 +1315,6 @@ interface Namespace {
1332
1315
  * - If a predicate function calls the provided callback with a truthy error argument, the function suspends execution and immediately calls the `done` callback for subsequent error handling.
1333
1316
  * - This function does **not** guarantee that execution is asynchronous. To do so, wrap the `done` callback in a function which either executes at the end of the current stack (e.g., `nextTick`) or during a subsequent turn of the event loop (e.g., `setImmediate`, `setTimeout`).
1334
1317
  *
1335
- *
1336
1318
  * @param collection - input collection
1337
1319
  * @param n - number of elements
1338
1320
  * @param options - function options
@@ -1345,7 +1327,7 @@ interface Namespace {
1345
1327
  * @throws must provide valid options
1346
1328
  *
1347
1329
  * @example
1348
- * var readFile = require( `@stdlib/fs/read-file` );
1330
+ * var readFile = require( '@stdlib/fs-read-file' );
1349
1331
  *
1350
1332
  * function done( error, bool ) {
1351
1333
  * if ( error ) {
@@ -1394,7 +1376,6 @@ interface Namespace {
1394
1376
  * - 1: value count
1395
1377
  * - 2: frequency percentage
1396
1378
  *
1397
- *
1398
1379
  * @param collection - input collection
1399
1380
  * @param options - function options
1400
1381
  * @param options.thisArg - execution context
@@ -1405,7 +1386,7 @@ interface Namespace {
1405
1386
  * @throws must provide valid options
1406
1387
  *
1407
1388
  * @example
1408
- * var readFile = require( `@stdlib/fs/read-file` );
1389
+ * var readFile = require( '@stdlib/fs-read-file' );
1409
1390
  *
1410
1391
  * function done( error, result ) {
1411
1392
  * if ( error ) {
@@ -1445,7 +1426,7 @@ interface Namespace {
1445
1426
  * @param done - callback to invoke upon completion
1446
1427
  *
1447
1428
  * @example
1448
- * var randu = require( `@stdlib/random/base/randu` );
1429
+ * var randu = require( '@stdlib/random-base-randu' );
1449
1430
  *
1450
1431
  * function x( clbk ) {
1451
1432
  * setTimeout( onTimeout, 0 );
@@ -1476,7 +1457,7 @@ interface Namespace {
1476
1457
  * @param done - callback to invoke upon completion
1477
1458
  *
1478
1459
  * @example
1479
- * var randu = require( `@stdlib/random/base/randu` );
1460
+ * var randu = require( '@stdlib/random-base-randu' );
1480
1461
  *
1481
1462
  * function x( clbk ) {
1482
1463
  * setTimeout( onTimeout, 0 );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/utils-async",
3
- "version": "0.0.7",
3
+ "version": "0.2.0",
4
4
  "description": "Standard async utilities.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -36,67 +36,69 @@
36
36
  "url": "https://github.com/stdlib-js/stdlib/issues"
37
37
  },
38
38
  "dependencies": {
39
- "@stdlib/utils-async-any-by": "^0.0.x",
40
- "@stdlib/utils-async-any-by-right": "^0.0.x",
41
- "@stdlib/utils-async-bifurcate-by": "^0.0.x",
42
- "@stdlib/utils-async-compose": "^0.0.x",
43
- "@stdlib/utils-async-count-by": "^0.0.x",
44
- "@stdlib/utils-async-do-until": "^0.0.x",
45
- "@stdlib/utils-async-do-while": "^0.0.x",
46
- "@stdlib/utils-async-every-by": "^0.0.x",
47
- "@stdlib/utils-async-every-by-right": "^0.0.x",
48
- "@stdlib/utils-async-for-each": "^0.0.x",
49
- "@stdlib/utils-async-for-each-right": "^0.0.x",
50
- "@stdlib/utils-async-function-sequence": "^0.0.x",
51
- "@stdlib/utils-async-group-by": "^0.0.x",
52
- "@stdlib/utils-async-if-else": "^0.0.x",
53
- "@stdlib/utils-async-if-then": "^0.0.x",
54
- "@stdlib/utils-async-inmap": "^0.0.x",
55
- "@stdlib/utils-async-inmap-right": "^0.0.x",
56
- "@stdlib/utils-async-map-function": "^0.0.x",
57
- "@stdlib/utils-async-map-keys": "^0.0.x",
58
- "@stdlib/utils-async-map-values": "^0.0.x",
59
- "@stdlib/utils-async-none-by": "^0.0.x",
60
- "@stdlib/utils-async-none-by-right": "^0.0.x",
61
- "@stdlib/utils-async-reduce": "^0.0.x",
62
- "@stdlib/utils-async-reduce-right": "^0.0.x",
63
- "@stdlib/utils-async-series-waterfall": "^0.0.x",
64
- "@stdlib/utils-async-some-by": "^0.0.x",
65
- "@stdlib/utils-async-some-by-right": "^0.0.x",
66
- "@stdlib/utils-async-tabulate-by": "^0.0.x",
67
- "@stdlib/utils-async-try-catch": "^0.0.x",
68
- "@stdlib/utils-async-try-then": "^0.0.x",
69
- "@stdlib/utils-async-until": "^0.0.x",
70
- "@stdlib/utils-async-while": "^0.0.x",
71
- "@stdlib/utils-define-read-only-property": "^0.0.x"
39
+ "@stdlib/utils-async-any-by": "^0.2.0",
40
+ "@stdlib/utils-async-any-by-right": "^0.2.0",
41
+ "@stdlib/utils-async-bifurcate-by": "^0.2.0",
42
+ "@stdlib/utils-async-compose": "^0.2.0",
43
+ "@stdlib/utils-async-count-by": "^0.2.0",
44
+ "@stdlib/utils-async-do-until": "^0.2.0",
45
+ "@stdlib/utils-async-do-while": "^0.2.0",
46
+ "@stdlib/utils-async-every-by": "^0.2.0",
47
+ "@stdlib/utils-async-every-by-right": "^0.2.0",
48
+ "@stdlib/utils-async-for-each": "^0.2.0",
49
+ "@stdlib/utils-async-for-each-right": "^0.2.0",
50
+ "@stdlib/utils-async-function-sequence": "^0.2.0",
51
+ "@stdlib/utils-async-group-by": "^0.2.0",
52
+ "@stdlib/utils-async-if-else": "^0.2.0",
53
+ "@stdlib/utils-async-if-then": "^0.2.0",
54
+ "@stdlib/utils-async-inmap": "^0.2.0",
55
+ "@stdlib/utils-async-inmap-right": "^0.2.0",
56
+ "@stdlib/utils-async-map-function": "^0.2.0",
57
+ "@stdlib/utils-async-map-keys": "^0.2.0",
58
+ "@stdlib/utils-async-map-values": "^0.2.0",
59
+ "@stdlib/utils-async-none-by": "^0.2.0",
60
+ "@stdlib/utils-async-none-by-right": "^0.2.0",
61
+ "@stdlib/utils-async-reduce": "^0.2.0",
62
+ "@stdlib/utils-async-reduce-right": "^0.2.0",
63
+ "@stdlib/utils-async-series-waterfall": "^0.2.0",
64
+ "@stdlib/utils-async-some-by": "^0.2.0",
65
+ "@stdlib/utils-async-some-by-right": "^0.2.0",
66
+ "@stdlib/utils-async-tabulate-by": "^0.2.0",
67
+ "@stdlib/utils-async-try-catch": "^0.2.0",
68
+ "@stdlib/utils-async-try-then": "^0.2.0",
69
+ "@stdlib/utils-async-until": "^0.2.0",
70
+ "@stdlib/utils-async-while": "^0.2.0",
71
+ "@stdlib/utils-define-read-only-property": "^0.2.0"
72
72
  },
73
73
  "devDependencies": {
74
- "@stdlib/assert-has-own-property": "^0.0.x",
75
- "@stdlib/assert-is-array": "^0.0.x",
76
- "@stdlib/assert-is-boolean": "^0.0.x",
77
- "@stdlib/assert-is-collection": "^0.0.x",
78
- "@stdlib/assert-is-function": "^0.0.x",
79
- "@stdlib/assert-is-function-array": "^0.0.x",
80
- "@stdlib/assert-is-nan": "^0.0.x",
81
- "@stdlib/assert-is-nonnegative-integer": "^0.0.x",
82
- "@stdlib/assert-is-plain-object": "^0.0.x",
83
- "@stdlib/assert-is-positive-integer": "^0.0.x",
84
- "@stdlib/bench": "^0.0.x",
85
- "@stdlib/constants-float64-eps": "^0.0.x",
86
- "@stdlib/constants-float64-pinf": "^0.0.x",
87
- "@stdlib/fs-read-file": "^0.0.x",
88
- "@stdlib/math-base-assert-is-nan": "^0.0.x",
89
- "@stdlib/math-base-special-ceil": "^0.0.x",
90
- "@stdlib/random-base-randu": "^0.0.x",
91
- "@stdlib/string-repeat": "^0.0.x",
92
- "@stdlib/string-replace": "^0.0.x",
93
- "@stdlib/utils-define-nonenumerable-read-only-property": "^0.0.x",
94
- "@stdlib/utils-index-of": "^0.0.x",
95
- "@stdlib/utils-keys": "^0.0.x",
96
- "@stdlib/utils-noop": "^0.0.x",
74
+ "@stdlib/assert-has-own-property": "^0.1.1",
75
+ "@stdlib/assert-is-array": "^0.1.1",
76
+ "@stdlib/assert-is-boolean": "^0.1.1",
77
+ "@stdlib/assert-is-collection": "^0.1.0",
78
+ "@stdlib/assert-is-function": "^0.1.1",
79
+ "@stdlib/assert-is-function-array": "^0.2.0",
80
+ "@stdlib/assert-is-nan": "^0.1.1",
81
+ "@stdlib/assert-is-nonnegative-integer": "^0.1.0",
82
+ "@stdlib/assert-is-plain-object": "^0.1.1",
83
+ "@stdlib/assert-is-positive-integer": "^0.1.0",
84
+ "@stdlib/constants-float64-eps": "^0.1.1",
85
+ "@stdlib/constants-float64-pinf": "^0.1.1",
86
+ "@stdlib/fs-read-file": "^0.1.1",
87
+ "@stdlib/math-base-assert-is-nan": "^0.1.1",
88
+ "@stdlib/math-base-special-ceil": "^0.1.1",
89
+ "@stdlib/random-base-randu": "^0.1.0",
90
+ "@stdlib/string-format": "^0.2.0",
91
+ "@stdlib/string-repeat": "^0.1.0",
92
+ "@stdlib/string-replace": "^0.1.1",
93
+ "@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.0",
94
+ "@stdlib/utils-index-of": "^0.1.0",
95
+ "@stdlib/utils-keys": "^0.1.0",
96
+ "@stdlib/utils-noop": "^0.2.0",
97
97
  "tape": "git+https://github.com/kgryte/tape.git#fix/globby",
98
98
  "istanbul": "^0.4.1",
99
- "tap-spec": "5.x.x"
99
+ "tap-min": "git+https://github.com/Planeshifter/tap-min.git",
100
+ "@stdlib/bench-harness": "^0.2.0",
101
+ "@stdlib/bench": "^0.3.1"
100
102
  },
101
103
  "engines": {
102
104
  "node": ">=0.10.0",
@@ -124,7 +126,7 @@
124
126
  "asynchronous"
125
127
  ],
126
128
  "funding": {
127
- "type": "patreon",
128
- "url": "https://www.patreon.com/athan"
129
+ "type": "opencollective",
130
+ "url": "https://opencollective.com/stdlib"
129
131
  }
130
132
  }
@@ -1,29 +0,0 @@
1
- /*
2
- * @license Apache-2.0
3
- *
4
- * Copyright (c) 2021 The Stdlib Authors.
5
- *
6
- * Licensed under the Apache License, Version 2.0 (the "License");
7
- * you may not use this file except in compliance with the License.
8
- * You may obtain a copy of the License at
9
- *
10
- * http://www.apache.org/licenses/LICENSE-2.0
11
- *
12
- * Unless required by applicable law or agreed to in writing, software
13
- * distributed under the License is distributed on an "AS IS" BASIS,
14
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
- * See the License for the specific language governing permissions and
16
- * limitations under the License.
17
- */
18
-
19
- /* tslint:disable:no-unused-expression */
20
-
21
- import async = require( './index' );
22
-
23
-
24
- // TESTS //
25
-
26
- // The exported value is the expected interface...
27
- {
28
- async; // $ExpectType Namespace
29
- }